• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

IgniteUI / igniteui-angular-wrappers / 4427504397

pending completion
4427504397

push

github

GitHub
Update README.md

281 of 305 branches covered (92.13%)

Branch coverage included in aggregate %.

668 of 713 relevant lines covered (93.69%)

219.79 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

84.21
/projects/igniteui-angular-wrappers/src/lib/igfunnelchart/igfunnelchart.component.ts
1
import { Component, ElementRef, IterableDiffers, KeyValueDiffers, ChangeDetectorRef, Input, Renderer2, OnInit } from '@angular/core';
2
import { IgControlBase } from '../igcontrolbase/igcontrolbase';
3

4
@Component({
5
    selector: 'ig-funnel-chart',
6
    template: '<ng-content></ng-content>',
7
    inputs: ['widgetId', 'options', 'changeDetectionInterval', 'disabled', 'create', 'width', 'height', 'tooltipTemplate', 'maxRecCount', 'dataSource', 'dataSourceType', 'dataSourceUrl', 'responseTotalRecCountKey', 'responseDataKey', 'bezierPoints', 'legend', 'valueMemberPath', 'brushes', 'outlines', 'bottomEdgeWidth', 'innerLabelMemberPath', 'outerLabelMemberPath', 'innerLabelVisibility', 'outerLabelVisibility', 'outerLabelAlignment', 'funnelSliceDisplay', 'formatInnerLabel', 'formatOuterLabel', 'transitionDuration', 'isInverted', 'useBezierCurve', 'allowSliceSelection', 'useUnselectedStyle', 'selectedSliceStyle', 'unselectedSliceStyle', 'legendItemBadgeTemplate', 'useOuterLabelsForLegend', 'textStyle', 'outerLabelTextStyle', 'outlineThickness', 'pixelScalingRatio', 'outerLabelTextColor', 'textColor'],
8
    outputs: ['dataBinding', 'dataBound', 'updateTooltip', 'hideTooltip', 'sliceClicked']
9
})
10
export class IgFunnelChartComponent extends IgControlBase<IgFunnelChart> implements OnInit {
1✔
11
    constructor(el: ElementRef, renderer: Renderer2, differs: IterableDiffers, kvalDiffers: KeyValueDiffers, cdr: ChangeDetectorRef) {
12
      super(el, renderer, differs, kvalDiffers, cdr);
2✔
13
    }
14

15
    @Input()
16
    public set dataSource(value: any) {
17
        this._dataSource = value;
1✔
18
        const chart = jQuery(this._el).data(this._widgetName);
1✔
19
        if (chart) {
1!
20
            jQuery(this._el)[this._widgetName]('option', 'dataSource', this._dataSource);
×
21
        }
22
    }
23

24
    private _dataSource: any;
25

26
    ngOnInit() {
27
        if (this._dataSource === null || this._dataSource === undefined) {
2✔
28
            this._dataSource = this.options.dataSource;
1✔
29
        }
30
        if (!this.options.dataSource && this._dataSource) {
2✔
31
            this.options.dataSource = this._dataSource;
1✔
32
        }
33
        super.ngOnInit();
2✔
34
    }
35

36
    /**
37
     * Gets array of selected slice items.
38
     *
39
     * @param selection     Array or selected slice items.
40
     * @return array|object If parameter is undefined, then array of selected items is returned.
41
     * Otherwise, it returns reference to igFunnelChart.
42
     */
43
    /* istanbul ignore next */
44
    public selectedSliceItems(selection?: any[]): any[] { return; }
45

46
    /**
47
     * Gets sets array of indexes of selected slices.
48
     *
49
     * @param selection     Array or selected slice indexes.
50
     * @return array|object     If parameter is undefined, then array of selected indexes is returned.
51
     * Otherwise, it returns reference to igFunnelChart.
52
     */
53
    /* istanbul ignore next */
54
    public selectedSliceIndexes(selection?: any[]): any[] { return; }
55

56
    /**
57
     * Checks if slice is selected.
58
     *
59
     * @param slice     Index of slice or reference to slice-data-item.
60
     */
61
    /* istanbul ignore next */
62
    public isSelected(slice: object): boolean { return; }
63

64
    /**
65
     * Toggles selected state of slice.
66
     *
67
     * @param slice     Index of slice or reference to slice-data-item.
68
     */
69
    /* istanbul ignore next */
70
    public toggleSelection(slice: object): object { return; }
71
    public exportVisualData(): void { return; }
×
72

73
    /**
74
     * Destroys widget.
75
     */
76
    /* istanbul ignore next */
77
    public destroy(): void { return; }
78
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc