@covalent/echarts 4.0.0-beta.2 → 4.1.1-next.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 +4 -90
- package/bar/README.md +23 -21
- package/bar/bar.component.d.ts +27 -27
- package/bar/covalent-echarts-bar.d.ts +1 -1
- package/bar/{public-api.d.ts → public_api.d.ts} +0 -0
- package/base/README.md +26 -26
- package/base/axis/axis.component.d.ts +29 -29
- package/base/chart.component.d.ts +3 -3
- package/base/covalent-echarts-base.d.ts +1 -1
- package/base/dataset/dataset.component.d.ts +5 -5
- package/base/{public-api.d.ts → public_api.d.ts} +0 -0
- package/base/series/series.component.d.ts +15 -15
- package/base/{axis → src/axis}/README.md +19 -19
- package/base/{dataset → src/dataset}/README.md +19 -16
- package/covalent-echarts.d.ts +1 -1
- package/esm2020/bar/bar.component.mjs +95 -96
- package/esm2020/bar/bar.module.mjs +12 -13
- package/esm2020/bar/covalent-echarts-bar.mjs +2 -2
- package/esm2020/bar/public_api.mjs +3 -0
- package/esm2020/base/axis/axis.component.mjs +66 -66
- package/esm2020/base/axis/axis.interface.mjs +1 -1
- package/esm2020/base/axis/x-axis.component.mjs +45 -45
- package/esm2020/base/axis/y-axis.component.mjs +45 -45
- package/esm2020/base/base.module.mjs +13 -14
- package/esm2020/base/base.types.mjs +1 -1
- package/esm2020/base/chart-options.service.mjs +6 -6
- package/esm2020/base/chart.component.mjs +42 -38
- package/esm2020/base/covalent-echarts-base.mjs +2 -2
- package/esm2020/base/dataset/dataset.component.mjs +22 -22
- package/esm2020/base/public_api.mjs +10 -0
- package/esm2020/base/series/series.component.mjs +34 -34
- package/esm2020/base/series/series.interface.mjs +1 -1
- package/esm2020/base/themes/aqua-splash.mjs +31 -4
- package/esm2020/base/themes/california-coast.mjs +1 -1
- package/esm2020/base/themes/hawaiian-sunrise.mjs +1 -1
- package/esm2020/base/themes/passion-flower.mjs +1 -1
- package/esm2020/base/themes/razzleberry-pie.mjs +31 -4
- package/esm2020/base/themes/teradata-classic.mjs +31 -4
- package/esm2020/base/themes/teradata-default.mjs +1 -1
- package/esm2020/base/themes/urban-sunrise.mjs +1 -1
- package/esm2020/base/themes/volcanic-eruption.mjs +1 -1
- package/esm2020/base/utils/assign-defined.mjs +1 -1
- package/esm2020/base/utils/echarts.mjs +1 -1
- package/esm2020/base/utils/index.mjs +1 -1
- package/esm2020/covalent-echarts.mjs +2 -2
- package/esm2020/graph/covalent-echarts-graph.mjs +2 -2
- package/esm2020/graph/graph.component.mjs +129 -130
- package/esm2020/graph/graph.module.mjs +15 -14
- package/esm2020/graph/public_api.mjs +3 -0
- package/esm2020/line/covalent-echarts-line.mjs +2 -2
- package/esm2020/line/line.component.mjs +111 -112
- package/esm2020/line/line.module.mjs +12 -13
- package/esm2020/line/public_api.mjs +3 -0
- package/esm2020/map/covalent-echarts-map.mjs +2 -2
- package/esm2020/map/map.component.mjs +93 -94
- package/esm2020/map/map.module.mjs +12 -13
- package/esm2020/map/public_api.mjs +3 -0
- package/esm2020/pie/covalent-echarts-pie.mjs +2 -2
- package/esm2020/pie/pie.component.mjs +91 -92
- package/esm2020/pie/pie.module.mjs +12 -13
- package/esm2020/pie/public_api.mjs +3 -0
- package/esm2020/public_api.mjs +2 -0
- package/esm2020/sankey/covalent-echarts-sankey.mjs +2 -2
- package/esm2020/sankey/public_api.mjs +3 -0
- package/esm2020/sankey/sankey.component.mjs +83 -84
- package/esm2020/sankey/sankey.module.mjs +15 -14
- package/esm2020/scatter/covalent-echarts-scatter.mjs +2 -2
- package/esm2020/scatter/public_api.mjs +3 -0
- package/esm2020/scatter/scatter.component.mjs +101 -102
- package/esm2020/scatter/scatter.module.mjs +15 -14
- package/esm2020/toolbox/covalent-echarts-toolbox.mjs +2 -2
- package/esm2020/toolbox/public_api.mjs +3 -0
- package/esm2020/toolbox/toolbox.component.mjs +60 -76
- package/esm2020/toolbox/toolbox.module.mjs +19 -15
- package/esm2020/tooltip/covalent-echarts-tooltip.mjs +2 -2
- package/esm2020/tooltip/public_api.mjs +4 -0
- package/esm2020/tooltip/series-tooltip.component.mjs +40 -49
- package/esm2020/tooltip/tooltip.component.mjs +71 -80
- package/esm2020/tooltip/tooltip.module.mjs +14 -15
- package/esm2020/tree/covalent-echarts-tree.mjs +2 -2
- package/esm2020/tree/public_api.mjs +3 -0
- package/esm2020/tree/tree.component.mjs +83 -84
- package/esm2020/tree/tree.module.mjs +12 -13
- package/esm2020/treemap/covalent-echarts-treemap.mjs +2 -2
- package/esm2020/treemap/public_api.mjs +3 -0
- package/esm2020/treemap/treemap.component.mjs +107 -108
- package/esm2020/treemap/treemap.module.mjs +15 -14
- package/esm2020/wordcloud/covalent-echarts-wordcloud.mjs +2 -2
- package/esm2020/wordcloud/public_api.mjs +3 -0
- package/esm2020/wordcloud/wordcloud.component.mjs +68 -69
- package/esm2020/wordcloud/wordcloud.module.mjs +15 -14
- package/fesm2015/covalent-echarts-bar.mjs +16 -22
- package/fesm2015/covalent-echarts-bar.mjs.map +1 -1
- package/fesm2015/covalent-echarts-base.mjs +148 -81
- package/fesm2015/covalent-echarts-base.mjs.map +1 -1
- package/fesm2015/covalent-echarts-graph.mjs +19 -23
- package/fesm2015/covalent-echarts-graph.mjs.map +1 -1
- package/fesm2015/covalent-echarts-line.mjs +16 -22
- package/fesm2015/covalent-echarts-line.mjs.map +1 -1
- package/fesm2015/covalent-echarts-map.mjs +16 -22
- package/fesm2015/covalent-echarts-map.mjs.map +1 -1
- package/fesm2015/covalent-echarts-pie.mjs +16 -22
- package/fesm2015/covalent-echarts-pie.mjs.map +1 -1
- package/fesm2015/covalent-echarts-sankey.mjs +19 -23
- package/fesm2015/covalent-echarts-sankey.mjs.map +1 -1
- package/fesm2015/covalent-echarts-scatter.mjs +19 -23
- package/fesm2015/covalent-echarts-scatter.mjs.map +1 -1
- package/fesm2015/covalent-echarts-toolbox.mjs +23 -49
- package/fesm2015/covalent-echarts-toolbox.mjs.map +1 -1
- package/fesm2015/covalent-echarts-tooltip.mjs +43 -90
- package/fesm2015/covalent-echarts-tooltip.mjs.map +1 -1
- package/fesm2015/covalent-echarts-tree.mjs +16 -22
- package/fesm2015/covalent-echarts-tree.mjs.map +1 -1
- package/fesm2015/covalent-echarts-treemap.mjs +19 -23
- package/fesm2015/covalent-echarts-treemap.mjs.map +1 -1
- package/fesm2015/covalent-echarts-wordcloud.mjs +19 -23
- package/fesm2015/covalent-echarts-wordcloud.mjs.map +1 -1
- package/fesm2015/covalent-echarts.mjs.map +1 -1
- package/fesm2020/covalent-echarts-bar.mjs +104 -106
- package/fesm2020/covalent-echarts-bar.mjs.map +1 -1
- package/fesm2020/covalent-echarts-base.mjs +353 -269
- package/fesm2020/covalent-echarts-base.mjs.map +1 -1
- package/fesm2020/covalent-echarts-graph.mjs +141 -141
- package/fesm2020/covalent-echarts-graph.mjs.map +1 -1
- package/fesm2020/covalent-echarts-line.mjs +120 -122
- package/fesm2020/covalent-echarts-line.mjs.map +1 -1
- package/fesm2020/covalent-echarts-map.mjs +102 -104
- package/fesm2020/covalent-echarts-map.mjs.map +1 -1
- package/fesm2020/covalent-echarts-pie.mjs +100 -102
- package/fesm2020/covalent-echarts-pie.mjs.map +1 -1
- package/fesm2020/covalent-echarts-sankey.mjs +95 -95
- package/fesm2020/covalent-echarts-sankey.mjs.map +1 -1
- package/fesm2020/covalent-echarts-scatter.mjs +113 -113
- package/fesm2020/covalent-echarts-scatter.mjs.map +1 -1
- package/fesm2020/covalent-echarts-toolbox.mjs +76 -88
- package/fesm2020/covalent-echarts-toolbox.mjs.map +1 -1
- package/fesm2020/covalent-echarts-tooltip.mjs +120 -139
- package/fesm2020/covalent-echarts-tooltip.mjs.map +1 -1
- package/fesm2020/covalent-echarts-tree.mjs +92 -94
- package/fesm2020/covalent-echarts-tree.mjs.map +1 -1
- package/fesm2020/covalent-echarts-treemap.mjs +119 -119
- package/fesm2020/covalent-echarts-treemap.mjs.map +1 -1
- package/fesm2020/covalent-echarts-wordcloud.mjs +79 -79
- package/fesm2020/covalent-echarts-wordcloud.mjs.map +1 -1
- package/fesm2020/covalent-echarts.mjs.map +1 -1
- package/graph/README.md +21 -19
- package/graph/covalent-echarts-graph.d.ts +1 -1
- package/graph/graph.component.d.ts +60 -60
- package/graph/{public-api.d.ts → public_api.d.ts} +0 -0
- package/line/README.md +19 -21
- package/line/covalent-echarts-line.d.ts +1 -1
- package/line/line.component.d.ts +35 -35
- package/line/{public-api.d.ts → public_api.d.ts} +0 -0
- package/map/README.md +19 -17
- package/map/covalent-echarts-map.d.ts +1 -1
- package/map/map.component.d.ts +27 -27
- package/map/{public-api.d.ts → public_api.d.ts} +0 -0
- package/package.json +11 -31
- package/pie/README.md +17 -15
- package/pie/covalent-echarts-pie.d.ts +1 -1
- package/pie/pie.component.d.ts +26 -26
- package/pie/{public-api.d.ts → public_api.d.ts} +0 -0
- package/{index.d.ts → public_api.d.ts} +0 -0
- package/sankey/README.md +22 -20
- package/sankey/covalent-echarts-sankey.d.ts +1 -1
- package/sankey/{public-api.d.ts → public_api.d.ts} +0 -0
- package/sankey/sankey.component.d.ts +22 -22
- package/scatter/README.md +19 -21
- package/scatter/covalent-echarts-scatter.d.ts +1 -1
- package/scatter/{public-api.d.ts → public_api.d.ts} +0 -0
- package/scatter/scatter.component.d.ts +31 -31
- package/toolbox/README.md +12 -11
- package/toolbox/covalent-echarts-toolbox.d.ts +1 -1
- package/toolbox/{public-api.d.ts → public_api.d.ts} +0 -0
- package/toolbox/toolbox.component.d.ts +10 -10
- package/tooltip/README.md +30 -26
- package/tooltip/covalent-echarts-tooltip.d.ts +1 -1
- package/tooltip/{public-api.d.ts → public_api.d.ts} +0 -0
- package/tooltip/series-tooltip.component.d.ts +11 -9
- package/tooltip/tooltip.component.d.ts +16 -16
- package/tree/README.md +20 -18
- package/tree/covalent-echarts-tree.d.ts +1 -1
- package/tree/{public-api.d.ts → public_api.d.ts} +0 -0
- package/tree/tree.component.d.ts +24 -24
- package/treemap/README.md +23 -21
- package/treemap/covalent-echarts-treemap.d.ts +1 -1
- package/treemap/{public-api.d.ts → public_api.d.ts} +0 -0
- package/treemap/treemap.component.d.ts +37 -37
- package/wordcloud/README.md +25 -23
- package/wordcloud/covalent-echarts-wordcloud.d.ts +1 -1
- package/wordcloud/{public-api.d.ts → public_api.d.ts} +0 -0
- package/wordcloud/wordcloud.component.d.ts +14 -14
- package/bar/index.d.ts +0 -1
- package/base/chart.component.scss +0 -4
- package/base/index.d.ts +0 -1
- package/esm2020/bar/index.mjs +0 -2
- package/esm2020/bar/public-api.mjs +0 -3
- package/esm2020/base/index.mjs +0 -2
- package/esm2020/base/public-api.mjs +0 -10
- package/esm2020/graph/index.mjs +0 -2
- package/esm2020/graph/public-api.mjs +0 -3
- package/esm2020/index.mjs +0 -2
- package/esm2020/line/index.mjs +0 -2
- package/esm2020/line/public-api.mjs +0 -3
- package/esm2020/map/index.mjs +0 -2
- package/esm2020/map/public-api.mjs +0 -3
- package/esm2020/pie/index.mjs +0 -2
- package/esm2020/pie/public-api.mjs +0 -3
- package/esm2020/sankey/index.mjs +0 -2
- package/esm2020/sankey/public-api.mjs +0 -3
- package/esm2020/scatter/index.mjs +0 -2
- package/esm2020/scatter/public-api.mjs +0 -3
- package/esm2020/toolbox/index.mjs +0 -2
- package/esm2020/toolbox/public-api.mjs +0 -3
- package/esm2020/tooltip/index.mjs +0 -2
- package/esm2020/tooltip/public-api.mjs +0 -4
- package/esm2020/tree/index.mjs +0 -2
- package/esm2020/tree/public-api.mjs +0 -3
- package/esm2020/treemap/index.mjs +0 -2
- package/esm2020/treemap/public-api.mjs +0 -3
- package/esm2020/wordcloud/index.mjs +0 -2
- package/esm2020/wordcloud/public-api.mjs +0 -3
- package/graph/index.d.ts +0 -1
- package/line/index.d.ts +0 -1
- package/map/index.d.ts +0 -1
- package/pie/index.d.ts +0 -1
- package/sankey/index.d.ts +0 -1
- package/scatter/index.d.ts +0 -1
- package/toolbox/index.d.ts +0 -1
- package/tooltip/index.d.ts +0 -1
- package/tree/index.d.ts +0 -1
- package/treemap/index.d.ts +0 -1
- package/wordcloud/index.d.ts +0 -1
|
@@ -38,37 +38,37 @@ export interface ITdScatterSeries extends ITdSeries {
|
|
|
38
38
|
silent?: boolean;
|
|
39
39
|
}
|
|
40
40
|
export declare class TdChartSeriesScatterComponent extends TdSeriesDirective implements ITdScatterSeries {
|
|
41
|
-
coordinateSystem
|
|
42
|
-
xAxisIndex
|
|
43
|
-
yAxisIndex
|
|
44
|
-
polarIndex
|
|
45
|
-
geoIndex
|
|
46
|
-
calendarIndex
|
|
47
|
-
hoverAnimation
|
|
48
|
-
legendHoverLink
|
|
49
|
-
symbol
|
|
50
|
-
symbolSize
|
|
51
|
-
symbolRotate
|
|
52
|
-
symbolKeepAspect
|
|
53
|
-
symbolOffset
|
|
54
|
-
large
|
|
55
|
-
largeThreshold
|
|
56
|
-
cursor
|
|
57
|
-
label
|
|
58
|
-
itemStyle
|
|
59
|
-
emphasis
|
|
60
|
-
progressive
|
|
61
|
-
progressiveThreshold
|
|
62
|
-
dimensions
|
|
63
|
-
encode
|
|
64
|
-
seriesLayoutBy
|
|
65
|
-
datasetIndex
|
|
66
|
-
markPoint
|
|
67
|
-
markLine
|
|
68
|
-
markArea
|
|
69
|
-
zlevel
|
|
70
|
-
z
|
|
71
|
-
silent
|
|
41
|
+
coordinateSystem?: TdCoordinateSystem;
|
|
42
|
+
xAxisIndex?: number;
|
|
43
|
+
yAxisIndex?: number;
|
|
44
|
+
polarIndex?: number;
|
|
45
|
+
geoIndex?: number;
|
|
46
|
+
calendarIndex?: number;
|
|
47
|
+
hoverAnimation?: boolean;
|
|
48
|
+
legendHoverLink?: boolean;
|
|
49
|
+
symbol?: TdMarkPointSymbol | string;
|
|
50
|
+
symbolSize?: number | any[] | Function;
|
|
51
|
+
symbolRotate?: number;
|
|
52
|
+
symbolKeepAspect?: boolean;
|
|
53
|
+
symbolOffset?: any[];
|
|
54
|
+
large?: boolean;
|
|
55
|
+
largeThreshold?: number;
|
|
56
|
+
cursor?: string;
|
|
57
|
+
label?: ITdLabel;
|
|
58
|
+
itemStyle?: ITdItemStyle;
|
|
59
|
+
emphasis?: ITdEmphasis;
|
|
60
|
+
progressive?: number;
|
|
61
|
+
progressiveThreshold?: number;
|
|
62
|
+
dimensions?: any[];
|
|
63
|
+
encode?: any;
|
|
64
|
+
seriesLayoutBy?: TdSeriesLayoutBy;
|
|
65
|
+
datasetIndex?: number;
|
|
66
|
+
markPoint?: ITdMarkPoint;
|
|
67
|
+
markLine?: ITdMarkLine;
|
|
68
|
+
markArea?: ITdMarkArea;
|
|
69
|
+
zlevel?: number;
|
|
70
|
+
z?: number;
|
|
71
|
+
silent?: boolean;
|
|
72
72
|
constructor(_optionsService: TdChartOptionsService);
|
|
73
73
|
getConfig(): any;
|
|
74
74
|
static ɵfac: i0.ɵɵFactoryDeclaration<TdChartSeriesScatterComponent, never>;
|
package/toolbox/README.md
CHANGED
|
@@ -6,16 +6,16 @@
|
|
|
6
6
|
|
|
7
7
|
#### Inputs
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
12
|
|
|
13
13
|
There are also lots of property inputs like:
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
- feature?: ITdToolboxFeature
|
|
16
|
+
- The configuration item for each tool which includes saveAsImage, dataView, dataZoom, restore, magicTypes and brush.
|
|
17
|
+
- show?: boolean
|
|
18
|
+
- Show or hide the toolbox.
|
|
19
19
|
|
|
20
20
|
And so many more.. for more info [click here](https://echarts.apache.org/en/option.html#toolbox)
|
|
21
21
|
|
|
@@ -44,13 +44,14 @@ Basic Toolbox Example: To change the toolbox default language for `title` and `l
|
|
|
44
44
|
```html
|
|
45
45
|
<td-chart>
|
|
46
46
|
<td-chart-toolbox
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
[show]="true"
|
|
48
|
+
[right]="30"
|
|
49
|
+
[feature]="{dataView: {readOnly: true, title: 'View Data', lang: ['Data View', 'Turn Off', 'Refresh']},
|
|
50
50
|
dataZoom: {title: {zoom: 'Zoom', back: 'Back'}},
|
|
51
51
|
magicType: {type: ['line', 'bar', 'stack', 'tiled'],
|
|
52
52
|
title: {line: 'Line', bar: 'Bar', stack: 'Stack', tiled: 'Tiled'}},
|
|
53
|
-
restore: {title: 'Restore'}}"
|
|
53
|
+
restore: {title: 'Restore'}}"
|
|
54
|
+
>
|
|
54
55
|
</td-chart-toolbox>
|
|
55
56
|
</td-chart>
|
|
56
57
|
```
|
|
File without changes
|
|
@@ -111,16 +111,16 @@ export declare class TdChartToolboxComponent implements OnChanges, OnDestroy {
|
|
|
111
111
|
private _state;
|
|
112
112
|
config: any;
|
|
113
113
|
show: boolean;
|
|
114
|
-
trigger
|
|
115
|
-
orient
|
|
116
|
-
itemSize
|
|
117
|
-
itemGap
|
|
118
|
-
showTitle
|
|
119
|
-
label
|
|
120
|
-
feature
|
|
121
|
-
iconStyle
|
|
122
|
-
zlevel
|
|
123
|
-
z
|
|
114
|
+
trigger?: string;
|
|
115
|
+
orient?: TdToolboxOrient;
|
|
116
|
+
itemSize?: number;
|
|
117
|
+
itemGap?: number;
|
|
118
|
+
showTitle?: boolean | undefined;
|
|
119
|
+
label?: ITdLabel;
|
|
120
|
+
feature?: ITdToolboxFeature;
|
|
121
|
+
iconStyle?: ITdFeatureIconStyle;
|
|
122
|
+
zlevel?: number;
|
|
123
|
+
z?: number;
|
|
124
124
|
transitionDuration: number;
|
|
125
125
|
left: string | number;
|
|
126
126
|
top: string | number;
|
package/tooltip/README.md
CHANGED
|
@@ -6,20 +6,19 @@
|
|
|
6
6
|
|
|
7
7
|
#### Inputs
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
12
|
|
|
13
13
|
There are also lots of property inputs like:
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
- formatter?: string | Function
|
|
16
|
+
- The content formatter of tooltip's floating layer which supports string template and callback function.
|
|
17
|
+
- trigger?: 'item' | 'axis' | 'none'
|
|
18
|
+
- Type of triggering.
|
|
19
19
|
|
|
20
20
|
And so many more.. for more info [click here](https://echarts.apache.org/en/option.html#tooltip)
|
|
21
21
|
|
|
22
|
-
|
|
23
22
|
# td-chart-series-tooltip
|
|
24
23
|
|
|
25
24
|
`td-chart-series-tooltip` element generates a series tooltip for the echarts visualization inside a `td-chart-series`. Its the equivalent of creating a JS tooltip series object in echarts.
|
|
@@ -28,16 +27,16 @@ And so many more.. for more info [click here](https://echarts.apache.org/en/opti
|
|
|
28
27
|
|
|
29
28
|
#### Inputs
|
|
30
29
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
- config?: any
|
|
31
|
+
- Sets the JS config object if you choose to not use the property inputs.
|
|
32
|
+
- Note: [config] input properties will override input values
|
|
34
33
|
|
|
35
34
|
There are also lots of property inputs like:
|
|
36
35
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
- formatter?: string | Function
|
|
37
|
+
- The content formatter of tooltip's floating layer which supports string template and callback function.
|
|
38
|
+
- trigger?: 'item' | 'axis' | 'none'
|
|
39
|
+
- Type of triggering.
|
|
41
40
|
|
|
42
41
|
And so many more.. for more info [click here](https://echarts.apache.org/en/option.html#series-bar.tooltip)
|
|
43
42
|
|
|
@@ -67,9 +66,13 @@ Basic Tooltip Example:
|
|
|
67
66
|
|
|
68
67
|
```html
|
|
69
68
|
<td-chart>
|
|
70
|
-
<td-chart-tooltip [trigger]="'item'"
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
<td-chart-tooltip [trigger]="'item'" [triggerOn]="'mousemove'">
|
|
70
|
+
<ng-template
|
|
71
|
+
let-params
|
|
72
|
+
let-i="index"
|
|
73
|
+
let-ticket="ticket"
|
|
74
|
+
tdTooltipFormatter
|
|
75
|
+
>
|
|
73
76
|
<ng-container *ngIf="params">
|
|
74
77
|
<div layout="row" layout-align="start center">
|
|
75
78
|
<mat-icon [style.color]="params.color">person</mat-icon>
|
|
@@ -89,14 +92,15 @@ Basic Series Tooltip Example (only works if tooltip.trigger is 'item'):
|
|
|
89
92
|
|
|
90
93
|
```html
|
|
91
94
|
<td-chart>
|
|
92
|
-
<td-chart-tooltip [trigger]="'item'">
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
95
|
+
<td-chart-tooltip [trigger]="'item'"> </td-chart-tooltip>
|
|
96
|
+
<td-chart-series td-bar [name]="'name'" [data]="[100,200,150,200]">
|
|
97
|
+
<td-chart-series-tooltip [trigger]="'item'" [triggerOn]="'mousemove'">
|
|
98
|
+
<ng-template
|
|
99
|
+
let-params
|
|
100
|
+
let-i="index"
|
|
101
|
+
let-ticket="ticket"
|
|
102
|
+
tdTooltipFormatter
|
|
103
|
+
>
|
|
100
104
|
<ng-container *ngIf="params">
|
|
101
105
|
<div layout="row" layout-align="start center">
|
|
102
106
|
<mat-icon [style.color]="params.color">person</mat-icon>
|
|
File without changes
|
|
@@ -8,15 +8,17 @@ export declare class TdSeriesTooltipComponent implements OnChanges, OnDestroy {
|
|
|
8
8
|
private _seriesComponent;
|
|
9
9
|
private _state;
|
|
10
10
|
_context: TdTooltipContext;
|
|
11
|
-
config
|
|
12
|
-
formatter
|
|
13
|
-
position
|
|
14
|
-
backgroundColor
|
|
15
|
-
borderColor
|
|
16
|
-
borderWidth
|
|
17
|
-
padding
|
|
18
|
-
textStyle
|
|
19
|
-
|
|
11
|
+
config?: any;
|
|
12
|
+
formatter?: any;
|
|
13
|
+
position?: string | string[] | number[];
|
|
14
|
+
backgroundColor?: string | undefined;
|
|
15
|
+
borderColor?: string | undefined;
|
|
16
|
+
borderWidth?: number | undefined;
|
|
17
|
+
padding?: number | undefined;
|
|
18
|
+
textStyle?: {
|
|
19
|
+
color: string;
|
|
20
|
+
} | undefined;
|
|
21
|
+
extraCssText?: string;
|
|
20
22
|
formatterTemplate: TemplateRef<any>;
|
|
21
23
|
fullTemplate: TemplateRef<any>;
|
|
22
24
|
constructor(_changeDetectorRef: ChangeDetectorRef, _elementRef: ElementRef, _seriesComponent: TdSeriesDirective);
|
|
@@ -16,26 +16,26 @@ export declare class TdChartTooltipComponent implements OnChanges, OnDestroy {
|
|
|
16
16
|
private _state;
|
|
17
17
|
_context: TdTooltipContext;
|
|
18
18
|
config: any;
|
|
19
|
-
show
|
|
20
|
-
trigger
|
|
19
|
+
show?: boolean | undefined;
|
|
20
|
+
trigger?: TdTooltipTrigger;
|
|
21
21
|
axisPointer: any;
|
|
22
|
-
showContent
|
|
23
|
-
alwaysShowContent
|
|
24
|
-
triggerOn
|
|
25
|
-
showDelay
|
|
26
|
-
hideDelay
|
|
27
|
-
enterable
|
|
28
|
-
renderMode
|
|
22
|
+
showContent?: boolean | undefined;
|
|
23
|
+
alwaysShowContent?: boolean | undefined;
|
|
24
|
+
triggerOn?: TdTooltipTriggerOn;
|
|
25
|
+
showDelay?: number | undefined;
|
|
26
|
+
hideDelay?: number | undefined;
|
|
27
|
+
enterable?: boolean | undefined;
|
|
28
|
+
renderMode?: 'html' | 'richText';
|
|
29
29
|
confine: boolean;
|
|
30
30
|
transitionDuration: number;
|
|
31
|
-
position
|
|
32
|
-
formatter
|
|
33
|
-
backgroundColor
|
|
34
|
-
borderColor
|
|
35
|
-
borderWidth
|
|
36
|
-
padding
|
|
31
|
+
position?: TdTooltipPosition;
|
|
32
|
+
formatter?: string | Function;
|
|
33
|
+
backgroundColor?: string | undefined;
|
|
34
|
+
borderColor?: string | undefined;
|
|
35
|
+
borderWidth?: number | undefined;
|
|
36
|
+
padding?: number | undefined;
|
|
37
37
|
textStyle: any;
|
|
38
|
-
extraCssText
|
|
38
|
+
extraCssText?: string;
|
|
39
39
|
formatterTemplate: TemplateRef<any>;
|
|
40
40
|
fullTemplate: TemplateRef<any>;
|
|
41
41
|
constructor(_changeDetectorRef: ChangeDetectorRef, _elementRef: ElementRef, _optionsService: TdChartOptionsService);
|
package/tree/README.md
CHANGED
|
@@ -6,20 +6,20 @@
|
|
|
6
6
|
|
|
7
7
|
#### Inputs
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
12
|
|
|
13
13
|
There are also lots of property inputs like:
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
- label?: any
|
|
16
|
+
- Text styles corresponding to each node, also used in the leaves object.
|
|
17
|
+
- leaves?: ITdTreeLeaves
|
|
18
|
+
- Styles for each leaf node in the tree, can be used to differentiation node labels from leaf nodes. See the code examples above.
|
|
19
|
+
- itemStyle?: ITdItemStyle
|
|
20
|
+
- Styles for each node in the tree.
|
|
21
|
+
- data?: any[]
|
|
22
|
+
- Data array of series.
|
|
23
23
|
|
|
24
24
|
And so many more.. for more info [click here](https://echarts.apache.org/en/option.html#series-tree)
|
|
25
25
|
|
|
@@ -47,12 +47,14 @@ Basic Example:
|
|
|
47
47
|
|
|
48
48
|
```html
|
|
49
49
|
<td-chart>
|
|
50
|
-
<td-chart-series
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
50
|
+
<td-chart-series
|
|
51
|
+
td-tree
|
|
52
|
+
[leaves]="{ label: { position: 'right' } }"
|
|
53
|
+
[label]="{ position: 'left' }"
|
|
54
|
+
[name]="'name'"
|
|
55
|
+
[data]="[{ name: 'flare', children: [{ name: 'AgglomerativeCluster', value: 3938 },
|
|
56
|
+
{ name: 'CommunityStructure', value: 3812 }, { name: 'HierarchicalCluster', value: 6714 }] }]"
|
|
57
|
+
>
|
|
56
58
|
</td-chart-series>
|
|
57
59
|
</td-chart>
|
|
58
|
-
```
|
|
60
|
+
```
|
|
File without changes
|
package/tree/tree.component.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export interface ITdTreeEmphasis extends ITdEmphasis {
|
|
|
24
24
|
export interface ITdTreeLeaves {
|
|
25
25
|
label?: ITdLabel;
|
|
26
26
|
itemStyle?: ITdItemStyle;
|
|
27
|
-
emphasis
|
|
27
|
+
emphasis?: ITdEmphasis;
|
|
28
28
|
}
|
|
29
29
|
interface ITdTreeSeries extends ITdSeries {
|
|
30
30
|
zlevel?: number;
|
|
@@ -50,31 +50,31 @@ interface ITdTreeSeries extends ITdSeries {
|
|
|
50
50
|
lineStyle?: ITdLineStyle;
|
|
51
51
|
leaves?: ITdTreeLeaves;
|
|
52
52
|
emphasis?: ITdTreeEmphasis;
|
|
53
|
-
data
|
|
53
|
+
data?: any[];
|
|
54
54
|
}
|
|
55
55
|
export declare class TdChartSeriesTreeComponent extends TdSeriesDirective implements ITdTreeSeries {
|
|
56
|
-
zlevel
|
|
57
|
-
z
|
|
58
|
-
left
|
|
59
|
-
top
|
|
60
|
-
right
|
|
61
|
-
bottom
|
|
62
|
-
width
|
|
63
|
-
height
|
|
64
|
-
layout
|
|
65
|
-
orient
|
|
66
|
-
symbol
|
|
67
|
-
symbolSize
|
|
68
|
-
symbolRotate
|
|
69
|
-
symbolKeepAspect
|
|
70
|
-
roam
|
|
71
|
-
expandAndCollapse
|
|
72
|
-
initialTreeDepth
|
|
73
|
-
itemStyle
|
|
74
|
-
label
|
|
75
|
-
lineStyle
|
|
76
|
-
leaves
|
|
77
|
-
emphasis
|
|
56
|
+
zlevel?: number;
|
|
57
|
+
z?: number;
|
|
58
|
+
left?: string | number;
|
|
59
|
+
top?: string | number;
|
|
60
|
+
right?: string | number;
|
|
61
|
+
bottom?: string | number;
|
|
62
|
+
width?: string | number;
|
|
63
|
+
height?: string | number;
|
|
64
|
+
layout?: TdTreeLayout;
|
|
65
|
+
orient?: TdTreeOrient;
|
|
66
|
+
symbol?: TdMarkPointSymbol | string;
|
|
67
|
+
symbolSize?: number;
|
|
68
|
+
symbolRotate?: number;
|
|
69
|
+
symbolKeepAspect?: boolean;
|
|
70
|
+
roam?: boolean | string;
|
|
71
|
+
expandAndCollapse?: boolean;
|
|
72
|
+
initialTreeDepth?: number;
|
|
73
|
+
itemStyle?: ITdItemStyle;
|
|
74
|
+
label?: ITdLabel;
|
|
75
|
+
lineStyle?: ITdLineStyle;
|
|
76
|
+
leaves?: ITdTreeLeaves;
|
|
77
|
+
emphasis?: ITdTreeEmphasis;
|
|
78
78
|
constructor(_optionsService: TdChartOptionsService);
|
|
79
79
|
getConfig(): any;
|
|
80
80
|
static ɵfac: i0.ɵɵFactoryDeclaration<TdChartSeriesTreeComponent, never>;
|
package/treemap/README.md
CHANGED
|
@@ -6,20 +6,20 @@
|
|
|
6
6
|
|
|
7
7
|
#### Inputs
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
12
|
|
|
13
13
|
There are also lots of property inputs like:
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
- id?: string
|
|
16
|
+
- It can be used to refer the component in option or API.
|
|
17
|
+
- name?: string
|
|
18
|
+
- Series name used for displaying in tooltip and filtering with legend.
|
|
19
|
+
- leafDepth?: number
|
|
20
|
+
- Represents how many levels are shown at most.
|
|
21
|
+
- roam?: boolean
|
|
22
|
+
- Whether to enable dragging roam (move and zoom).
|
|
23
23
|
|
|
24
24
|
And so many more.. for more info [click here](https://echarts.apache.org/en/option.html#series-treemap)
|
|
25
25
|
|
|
@@ -47,12 +47,13 @@ Basic Example:
|
|
|
47
47
|
|
|
48
48
|
```html
|
|
49
49
|
<td-chart>
|
|
50
|
-
<td-chart-series
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
50
|
+
<td-chart-series
|
|
51
|
+
td-treemap
|
|
52
|
+
[top]="'10%'"
|
|
53
|
+
[left]="'10%'"
|
|
54
|
+
[bottom]="'10%'"
|
|
55
|
+
[right]="'10%'"
|
|
56
|
+
[data]="[{
|
|
56
57
|
value: 40,
|
|
57
58
|
name: 'Accessibility',
|
|
58
59
|
path: 'Accessibility'
|
|
@@ -167,17 +168,18 @@ Basic Example:
|
|
|
167
168
|
}]
|
|
168
169
|
}]
|
|
169
170
|
}]"
|
|
170
|
-
|
|
171
|
-
|
|
171
|
+
[visibleMin]="300"
|
|
172
|
+
[label]="{
|
|
172
173
|
show: true,
|
|
173
174
|
formatter: '{b}'
|
|
174
175
|
}"
|
|
175
|
-
|
|
176
|
+
[itemStyle]="{
|
|
176
177
|
normal: {
|
|
177
178
|
borderColor: '#fff'
|
|
178
179
|
}
|
|
179
180
|
}"
|
|
180
|
-
|
|
181
|
+
[levels]="[{itemStyle: {normal: {borderWidth: 0, gapWidth: 5 }}},{itemStyle: {normal: {gapWidth: 1}}},{colorSaturation: [0.35, 0.5], itemStyle: {normal: {gapWidth: 1, borderColorSaturation: 0.6}}}]"
|
|
182
|
+
>
|
|
181
183
|
</td-chart-series>
|
|
182
184
|
</td-chart>
|
|
183
185
|
```
|
|
File without changes
|
|
@@ -45,8 +45,8 @@ export interface ITdTreemapUpperLabel {
|
|
|
45
45
|
textShadowBlur?: string | number;
|
|
46
46
|
textShadowOffsetX?: string | number;
|
|
47
47
|
textShadowOffsetY?: string | number;
|
|
48
|
-
rich
|
|
49
|
-
ellipsis
|
|
48
|
+
rich?: any;
|
|
49
|
+
ellipsis?: any;
|
|
50
50
|
}
|
|
51
51
|
export interface ITdTreemapBreadcrumb {
|
|
52
52
|
show?: boolean;
|
|
@@ -89,43 +89,43 @@ interface ITdTreemapSeries extends ITdSeries {
|
|
|
89
89
|
upperLabel?: ITdTreemapUpperLabel;
|
|
90
90
|
breadcrumb?: ITdTreemapBreadcrumb;
|
|
91
91
|
emphasis?: ITdTreemapEmphasis;
|
|
92
|
-
data
|
|
92
|
+
data?: any[];
|
|
93
93
|
}
|
|
94
94
|
export declare class TdChartSeriesTreemapComponent extends TdSeriesDirective implements ITdTreemapSeries {
|
|
95
|
-
config
|
|
96
|
-
id
|
|
97
|
-
name
|
|
98
|
-
data
|
|
99
|
-
zlevel
|
|
100
|
-
z
|
|
101
|
-
left
|
|
102
|
-
top
|
|
103
|
-
right
|
|
104
|
-
bottom
|
|
105
|
-
width
|
|
106
|
-
height
|
|
107
|
-
squareRatio
|
|
108
|
-
leafDepth
|
|
109
|
-
drillDownIcon
|
|
110
|
-
roam
|
|
111
|
-
nodeClick
|
|
112
|
-
zoomToNodeRatio
|
|
113
|
-
levels
|
|
114
|
-
silent
|
|
115
|
-
visualDimension
|
|
116
|
-
visualMin
|
|
117
|
-
visualMax
|
|
118
|
-
colorAlpha
|
|
119
|
-
colorSaturation
|
|
120
|
-
colorMappingBy
|
|
121
|
-
visibleMin
|
|
122
|
-
childrenVisibleMin
|
|
123
|
-
itemStyle
|
|
124
|
-
label
|
|
125
|
-
upperLabel
|
|
126
|
-
breadcrumb
|
|
127
|
-
emphasis
|
|
128
|
-
tooltip
|
|
95
|
+
config?: any;
|
|
96
|
+
id?: string;
|
|
97
|
+
name?: string;
|
|
98
|
+
data?: any;
|
|
99
|
+
zlevel?: number;
|
|
100
|
+
z?: number;
|
|
101
|
+
left?: string | number;
|
|
102
|
+
top?: string | number;
|
|
103
|
+
right?: string | number;
|
|
104
|
+
bottom?: string | number;
|
|
105
|
+
width?: string | number;
|
|
106
|
+
height?: string | number;
|
|
107
|
+
squareRatio?: string | number;
|
|
108
|
+
leafDepth?: string | number;
|
|
109
|
+
drillDownIcon?: string;
|
|
110
|
+
roam?: boolean | string;
|
|
111
|
+
nodeClick?: boolean | string;
|
|
112
|
+
zoomToNodeRatio?: string | number;
|
|
113
|
+
levels?: any[];
|
|
114
|
+
silent?: boolean;
|
|
115
|
+
visualDimension?: string | number;
|
|
116
|
+
visualMin?: string | number;
|
|
117
|
+
visualMax?: string | number;
|
|
118
|
+
colorAlpha?: any[];
|
|
119
|
+
colorSaturation?: string | number;
|
|
120
|
+
colorMappingBy?: string;
|
|
121
|
+
visibleMin?: string | number;
|
|
122
|
+
childrenVisibleMin?: string | number;
|
|
123
|
+
itemStyle?: ITdItemStyle;
|
|
124
|
+
label?: ITdLabel;
|
|
125
|
+
upperLabel?: ITdTreemapUpperLabel;
|
|
126
|
+
breadcrumb?: ITdTreemapBreadcrumb;
|
|
127
|
+
emphasis?: ITdTreemapEmphasis;
|
|
128
|
+
tooltip?: ITdSeriesTooltip;
|
|
129
129
|
constructor(_optionsService: TdChartOptionsService);
|
|
130
130
|
getConfig(): any;
|
|
131
131
|
static ɵfac: i0.ɵɵFactoryDeclaration<TdChartSeriesTreemapComponent, never>;
|