@covalent/echarts 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/bar/README.md +65 -0
- package/bar/bar.component.d.ts +68 -0
- package/bar/bar.module.d.ts +10 -0
- package/bar/covalent-echarts-bar.d.ts +5 -0
- package/bar/package.json +10 -0
- package/bar/public_api.d.ts +2 -0
- package/base/README.md +59 -0
- package/base/axis/axis.component.d.ts +48 -0
- package/base/axis/axis.interface.d.ts +157 -0
- package/base/axis/x-axis.component.d.ts +10 -0
- package/base/axis/y-axis.component.d.ts +10 -0
- package/base/base.module.d.ts +13 -0
- package/base/base.types.d.ts +141 -0
- package/base/chart-options.service.d.ts +17 -0
- package/base/chart.component.d.ts +60 -0
- package/base/covalent-echarts-base.d.ts +5 -0
- package/base/dataset/dataset.component.d.ts +19 -0
- package/base/package.json +10 -0
- package/base/public_api.d.ts +12 -0
- package/base/series/series.component.d.ts +44 -0
- package/base/series/series.interface.d.ts +84 -0
- package/base/src/axis/README.md +58 -0
- package/base/src/dataset/README.md +80 -0
- package/base/themes/aqua-splash.d.ts +459 -0
- package/base/themes/california-coast.d.ts +459 -0
- package/base/themes/hawaiian-sunrise.d.ts +459 -0
- package/base/themes/passion-flower.d.ts +459 -0
- package/base/themes/razzleberry-pie.d.ts +459 -0
- package/base/themes/teradata-classic.d.ts +459 -0
- package/base/themes/teradata-default.d.ts +459 -0
- package/base/themes/urban-sunrise.d.ts +459 -0
- package/base/themes/volcanic-eruption.d.ts +459 -0
- package/base/utils/assign-defined.d.ts +1 -0
- package/base/utils/echarts.d.ts +15 -0
- package/base/utils/index.d.ts +2 -0
- package/covalent-echarts.d.ts +5 -0
- package/esm2020/bar/bar.component.mjs +135 -0
- package/esm2020/bar/bar.module.mjs +19 -0
- package/esm2020/bar/covalent-echarts-bar.mjs +5 -0
- package/esm2020/bar/public_api.mjs +3 -0
- package/esm2020/base/axis/axis.component.mjs +127 -0
- package/esm2020/base/axis/axis.interface.mjs +2 -0
- package/esm2020/base/axis/x-axis.component.mjs +55 -0
- package/esm2020/base/axis/y-axis.component.mjs +55 -0
- package/esm2020/base/base.module.mjs +35 -0
- package/esm2020/base/base.types.mjs +2 -0
- package/esm2020/base/chart-options.service.mjs +65 -0
- package/esm2020/base/chart.component.mjs +195 -0
- package/esm2020/base/covalent-echarts-base.mjs +5 -0
- package/esm2020/base/dataset/dataset.component.mjs +52 -0
- package/esm2020/base/public_api.mjs +10 -0
- package/esm2020/base/series/series.component.mjs +91 -0
- package/esm2020/base/series/series.interface.mjs +2 -0
- package/esm2020/base/themes/aqua-splash.mjs +487 -0
- package/esm2020/base/themes/california-coast.mjs +460 -0
- package/esm2020/base/themes/hawaiian-sunrise.mjs +460 -0
- package/esm2020/base/themes/passion-flower.mjs +460 -0
- package/esm2020/base/themes/razzleberry-pie.mjs +487 -0
- package/esm2020/base/themes/teradata-classic.mjs +487 -0
- package/esm2020/base/themes/teradata-default.mjs +460 -0
- package/esm2020/base/themes/urban-sunrise.mjs +460 -0
- package/esm2020/base/themes/volcanic-eruption.mjs +460 -0
- package/esm2020/base/utils/assign-defined.mjs +25 -0
- package/esm2020/base/utils/echarts.mjs +49 -0
- package/esm2020/base/utils/index.mjs +3 -0
- package/esm2020/covalent-echarts.mjs +5 -0
- package/esm2020/graph/covalent-echarts-graph.mjs +5 -0
- package/esm2020/graph/graph.component.mjs +185 -0
- package/esm2020/graph/graph.module.mjs +21 -0
- package/esm2020/graph/public_api.mjs +3 -0
- package/esm2020/line/covalent-echarts-line.mjs +5 -0
- package/esm2020/line/line.component.mjs +159 -0
- package/esm2020/line/line.module.mjs +19 -0
- package/esm2020/line/public_api.mjs +3 -0
- package/esm2020/map/covalent-echarts-map.mjs +5 -0
- package/esm2020/map/map.component.mjs +132 -0
- package/esm2020/map/map.module.mjs +19 -0
- package/esm2020/map/public_api.mjs +3 -0
- package/esm2020/pie/covalent-echarts-pie.mjs +5 -0
- package/esm2020/pie/pie.component.mjs +127 -0
- package/esm2020/pie/pie.module.mjs +19 -0
- package/esm2020/pie/public_api.mjs +3 -0
- package/esm2020/public_api.mjs +2 -0
- package/esm2020/sankey/covalent-echarts-sankey.mjs +5 -0
- package/esm2020/sankey/public_api.mjs +3 -0
- package/esm2020/sankey/sankey.component.mjs +117 -0
- package/esm2020/sankey/sankey.module.mjs +21 -0
- package/esm2020/scatter/covalent-echarts-scatter.mjs +5 -0
- package/esm2020/scatter/public_api.mjs +3 -0
- package/esm2020/scatter/scatter.component.mjs +144 -0
- package/esm2020/scatter/scatter.module.mjs +21 -0
- package/esm2020/toolbox/covalent-echarts-toolbox.mjs +5 -0
- package/esm2020/toolbox/public_api.mjs +3 -0
- package/esm2020/toolbox/toolbox.component.mjs +135 -0
- package/esm2020/toolbox/toolbox.module.mjs +24 -0
- package/esm2020/tooltip/covalent-echarts-tooltip.mjs +5 -0
- package/esm2020/tooltip/public_api.mjs +4 -0
- package/esm2020/tooltip/series-tooltip.component.mjs +102 -0
- package/esm2020/tooltip/tooltip.component.mjs +156 -0
- package/esm2020/tooltip/tooltip.module.mjs +28 -0
- package/esm2020/tree/covalent-echarts-tree.mjs +5 -0
- package/esm2020/tree/public_api.mjs +3 -0
- package/esm2020/tree/tree.component.mjs +117 -0
- package/esm2020/tree/tree.module.mjs +19 -0
- package/esm2020/treemap/covalent-echarts-treemap.mjs +5 -0
- package/esm2020/treemap/public_api.mjs +3 -0
- package/esm2020/treemap/treemap.component.mjs +149 -0
- package/esm2020/treemap/treemap.module.mjs +21 -0
- package/esm2020/wordcloud/covalent-echarts-wordcloud.mjs +5 -0
- package/esm2020/wordcloud/public_api.mjs +3 -0
- package/esm2020/wordcloud/wordcloud.component.mjs +92 -0
- package/esm2020/wordcloud/wordcloud.module.mjs +21 -0
- package/fesm2015/covalent-echarts-bar.mjs +158 -0
- package/fesm2015/covalent-echarts-bar.mjs.map +1 -0
- package/fesm2015/covalent-echarts-base.mjs +4931 -0
- package/fesm2015/covalent-echarts-base.mjs.map +1 -0
- package/fesm2015/covalent-echarts-graph.mjs +210 -0
- package/fesm2015/covalent-echarts-graph.mjs.map +1 -0
- package/fesm2015/covalent-echarts-line.mjs +182 -0
- package/fesm2015/covalent-echarts-line.mjs.map +1 -0
- package/fesm2015/covalent-echarts-map.mjs +155 -0
- package/fesm2015/covalent-echarts-map.mjs.map +1 -0
- package/fesm2015/covalent-echarts-pie.mjs +150 -0
- package/fesm2015/covalent-echarts-pie.mjs.map +1 -0
- package/fesm2015/covalent-echarts-sankey.mjs +142 -0
- package/fesm2015/covalent-echarts-sankey.mjs.map +1 -0
- package/fesm2015/covalent-echarts-scatter.mjs +169 -0
- package/fesm2015/covalent-echarts-scatter.mjs.map +1 -0
- package/fesm2015/covalent-echarts-toolbox.mjs +158 -0
- package/fesm2015/covalent-echarts-toolbox.mjs.map +1 -0
- package/fesm2015/covalent-echarts-tooltip.mjs +283 -0
- package/fesm2015/covalent-echarts-tooltip.mjs.map +1 -0
- package/fesm2015/covalent-echarts-tree.mjs +140 -0
- package/fesm2015/covalent-echarts-tree.mjs.map +1 -0
- package/fesm2015/covalent-echarts-treemap.mjs +174 -0
- package/fesm2015/covalent-echarts-treemap.mjs.map +1 -0
- package/fesm2015/covalent-echarts-wordcloud.mjs +117 -0
- package/fesm2015/covalent-echarts-wordcloud.mjs.map +1 -0
- package/fesm2015/covalent-echarts.mjs +4 -0
- package/fesm2015/covalent-echarts.mjs.map +1 -0
- package/fesm2020/covalent-echarts-bar.mjs +158 -0
- package/fesm2020/covalent-echarts-bar.mjs.map +1 -0
- package/fesm2020/covalent-echarts-base.mjs +4930 -0
- package/fesm2020/covalent-echarts-base.mjs.map +1 -0
- package/fesm2020/covalent-echarts-graph.mjs +210 -0
- package/fesm2020/covalent-echarts-graph.mjs.map +1 -0
- package/fesm2020/covalent-echarts-line.mjs +182 -0
- package/fesm2020/covalent-echarts-line.mjs.map +1 -0
- package/fesm2020/covalent-echarts-map.mjs +155 -0
- package/fesm2020/covalent-echarts-map.mjs.map +1 -0
- package/fesm2020/covalent-echarts-pie.mjs +150 -0
- package/fesm2020/covalent-echarts-pie.mjs.map +1 -0
- package/fesm2020/covalent-echarts-sankey.mjs +142 -0
- package/fesm2020/covalent-echarts-sankey.mjs.map +1 -0
- package/fesm2020/covalent-echarts-scatter.mjs +169 -0
- package/fesm2020/covalent-echarts-scatter.mjs.map +1 -0
- package/fesm2020/covalent-echarts-toolbox.mjs +163 -0
- package/fesm2020/covalent-echarts-toolbox.mjs.map +1 -0
- package/fesm2020/covalent-echarts-tooltip.mjs +283 -0
- package/fesm2020/covalent-echarts-tooltip.mjs.map +1 -0
- package/fesm2020/covalent-echarts-tree.mjs +140 -0
- package/fesm2020/covalent-echarts-tree.mjs.map +1 -0
- package/fesm2020/covalent-echarts-treemap.mjs +174 -0
- package/fesm2020/covalent-echarts-treemap.mjs.map +1 -0
- package/fesm2020/covalent-echarts-wordcloud.mjs +117 -0
- package/fesm2020/covalent-echarts-wordcloud.mjs.map +1 -0
- package/fesm2020/covalent-echarts.mjs +4 -0
- package/fesm2020/covalent-echarts.mjs.map +1 -0
- package/graph/README.md +90 -0
- package/graph/covalent-echarts-graph.d.ts +5 -0
- package/graph/graph.component.d.ts +129 -0
- package/graph/graph.module.d.ts +10 -0
- package/graph/package.json +10 -0
- package/graph/public_api.d.ts +2 -0
- package/line/README.md +78 -0
- package/line/covalent-echarts-line.d.ts +5 -0
- package/line/line.component.d.ts +86 -0
- package/line/line.module.d.ts +10 -0
- package/line/package.json +10 -0
- package/line/public_api.d.ts +2 -0
- package/map/README.md +119 -0
- package/map/covalent-echarts-map.d.ts +5 -0
- package/map/map.component.d.ts +75 -0
- package/map/map.module.d.ts +10 -0
- package/map/package.json +10 -0
- package/map/public_api.d.ts +2 -0
- package/package.json +146 -0
- package/pie/README.md +62 -0
- package/pie/covalent-echarts-pie.d.ts +5 -0
- package/pie/package.json +10 -0
- package/pie/pie.component.d.ts +64 -0
- package/pie/pie.module.d.ts +10 -0
- package/pie/public_api.d.ts +2 -0
- package/public_api.d.ts +1 -0
- package/sankey/README.md +91 -0
- package/sankey/covalent-echarts-sankey.d.ts +5 -0
- package/sankey/package.json +10 -0
- package/sankey/public_api.d.ts +2 -0
- package/sankey/sankey.component.d.ts +65 -0
- package/sankey/sankey.module.d.ts +10 -0
- package/scatter/README.md +66 -0
- package/scatter/covalent-echarts-scatter.d.ts +5 -0
- package/scatter/package.json +10 -0
- package/scatter/public_api.d.ts +2 -0
- package/scatter/scatter.component.d.ts +76 -0
- package/scatter/scatter.module.d.ts +10 -0
- package/toolbox/README.md +57 -0
- package/toolbox/covalent-echarts-toolbox.d.ts +5 -0
- package/toolbox/package.json +10 -0
- package/toolbox/public_api.d.ts +2 -0
- package/toolbox/toolbox.component.d.ts +142 -0
- package/toolbox/toolbox.module.d.ts +10 -0
- package/tooltip/README.md +116 -0
- package/tooltip/covalent-echarts-tooltip.d.ts +5 -0
- package/tooltip/package.json +10 -0
- package/tooltip/public_api.d.ts +3 -0
- package/tooltip/series-tooltip.component.d.ts +36 -0
- package/tooltip/tooltip.component.d.ts +49 -0
- package/tooltip/tooltip.module.d.ts +11 -0
- package/tree/README.md +60 -0
- package/tree/covalent-echarts-tree.d.ts +5 -0
- package/tree/package.json +10 -0
- package/tree/public_api.d.ts +2 -0
- package/tree/tree.component.d.ts +83 -0
- package/tree/tree.module.d.ts +10 -0
- package/treemap/README.md +185 -0
- package/treemap/covalent-echarts-treemap.d.ts +5 -0
- package/treemap/package.json +10 -0
- package/treemap/public_api.d.ts +2 -0
- package/treemap/treemap.component.d.ts +134 -0
- package/treemap/treemap.module.d.ts +10 -0
- package/wordcloud/README.md +89 -0
- package/wordcloud/covalent-echarts-wordcloud.d.ts +5 -0
- package/wordcloud/package.json +10 -0
- package/wordcloud/public_api.d.ts +2 -0
- package/wordcloud/wordcloud.component.d.ts +55 -0
- package/wordcloud/wordcloud.module.d.ts +10 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { EventEmitter, ElementRef, ChangeDetectorRef, AfterViewInit, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { TdChartOptionsService } from './chart-options.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TdChartComponent implements AfterViewInit, OnChanges, OnDestroy {
|
|
5
|
+
private _changeDetectorRef;
|
|
6
|
+
private _elementRef;
|
|
7
|
+
private _optionsService;
|
|
8
|
+
private _destroy;
|
|
9
|
+
private _widthSubject;
|
|
10
|
+
private _heightSubject;
|
|
11
|
+
private _instance;
|
|
12
|
+
/**
|
|
13
|
+
* returns the echarts instance
|
|
14
|
+
*/
|
|
15
|
+
get instance(): any;
|
|
16
|
+
private _state;
|
|
17
|
+
private _options;
|
|
18
|
+
/**
|
|
19
|
+
* config?: any;
|
|
20
|
+
* Sets the JS config object if you choose to not use the property inputs.
|
|
21
|
+
* Note: [config] input properties will override input values
|
|
22
|
+
* https://ecomfe.github.io/echarts-doc/public/en/option.html
|
|
23
|
+
*/
|
|
24
|
+
config?: any;
|
|
25
|
+
/**
|
|
26
|
+
* group?: string
|
|
27
|
+
* group name in which the chart instance will be connected to
|
|
28
|
+
* https://ecomfe.github.io/echarts-doc/public/en/api.html#echarts.connect
|
|
29
|
+
*/
|
|
30
|
+
group?: string;
|
|
31
|
+
/**
|
|
32
|
+
* themeName?: string
|
|
33
|
+
* theme to be applied into chart instance
|
|
34
|
+
* https://ecomfe.github.io/echarts-doc/public/en/tutorial.html#Overview%20of%20Style%20Customization
|
|
35
|
+
*/
|
|
36
|
+
themeName?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* renderer: 'svg' | 'canvas'
|
|
39
|
+
* sets the rendering mode for the chart.
|
|
40
|
+
* defaults to 'canvas'
|
|
41
|
+
* https://ecomfe.github.io/echarts-doc/public/en/tutorial.html#Render%20by%20Canvas%20or%20SVG
|
|
42
|
+
*/
|
|
43
|
+
renderer: 'canvas' | 'svg';
|
|
44
|
+
chartClick: EventEmitter<any>;
|
|
45
|
+
chartDblclick: EventEmitter<any>;
|
|
46
|
+
chartContextmenu: EventEmitter<any>;
|
|
47
|
+
magicTypeChanged: EventEmitter<any>;
|
|
48
|
+
dataViewChanged: EventEmitter<any>;
|
|
49
|
+
datazoom: EventEmitter<any>;
|
|
50
|
+
restore: EventEmitter<any>;
|
|
51
|
+
constructor(_changeDetectorRef: ChangeDetectorRef, _elementRef: ElementRef, _optionsService: TdChartOptionsService);
|
|
52
|
+
ngAfterViewInit(): void;
|
|
53
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
54
|
+
ngOnDestroy(): void;
|
|
55
|
+
render(): void;
|
|
56
|
+
private _initializeChart;
|
|
57
|
+
private _disposeChart;
|
|
58
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdChartComponent, never>;
|
|
59
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TdChartComponent, "td-chart", never, { "config": "config"; "group": "group"; "themeName": "themeName"; "renderer": "renderer"; }, { "chartClick": "chartClick"; "chartDblclick": "chartDblclick"; "chartContextmenu": "chartContextmenu"; "magicTypeChanged": "magicTypeChanged"; "dataViewChanged": "dataViewChanged"; "datazoom": "datazoom"; "restore": "restore"; }, never, never>;
|
|
60
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { OnChanges, OnDestroy } from '@angular/core';
|
|
2
|
+
import { TdChartOptionsService } from '../chart-options.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TdDatasetComponent implements OnChanges, OnDestroy {
|
|
5
|
+
private _optionsService;
|
|
6
|
+
private _state;
|
|
7
|
+
id?: string;
|
|
8
|
+
config?: any;
|
|
9
|
+
source?: object | any[];
|
|
10
|
+
dimensions?: any[];
|
|
11
|
+
sourceHeader?: boolean;
|
|
12
|
+
constructor(_optionsService: TdChartOptionsService);
|
|
13
|
+
ngOnChanges(): void;
|
|
14
|
+
ngOnDestroy(): void;
|
|
15
|
+
private _setOptions;
|
|
16
|
+
private _removeOption;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdDatasetComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TdDatasetComponent, "td-chart-dataset", never, { "id": "id"; "config": "config"; "source": "source"; "dimensions": "dimensions"; "sourceHeader": "sourceHeader"; }, {}, never, never>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"module": "../fesm2015/covalent-echarts-base.mjs",
|
|
3
|
+
"es2020": "../fesm2020/covalent-echarts-base.mjs",
|
|
4
|
+
"esm2020": "../esm2020/base/covalent-echarts-base.mjs",
|
|
5
|
+
"fesm2020": "../fesm2020/covalent-echarts-base.mjs",
|
|
6
|
+
"fesm2015": "../fesm2015/covalent-echarts-base.mjs",
|
|
7
|
+
"typings": "covalent-echarts-base.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"name": "@covalent/echarts/base"
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './base.module';
|
|
2
|
+
export { TdChartComponent } from './chart.component';
|
|
3
|
+
export { TdChartAxisDirective } from './axis/axis.component';
|
|
4
|
+
export { TdChartYAxisComponent } from './axis/y-axis.component';
|
|
5
|
+
export { TdChartXAxisComponent } from './axis/x-axis.component';
|
|
6
|
+
export { TdDatasetComponent } from './dataset/dataset.component';
|
|
7
|
+
export { TdChartOptionsService } from './chart-options.service';
|
|
8
|
+
export * from './utils';
|
|
9
|
+
export { ITdAxisLine, ITdAxisLabel, ITdAxisTick, ITdSplitLine, ITdNameTextStyle, ITdSplitArea, ITdAxisPointer, TdYAxisPosition, TdXAxisPosition, TdNameLocation, TdAxisType, ITdXAxisConfig, ITdYAxisConfig, } from './axis/axis.interface';
|
|
10
|
+
export { ITdAnimation, ITdShadow, TdAlign, TdFontStyle, TdFontWeight, TdVerticalAlign, TdPointerType, TdStatus, TdLineType, TdTooltipTrigger, TdLabelPosition, TdAxisPointerType, TdTooltipTriggerOn, ITdLineStyle, TdAreaOrigin, TdMarkPointSymbol, TdTooltipPosition, ITdTooltip, ITdTextStyle, TdLineLabelPosition, ITdLineCurveStyle, ITdLabel, ITdAxisPointerLabel, ITdBaseStyle, ITdTooltipAxisPointer, TdAxisPointerAxis, ITdEdgeLabel, TdTextPosition, TdTextAlign, } from './base.types';
|
|
11
|
+
export * from './series/series.component';
|
|
12
|
+
export { ITdItemStyle, ITdAreaStyle, ITdEmphasis, ITdMarkPoint, TdCoordinateSystem, ITdMarkLine, ITdMarkArea, ITdLineLabel, ITdLabelLine, ITdMarkLineEmphasis, ITdSeriesTooltip, TdSeriesLayoutBy, TdProgressiveChunkMode, ITdMarkAreaEmphasis, } from './series/series.interface';
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { OnChanges, OnInit, OnDestroy } from '@angular/core';
|
|
2
|
+
import { TdChartOptionsService } from '../chart-options.service';
|
|
3
|
+
import { ITdSeriesTooltip } from './series.interface';
|
|
4
|
+
import { ITdAnimation } from '../base.types';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export interface ITdSeries extends ITdAnimation {
|
|
7
|
+
id?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
color?: string;
|
|
10
|
+
type?: string;
|
|
11
|
+
tooltip?: ITdSeriesTooltip;
|
|
12
|
+
}
|
|
13
|
+
export declare abstract class TdSeriesDirective implements ITdSeries, OnChanges, OnInit, OnDestroy {
|
|
14
|
+
protected optionsService: TdChartOptionsService;
|
|
15
|
+
private _type;
|
|
16
|
+
get type(): string;
|
|
17
|
+
_state: any;
|
|
18
|
+
_options: any;
|
|
19
|
+
config?: any;
|
|
20
|
+
id?: string;
|
|
21
|
+
name?: string;
|
|
22
|
+
color?: string;
|
|
23
|
+
data?: any[];
|
|
24
|
+
animation?: boolean;
|
|
25
|
+
animationThreshold?: number;
|
|
26
|
+
animationDuration?: number | Function;
|
|
27
|
+
animationEasing?: string;
|
|
28
|
+
animationDelay?: number | Function;
|
|
29
|
+
animationDurationUpdate?: number | Function;
|
|
30
|
+
animationEasingUpdate?: string;
|
|
31
|
+
animationDelayUpdate?: number | Function;
|
|
32
|
+
tooltip?: ITdSeriesTooltip;
|
|
33
|
+
constructor(type: string, optionsService: TdChartOptionsService);
|
|
34
|
+
ngOnInit(): void;
|
|
35
|
+
ngOnChanges(): void;
|
|
36
|
+
ngOnDestroy(): void;
|
|
37
|
+
setStateOption(option: string, value: any): void;
|
|
38
|
+
removeStateOption(option: string): void;
|
|
39
|
+
abstract getConfig(): any;
|
|
40
|
+
private _setOptions;
|
|
41
|
+
private _removeOption;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdSeriesDirective, never>;
|
|
43
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TdSeriesDirective, never, never, { "config": "config"; "id": "id"; "name": "name"; "color": "color"; "data": "data"; "animation": "animation"; "animationThreshold": "animationThreshold"; "animationDuration": "animationDuration"; "animationEasing": "animationEasing"; "animationDelay": "animationDelay"; "animationDurationUpdate": "animationDurationUpdate"; "animationEasingUpdate": "animationEasingUpdate"; "animationDelayUpdate": "animationDelayUpdate"; "tooltip": "tooltip"; }, {}, never>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { TdAreaOrigin, ITdLabel, TdMarkPointSymbol, TdLineLabelPosition, ITdLineStyle, ITdTextStyle, TdTooltipPosition, ITdAnimation, ITdShadow } from '../base.types';
|
|
2
|
+
export interface ITdItemStyle extends ITdShadow {
|
|
3
|
+
color?: any;
|
|
4
|
+
borderColor?: string;
|
|
5
|
+
borderWidth?: number;
|
|
6
|
+
borderType?: string;
|
|
7
|
+
opacity?: number;
|
|
8
|
+
}
|
|
9
|
+
export interface ITdLabelLine {
|
|
10
|
+
show?: boolean;
|
|
11
|
+
length?: number;
|
|
12
|
+
length2?: number;
|
|
13
|
+
smooth?: boolean | number;
|
|
14
|
+
lineStyle?: ITdLineStyle;
|
|
15
|
+
}
|
|
16
|
+
export interface ITdAreaStyle extends ITdShadow {
|
|
17
|
+
color?: any;
|
|
18
|
+
origin?: TdAreaOrigin;
|
|
19
|
+
opacity?: number;
|
|
20
|
+
}
|
|
21
|
+
export interface ITdEmphasis {
|
|
22
|
+
label?: ITdLabel;
|
|
23
|
+
itemStyle?: ITdItemStyle;
|
|
24
|
+
}
|
|
25
|
+
export interface ITdMarkPoint extends ITdAnimation {
|
|
26
|
+
symbol?: TdMarkPointSymbol | string;
|
|
27
|
+
symbolSize?: number;
|
|
28
|
+
symbolRotate?: number;
|
|
29
|
+
symbolKeepAspect?: boolean;
|
|
30
|
+
symbolOffset?: any[];
|
|
31
|
+
silent?: boolean;
|
|
32
|
+
label?: ITdLabel;
|
|
33
|
+
itemStyle?: ITdItemStyle;
|
|
34
|
+
emphasis?: ITdEmphasis;
|
|
35
|
+
data?: any[];
|
|
36
|
+
}
|
|
37
|
+
export interface ITdMarkLineEmphasis {
|
|
38
|
+
label?: ITdLineLabel;
|
|
39
|
+
itemStyle?: ITdLineStyle;
|
|
40
|
+
}
|
|
41
|
+
export interface ITdMarkAreaEmphasis {
|
|
42
|
+
label?: ITdLabel;
|
|
43
|
+
itemStyle?: ITdLineStyle;
|
|
44
|
+
}
|
|
45
|
+
export interface ITdLineLabel {
|
|
46
|
+
show?: boolean;
|
|
47
|
+
position?: TdLineLabelPosition;
|
|
48
|
+
formatter?: string | Function;
|
|
49
|
+
}
|
|
50
|
+
export interface ITdMarkLine extends ITdAnimation {
|
|
51
|
+
silent?: boolean;
|
|
52
|
+
symbol?: string | any[];
|
|
53
|
+
symbolSize?: number;
|
|
54
|
+
precision?: number;
|
|
55
|
+
label?: ITdLineLabel;
|
|
56
|
+
lineStyle?: ITdLineStyle;
|
|
57
|
+
emphasis?: ITdMarkLineEmphasis;
|
|
58
|
+
data?: any[];
|
|
59
|
+
}
|
|
60
|
+
export interface ITdMarkArea extends ITdAnimation {
|
|
61
|
+
silent?: boolean;
|
|
62
|
+
label?: ITdLabel;
|
|
63
|
+
lineStyle?: ITdLineStyle;
|
|
64
|
+
emphasis?: ITdMarkAreaEmphasis;
|
|
65
|
+
data?: any[];
|
|
66
|
+
}
|
|
67
|
+
export interface ITdSeriesTooltip {
|
|
68
|
+
position?: TdTooltipPosition | any;
|
|
69
|
+
formatter?: any;
|
|
70
|
+
backgroundColor?: any;
|
|
71
|
+
borderColor?: any;
|
|
72
|
+
borderWidth?: number;
|
|
73
|
+
padding?: number;
|
|
74
|
+
textStyle?: ITdTextStyle;
|
|
75
|
+
extraCssText?: string;
|
|
76
|
+
}
|
|
77
|
+
export declare type TdCoordinateSystem = 'cartesian2d' | 'polar';
|
|
78
|
+
/**
|
|
79
|
+
* 'column': By default, the datasetcolumns correspond to the series, so that dataseteach column is a dimension (dimension).
|
|
80
|
+
* 'row': datasetthe row corresponding to the series, so that dataseteach row is a dimension (dimension).
|
|
81
|
+
* http://echarts.baidu.com/option.html#series-line.seriesLayoutBy
|
|
82
|
+
*/
|
|
83
|
+
export declare type TdSeriesLayoutBy = 'column' | 'row';
|
|
84
|
+
export declare type TdProgressiveChunkMode = 'sequential' | 'mod';
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# td-chart-x-axis and td-chart-y-axis
|
|
2
|
+
|
|
3
|
+
`td-chart-x-axis` and `td-chart-y-axis` elements generate an axis inside a `td-chart`. Its the equivalent of creating a JS xAxis/yAxis object in echarts.
|
|
4
|
+
|
|
5
|
+
## API Summary
|
|
6
|
+
|
|
7
|
+
#### Inputs
|
|
8
|
+
|
|
9
|
+
- config?: any
|
|
10
|
+
- Sets the JS config object if you choose to not use the property inputs.
|
|
11
|
+
- Note: [config] input properties will override input values
|
|
12
|
+
|
|
13
|
+
There are also lots of property inputs like:
|
|
14
|
+
|
|
15
|
+
- id?: string
|
|
16
|
+
- It can be used to refer the component in option or API.
|
|
17
|
+
- name?: string
|
|
18
|
+
- Location of axis name.
|
|
19
|
+
- type?: 'value' | 'category' | 'time' | 'log'
|
|
20
|
+
- Type of axis
|
|
21
|
+
- min?: number
|
|
22
|
+
- The minimun value of axis.
|
|
23
|
+
- max?: number
|
|
24
|
+
- The maximum value of axis.
|
|
25
|
+
|
|
26
|
+
And so many more.. for more info on xAxis [click here](https://echarts.apache.org/en/option.html#xAxis) and yAxis [click here](https://echarts.apache.org/en/option.html#yAxis)
|
|
27
|
+
|
|
28
|
+
## Setup
|
|
29
|
+
|
|
30
|
+
Import the [CovalentBaseEchartsModule] in your NgModule:
|
|
31
|
+
|
|
32
|
+
```typescript
|
|
33
|
+
import { CovalentBaseEchartsModule } from '@covalent/echarts/base';
|
|
34
|
+
@NgModule({
|
|
35
|
+
imports: [
|
|
36
|
+
CovalentBaseEchartsModule,
|
|
37
|
+
...
|
|
38
|
+
],
|
|
39
|
+
...
|
|
40
|
+
})
|
|
41
|
+
export class MyModule {}
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Usage
|
|
45
|
+
|
|
46
|
+
Basic Tooltip Example:
|
|
47
|
+
|
|
48
|
+
```html
|
|
49
|
+
<td-chart>
|
|
50
|
+
<td-chart-x-axis
|
|
51
|
+
[show]="true"
|
|
52
|
+
[type]="'category'"
|
|
53
|
+
[data]="['Electronics', 'Toys', 'Grocery', 'Appliances', 'Automotive', 'Sports']"
|
|
54
|
+
>
|
|
55
|
+
</td-chart-x-axis>
|
|
56
|
+
<td-chart-y-axis [show]="true" [type]="'value'"> </td-chart-y-axis>
|
|
57
|
+
</td-chart>
|
|
58
|
+
```
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# td-chart-dataset
|
|
2
|
+
|
|
3
|
+
`td-chart-dataset` element sets the dataset option inside `td-chart`. It allows additional flexibility to managing data separately from the series property which helps with data reuse using different series. It also enables data encoding. Its the equivalent of creating a JS dataset object in echarts.
|
|
4
|
+
|
|
5
|
+
## API Summary
|
|
6
|
+
|
|
7
|
+
#### Inputs
|
|
8
|
+
|
|
9
|
+
- config?: any
|
|
10
|
+
- Sets the JS config object if you choose to not use the property inputs.
|
|
11
|
+
- Note: [config] input properties will override input values
|
|
12
|
+
|
|
13
|
+
There are also has several property inputs:s
|
|
14
|
+
|
|
15
|
+
- id?: string
|
|
16
|
+
- It can be used to refer the component in option or API.
|
|
17
|
+
- source?: object | any[]
|
|
18
|
+
- Source data. Chart data described in a tabular or 2d array format. series.data will override dataset.source.
|
|
19
|
+
- dimensions?: any[]
|
|
20
|
+
- dimensions can be used to define dimension info for series.data or dataset.source.
|
|
21
|
+
- sourceHeader?: boolean
|
|
22
|
+
- Whether the first row/column of dataset.source represents dimension names.
|
|
23
|
+
|
|
24
|
+
For more info [click here](https://echarts.apache.org/en/option.html#dataset)
|
|
25
|
+
|
|
26
|
+
## Setup
|
|
27
|
+
|
|
28
|
+
Import the [CovalentBaseEchartsModule] in your NgModule:
|
|
29
|
+
|
|
30
|
+
```typescript
|
|
31
|
+
import { CovalentBaseEchartsModule } from '@covalent/echarts/base';
|
|
32
|
+
@NgModule({
|
|
33
|
+
imports: [
|
|
34
|
+
CovalentBaseEchartsModule,
|
|
35
|
+
...
|
|
36
|
+
],
|
|
37
|
+
...
|
|
38
|
+
})
|
|
39
|
+
export class MyModule {}
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Usage
|
|
43
|
+
|
|
44
|
+
Basic Example:
|
|
45
|
+
|
|
46
|
+
```html
|
|
47
|
+
<td-chart [style.height.px]="300">
|
|
48
|
+
<td-chart-x-axis></td-chart-x-axis>
|
|
49
|
+
<td-chart-y-axis [type]="'category'"> </td-chart-y-axis>
|
|
50
|
+
<td-chart-series td-bar></td-chart-series>
|
|
51
|
+
<td-chart-series td-bar></td-chart-series>
|
|
52
|
+
<td-chart-series td-bar></td-chart-series>
|
|
53
|
+
<td-chart-dataset
|
|
54
|
+
[source]="[['product', '2015', '2016', '2017'],
|
|
55
|
+
['Matcha Latte', 43.3, 85.8, 93.7], ['Milk Tea', 83.1, 73.4, 55.1],
|
|
56
|
+
['Cheese Cocoa', 86.4, 65.2, 82.5], ['Walnut Brownie', 72.4, 53.9, 39.1]]"
|
|
57
|
+
>
|
|
58
|
+
</td-chart-dataset>
|
|
59
|
+
</td-chart>
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Dimensions Input property Example:
|
|
63
|
+
|
|
64
|
+
```html
|
|
65
|
+
<td-chart [style.height.px]="300">
|
|
66
|
+
<td-chart-x-axis></td-chart-x-axis>
|
|
67
|
+
<td-chart-y-axis [type]="'category'"> </td-chart-y-axis>
|
|
68
|
+
<td-chart-series td-bar></td-chart-series>
|
|
69
|
+
<td-chart-series td-bar></td-chart-series>
|
|
70
|
+
<td-chart-series td-bar></td-chart-series>
|
|
71
|
+
<td-chart-dataset
|
|
72
|
+
[dimensions]="['product', '2015', '2016', '2017']"
|
|
73
|
+
[source]="[{product: 'Matcha Latte', '2015': 43.3, '2016': 85.8, '2017': 93.7},
|
|
74
|
+
{product: 'Milk Tea', '2015': 83.1, '2016': 73.4, '2017': 55.1},
|
|
75
|
+
{product: 'Cheese Cocoa', '2015': 86.4, '2016': 65.2, '2017': 82.5},
|
|
76
|
+
{product: 'Walnut Brownie', '2015': 72.4, '2016': 53.9, '2017': 39.1}]"
|
|
77
|
+
>
|
|
78
|
+
</td-chart-dataset>
|
|
79
|
+
</td-chart>
|
|
80
|
+
```
|