@carbon/charts 1.9.0-rc.5 → 1.10.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/CHANGELOG.md +31 -0
- package/LICENSE.md +201 -0
- package/README.md +9 -19
- package/dist/_baseEach-603421de.mjs.map +1 -1
- package/dist/_baseEach-cdac417f.js.map +1 -1
- package/dist/angle-utils-6f166b40.js.map +1 -1
- package/dist/angle-utils-8b6ce998.mjs.map +1 -1
- package/dist/axis-chart.d.ts +13 -13
- package/dist/chart.d.ts +18 -18
- package/dist/charts/alluvial.d.ts +10 -10
- package/dist/charts/area-stacked.d.ts +8 -8
- package/dist/charts/area.d.ts +8 -8
- package/dist/charts/bar-grouped.d.ts +8 -8
- package/dist/charts/bar-simple.d.ts +8 -8
- package/dist/charts/bar-stacked.d.ts +8 -8
- package/dist/charts/boxplot.d.ts +10 -10
- package/dist/charts/bubble.d.ts +8 -8
- package/dist/charts/bullet.d.ts +10 -10
- package/dist/charts/choropleth.d.ts +14 -14
- package/dist/charts/circle-pack.d.ts +10 -10
- package/dist/charts/combo.d.ts +9 -9
- package/dist/charts/donut.d.ts +8 -8
- package/dist/charts/gauge.d.ts +10 -10
- package/dist/charts/heatmap.d.ts +14 -14
- package/dist/charts/histogram.d.ts +10 -10
- package/dist/charts/index.d.ts +27 -27
- package/dist/charts/line.d.ts +8 -8
- package/dist/charts/lollipop.d.ts +8 -8
- package/dist/charts/meter.d.ts +10 -10
- package/dist/charts/pie.d.ts +10 -10
- package/dist/charts/radar.d.ts +10 -10
- package/dist/charts/scatter.d.ts +8 -8
- package/dist/charts/tree.d.ts +10 -10
- package/dist/charts/treemap.d.ts +10 -10
- package/dist/charts/wordcloud.d.ts +10 -10
- package/dist/choropleth-4ac6ac20.js.map +1 -1
- package/dist/choropleth-f473ea0d.mjs.map +1 -1
- package/dist/color-scale-utils-5eb3eeaa.mjs.map +1 -1
- package/dist/color-scale-utils-7d463811.js.map +1 -1
- package/dist/components/axes/axis.d.ts +24 -24
- package/dist/components/axes/chart-clip.d.ts +13 -13
- package/dist/components/axes/grid-brush.d.ts +10 -10
- package/dist/components/axes/grid.d.ts +22 -22
- package/dist/components/axes/hover-axis.d.ts +10 -10
- package/dist/components/axes/index.d.ts +12 -12
- package/dist/components/axes/ruler-binned.d.ts +10 -7
- package/dist/components/axes/ruler-stacked.d.ts +4 -4
- package/dist/components/axes/ruler.d.ts +30 -27
- package/dist/components/axes/toolbar.d.ts +40 -40
- package/dist/components/axes/two-dimensional-axes.d.ts +16 -16
- package/dist/components/axes/zero-line.d.ts +7 -7
- package/dist/components/axes/zoom-bar.d.ts +31 -28
- package/dist/components/component.d.ts +30 -30
- package/dist/components/diagrams/buildPaths.d.ts +40 -40
- package/dist/components/diagrams/index.d.ts +2 -2
- package/dist/components/diagrams/markerDefinitions.d.ts +37 -37
- package/dist/components/essentials/canvas-chart-clip.d.ts +6 -6
- package/dist/components/essentials/color-scale-legend.d.ts +20 -20
- package/dist/components/essentials/geo-projection.d.ts +16 -16
- package/dist/components/essentials/highlights.d.ts +13 -13
- package/dist/components/essentials/index.d.ts +11 -11
- package/dist/components/essentials/legend.d.ts +11 -11
- package/dist/components/essentials/modal.d.ts +14 -14
- package/dist/components/essentials/threshold.d.ts +20 -20
- package/dist/components/essentials/title-meter.d.ts +30 -30
- package/dist/components/essentials/title.d.ts +20 -20
- package/dist/components/essentials/tooltip-axis.d.ts +4 -4
- package/dist/components/essentials/tooltip.d.ts +22 -22
- package/dist/components/graphs/alluvial.d.ts +14 -14
- package/dist/components/graphs/area-stacked.d.ts +11 -11
- package/dist/components/graphs/area.d.ts +12 -12
- package/dist/components/graphs/bar-grouped.d.ts +22 -22
- package/dist/components/graphs/bar-simple.d.ts +12 -12
- package/dist/components/graphs/bar-stacked.d.ts +13 -13
- package/dist/components/graphs/bar.d.ts +5 -5
- package/dist/components/graphs/boxplot.d.ts +9 -9
- package/dist/components/graphs/bubble.d.ts +13 -13
- package/dist/components/graphs/bullet.d.ts +12 -12
- package/dist/components/graphs/choropleth.d.ts +6 -6
- package/dist/components/graphs/circle-pack.d.ts +19 -19
- package/dist/components/graphs/donut.d.ts +9 -9
- package/dist/components/graphs/gauge.d.ts +27 -27
- package/dist/components/graphs/heatmap.d.ts +25 -25
- package/dist/components/graphs/histogram.d.ts +12 -12
- package/dist/components/graphs/index.d.ts +28 -28
- package/dist/components/graphs/line.d.ts +11 -11
- package/dist/components/graphs/lollipop.d.ts +14 -14
- package/dist/components/graphs/meter.d.ts +10 -10
- package/dist/components/graphs/pie.d.ts +16 -16
- package/dist/components/graphs/radar.d.ts +25 -25
- package/dist/components/graphs/scatter-stacked.d.ts +8 -8
- package/dist/components/graphs/scatter.d.ts +21 -21
- package/dist/components/graphs/skeleton-lines.d.ts +12 -12
- package/dist/components/graphs/skeleton.d.ts +23 -23
- package/dist/components/graphs/tree.d.ts +9 -9
- package/dist/components/graphs/treemap.d.ts +11 -11
- package/dist/components/graphs/wordcloud.d.ts +12 -12
- package/dist/components/index.d.ts +6 -6
- package/dist/components/layout/index.d.ts +2 -2
- package/dist/components/layout/layout.d.ts +18 -18
- package/dist/components/layout/spacer.d.ts +5 -5
- package/dist/configuration-non-customizable.d.ts +263 -263
- package/dist/configuration.d.ts +48 -48
- package/dist/demo/charts/alluvial.d.ts +109 -109
- package/dist/demo/charts/area.d.ts +224 -224
- package/dist/demo/charts/bar.d.ts +681 -681
- package/dist/demo/charts/boxplot.d.ts +34 -34
- package/dist/demo/charts/bubble.d.ts +141 -141
- package/dist/demo/charts/bullet.d.ts +24 -24
- package/dist/demo/charts/chart-types.d.ts +128 -128
- package/dist/demo/charts/choropleth.d.ts +738 -738
- package/dist/demo/charts/circle-pack.d.ts +91 -91
- package/dist/demo/charts/combo.d.ts +482 -482
- package/dist/demo/charts/donut.d.ts +64 -64
- package/dist/demo/charts/gauge.d.ts +40 -40
- package/dist/demo/charts/heatmap.d.ts +125 -125
- package/dist/demo/charts/hightlight.d.ts +40 -40
- package/dist/demo/charts/histogram.d.ts +63 -63
- package/dist/demo/charts/index.d.ts +55 -62
- package/dist/demo/charts/line.d.ts +361 -361
- package/dist/demo/charts/lollipop.d.ts +39 -39
- package/dist/demo/charts/meter.d.ts +95 -95
- package/dist/demo/charts/pie.d.ts +46 -46
- package/dist/demo/charts/radar.d.ts +63 -63
- package/dist/demo/charts/scatter.d.ts +118 -118
- package/dist/demo/charts/step.d.ts +96 -96
- package/dist/demo/charts/time-series-axis.d.ts +293 -293
- package/dist/demo/charts/toolbar.d.ts +12 -12
- package/dist/demo/charts/topojson-110.d.ts +360 -360
- package/dist/demo/charts/tree.d.ts +30 -30
- package/dist/demo/charts/treemap.d.ts +15 -15
- package/dist/demo/charts/wordcloud.d.ts +14 -14
- package/dist/demo/charts/zoom-bar.d.ts +79 -79
- package/dist/demo/index.d.ts +4 -4
- package/dist/demo/index.js +153 -166
- package/dist/demo/index.js.map +1 -1
- package/dist/demo/index.mjs +1645 -1834
- package/dist/demo/index.mjs.map +1 -1
- package/dist/demo/styles.css +567 -262
- package/dist/demo/styles.css.map +1 -1
- package/dist/demo/utils/index.d.ts +2 -2
- package/dist/demo/utils/sandbox.d.ts +38 -39
- package/dist/demo/utils/story-widgets.d.ts +7 -7
- package/dist/index-a266373c.mjs.map +1 -1
- package/dist/index-becfb567.mjs.map +1 -1
- package/dist/index-d865d500.js.map +1 -1
- package/dist/index-f23685eb.js.map +1 -1
- package/dist/index.d.ts +13 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/interfaces/a11y.d.ts +12 -12
- package/dist/interfaces/axis-scales.d.ts +201 -201
- package/dist/interfaces/charts.d.ts +520 -517
- package/dist/interfaces/components.d.ts +231 -231
- package/dist/interfaces/enums.d.ts +261 -261
- package/dist/interfaces/events.d.ts +239 -239
- package/dist/interfaces/index.d.ts +12 -11
- package/dist/interfaces/layout.d.ts +21 -21
- package/dist/interfaces/model.d.ts +35 -35
- package/dist/interfaces/services.d.ts +20 -20
- package/dist/interfaces/truncation.d.ts +17 -17
- package/dist/model/alluvial.d.ts +8 -8
- package/dist/model/binned-charts.d.ts +7 -7
- package/dist/model/boxplot.d.ts +14 -14
- package/dist/model/bullet.d.ts +14 -14
- package/dist/model/cartesian-charts.d.ts +24 -24
- package/dist/model/choropleth.d.ts +29 -29
- package/dist/model/circle-pack.d.ts +36 -36
- package/dist/model/gauge.d.ts +9 -9
- package/dist/model/heatmap.d.ts +57 -57
- package/dist/model/index.d.ts +16 -16
- package/dist/model/index.js.map +1 -1
- package/dist/model/index.mjs.map +1 -1
- package/dist/model/meter.d.ts +20 -20
- package/dist/model/model.d.ts +110 -110
- package/dist/model/pie.d.ts +9 -9
- package/dist/model/radar.d.ts +7 -7
- package/dist/model/tree.d.ts +14 -14
- package/dist/model/treemap.d.ts +8 -8
- package/dist/model/wordcloud.d.ts +7 -7
- package/dist/services/angle-utils.d.ts +15 -15
- package/dist/services/canvas-zoom.d.ts +11 -11
- package/dist/services/color-scale-utils.d.ts +2 -2
- package/dist/services/curves.d.ts +24 -24
- package/dist/services/essentials/dom-utils.d.ts +45 -45
- package/dist/services/essentials/events.d.ts +8 -8
- package/dist/services/essentials/files.d.ts +7 -7
- package/dist/services/essentials/gradient-utils.d.ts +6 -6
- package/dist/services/essentials/index.d.ts +5 -5
- package/dist/services/essentials/transitions.d.ts +13 -13
- package/dist/services/index.d.ts +9 -9
- package/dist/services/scales-cartesian.d.ts +89 -89
- package/dist/services/service.d.ts +11 -11
- package/dist/services/time-series.d.ts +13 -13
- package/dist/services/zoom.d.ts +21 -21
- package/dist/styles.css +0 -21919
- package/dist/styles.css.map +1 -1
- package/dist/styles.min.css +1 -1
- package/dist/styles.min.css.map +1 -1
- package/dist/tools.d.ts +150 -144
- package/package.json +48 -33
- package/{dist/styles/colors.scss → scss/_colors.scss} +1 -1
- package/{dist/styles/tokens.scss → scss/_tokens.scss} +6 -15
- package/scss/demos.scss +427 -0
- package/scss/index.scss +31 -0
- package/dist/styles/styles.scss +0 -40
- /package/{dist/styles → scss}/_chart-holder.scss +0 -0
- /package/{dist/styles/color-palatte.scss → scss/_color-palette.scss} +0 -0
- /package/{dist/styles → scss}/_type.scss +0 -0
- /package/{dist/styles → scss}/components/_axis.scss +0 -0
- /package/{dist/styles → scss}/components/_callouts.scss +0 -0
- /package/{dist/styles → scss}/components/_color-legend.scss +0 -0
- /package/{dist/styles → scss}/components/_edge.scss +0 -0
- /package/{dist/styles → scss}/components/_grid-brush.scss +0 -0
- /package/{dist/styles → scss}/components/_grid.scss +0 -0
- /package/{dist/styles → scss}/components/_highlights.scss +0 -0
- /package/{dist/styles → scss}/components/_layout.scss +0 -0
- /package/{dist/styles → scss}/components/_legend.scss +0 -0
- /package/{dist/styles → scss}/components/_marker.scss +0 -0
- /package/{dist/styles → scss}/components/_meter-title.scss +0 -0
- /package/{dist/styles → scss}/components/_modal.scss +0 -0
- /package/{dist/styles → scss}/components/_ruler.scss +0 -0
- /package/{dist/styles → scss}/components/_skeleton-lines.scss +0 -0
- /package/{dist/styles → scss}/components/_skeleton.scss +0 -0
- /package/{dist/styles → scss}/components/_threshold.scss +0 -0
- /package/{dist/styles → scss}/components/_title.scss +0 -0
- /package/{dist/styles → scss}/components/_toolbar.scss +0 -0
- /package/{dist/styles → scss}/components/_tooltip.scss +0 -0
- /package/{dist/styles → scss}/components/_zero-line.scss +0 -0
- /package/{dist/styles → scss}/components/_zoom-bar.scss +0 -0
- /package/{dist/styles → scss}/components/diagrams/_card-node.scss +0 -0
- /package/{dist/styles → scss}/components/diagrams/_edge.scss +0 -0
- /package/{dist/styles → scss}/components/diagrams/_marker.scss +0 -0
- /package/{dist/styles → scss}/components/diagrams/_shape-node.scss +0 -0
- /package/{dist/styles → scss}/components/diagrams/index.scss +0 -0
- /package/{dist/styles → scss}/components/index.scss +0 -0
- /package/{dist/styles → scss}/graphs/_alluvial.scss +0 -0
- /package/{dist/styles → scss}/graphs/_area.scss +0 -0
- /package/{dist/styles → scss}/graphs/_bubble.scss +0 -0
- /package/{dist/styles → scss}/graphs/_bullet.scss +0 -0
- /package/{dist/styles → scss}/graphs/_choropleth.scss +0 -0
- /package/{dist/styles → scss}/graphs/_circle-pack.scss +0 -0
- /package/{dist/styles → scss}/graphs/_donut.scss +0 -0
- /package/{dist/styles → scss}/graphs/_gauge.scss +0 -0
- /package/{dist/styles → scss}/graphs/_heatmap.scss +0 -0
- /package/{dist/styles → scss}/graphs/_line.scss +0 -0
- /package/{dist/styles → scss}/graphs/_lollipop.scss +0 -0
- /package/{dist/styles → scss}/graphs/_meter.scss +0 -0
- /package/{dist/styles → scss}/graphs/_pie.scss +0 -0
- /package/{dist/styles → scss}/graphs/_radar.scss +0 -0
- /package/{dist/styles → scss}/graphs/_scatter-stacked.scss +0 -0
- /package/{dist/styles → scss}/graphs/_scatter.scss +0 -0
- /package/{dist/styles → scss}/graphs/_tree.scss +0 -0
- /package/{dist/styles → scss}/graphs/_treemap.scss +0 -0
- /package/{dist/styles → scss}/graphs/_wordcloud.scss +0 -0
- /package/{dist/styles → scss}/graphs/index.scss +0 -0
|
@@ -1,239 +1,239 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* enum of all events related to the chart on the DOM
|
|
3
|
-
*/
|
|
4
|
-
export declare enum Chart {
|
|
5
|
-
RENDER_FINISHED = "render-finished",
|
|
6
|
-
RESIZE = "chart-resize",
|
|
7
|
-
MOUSEOVER = "chart-mouseover",
|
|
8
|
-
MOUSEOUT = "chart-mouseout"
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* enum of all events related to the overlay modal
|
|
12
|
-
*/
|
|
13
|
-
export declare enum Modal {
|
|
14
|
-
SHOW = "show-modal",
|
|
15
|
-
HIDE = "hide-modal"
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* enum of all events related to the chart model
|
|
19
|
-
*/
|
|
20
|
-
export declare enum Model {
|
|
21
|
-
UPDATE = "model-update"
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* enum of all toolbar events
|
|
25
|
-
*/
|
|
26
|
-
export declare enum Toolbar {
|
|
27
|
-
SHOW_OVERFLOW_MENU = "show-toolbar-overflow-menu",
|
|
28
|
-
HIDE_OVERFLOW_MENU = "hide-toolbar-overflow-menu",
|
|
29
|
-
BUTTON_CLICK = "toolbar-button-click"
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* enum of all events related to the zoom-bar
|
|
33
|
-
*/
|
|
34
|
-
export declare enum ZoomBar {
|
|
35
|
-
UPDATE = "zoom-bar-update",
|
|
36
|
-
SELECTION_START = "zoom-bar-selection-start",
|
|
37
|
-
SELECTION_IN_PROGRESS = "zoom-bar-selection-in-progress",
|
|
38
|
-
SELECTION_END = "zoom-bar-selection-end"
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* enum of all events related to the zoom domain
|
|
42
|
-
*/
|
|
43
|
-
export declare enum ZoomDomain {
|
|
44
|
-
CHANGE = "zoom-domain-change"
|
|
45
|
-
}
|
|
46
|
-
/** enum of all events related to canvas zoom *
|
|
47
|
-
*
|
|
48
|
-
*/
|
|
49
|
-
export declare enum CanvasZoom {
|
|
50
|
-
CANVAS_ZOOM_IN = "canvas-zoom-in",
|
|
51
|
-
CANVAS_ZOOM_OUT = "canvas-zoom-out"
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* enum of all axis-related events
|
|
55
|
-
*/
|
|
56
|
-
export declare enum Axis {
|
|
57
|
-
LABEL_MOUSEOVER = "axis-label-mouseover",
|
|
58
|
-
LABEL_MOUSEMOVE = "axis-label-mousemove",
|
|
59
|
-
LABEL_CLICK = "axis-label-click",
|
|
60
|
-
LABEL_MOUSEOUT = "axis-label-mouseout",
|
|
61
|
-
LABEL_FOCUS = "axis-label-focus",
|
|
62
|
-
LABEL_BLUR = "axis-label-blur",
|
|
63
|
-
RENDER_COMPLETE = "axis-render-complete"
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* enum of all area graph events
|
|
67
|
-
*/
|
|
68
|
-
export declare enum Area {
|
|
69
|
-
POINT_MOUSEOVER = "scatter-mouseover",
|
|
70
|
-
POINT_MOUSEMOVE = "scatter-mousemove",
|
|
71
|
-
POINT_CLICK = "scatter-click",
|
|
72
|
-
POINT_MOUSEOUT = "scatter-mouseout"
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* enum of all wordcloud graph events
|
|
76
|
-
*/
|
|
77
|
-
export declare enum WordCloud {
|
|
78
|
-
WORD_MOUSEOVER = "wordcloud-word-mouseover",
|
|
79
|
-
WORD_MOUSEMOVE = "wordcloud-word-mousemove",
|
|
80
|
-
WORD_CLICK = "wordcloud-word-click",
|
|
81
|
-
WORD_MOUSEOUT = "wordcloud-word-mouseout"
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* enum of all pie graph events
|
|
85
|
-
*/
|
|
86
|
-
export declare enum Pie {
|
|
87
|
-
SLICE_MOUSEOVER = "pie-slice-mouseover",
|
|
88
|
-
SLICE_MOUSEMOVE = "pie-slice-mousemove",
|
|
89
|
-
SLICE_CLICK = "pie-slice-click",
|
|
90
|
-
SLICE_MOUSEOUT = "pie-slice-mouseout"
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* enum of all gauge graph events
|
|
94
|
-
*/
|
|
95
|
-
export declare enum Gauge {
|
|
96
|
-
ARC_MOUSEOVER = "gauge-arc-mouseover",
|
|
97
|
-
ARC_MOUSEMOVE = "gauge-arc-mousemove",
|
|
98
|
-
ARC_CLICK = "gauge-arc-click",
|
|
99
|
-
ARC_MOUSEOUT = "gauge-arc-mouseout"
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* enum of all bar graph events
|
|
103
|
-
*/
|
|
104
|
-
export declare enum Bar {
|
|
105
|
-
BAR_MOUSEOVER = "bar-mouseover",
|
|
106
|
-
BAR_MOUSEMOVE = "bar-mousemove",
|
|
107
|
-
BAR_CLICK = "bar-click",
|
|
108
|
-
BAR_MOUSEOUT = "bar-mouseout"
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* enum of all boxplot graph events
|
|
112
|
-
*/
|
|
113
|
-
export declare enum Boxplot {
|
|
114
|
-
BOX_MOUSEOVER = "box-mouseover",
|
|
115
|
-
BOX_MOUSEMOVE = "box-mousemove",
|
|
116
|
-
BOX_CLICK = "box-click",
|
|
117
|
-
BOX_MOUSEOUT = "box-mouseout",
|
|
118
|
-
OUTLIER_MOUSEOVER = "outlier-mouseover",
|
|
119
|
-
OUTLIER_MOUSEMOVE = "outlier-mousemove",
|
|
120
|
-
OUTLIER_CLICK = "outlier-click",
|
|
121
|
-
OUTLIER_MOUSEOUT = "outlier-mouseout"
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* enum of all scatter graph events
|
|
125
|
-
*/
|
|
126
|
-
export declare enum Scatter {
|
|
127
|
-
SCATTER_MOUSEOVER = "scatter-mouseover",
|
|
128
|
-
SCATTER_MOUSEMOVE = "scatter-mousemove",
|
|
129
|
-
SCATTER_CLICK = "scatter-click",
|
|
130
|
-
SCATTER_MOUSEOUT = "scatter-mouseout"
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* enum of all line graph events
|
|
134
|
-
*/
|
|
135
|
-
export declare enum Line {
|
|
136
|
-
POINT_MOUSEOVER = "scatter-mouseover",
|
|
137
|
-
POINT_MOUSEMOVE = "scatter-mousemove",
|
|
138
|
-
POINT_CLICK = "scatter-click",
|
|
139
|
-
POINT_MOUSEOUT = "scatter-mouseout"
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* enum of all radar graph events
|
|
143
|
-
*/
|
|
144
|
-
export declare enum Radar {
|
|
145
|
-
X_AXIS_MOUSEOVER = "radar-x-axis-mouseover",
|
|
146
|
-
X_AXIS_MOUSEMOVE = "radar-x-axis-mousemove",
|
|
147
|
-
X_AXIS_CLICK = "radar-x-axis-click",
|
|
148
|
-
X_AXIS_MOUSEOUT = "radar-x-axis-mouseout"
|
|
149
|
-
}
|
|
150
|
-
/**
|
|
151
|
-
* enum of all tree graph events
|
|
152
|
-
*/
|
|
153
|
-
export declare enum Tree {
|
|
154
|
-
NODE_MOUSEOVER = "tree-node-mouseover",
|
|
155
|
-
NODE_CLICK = "tree-node-click",
|
|
156
|
-
NODE_MOUSEOUT = "tree-node-mouseout"
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* enum of all treemap graph events
|
|
160
|
-
*/
|
|
161
|
-
export declare enum Treemap {
|
|
162
|
-
LEAF_MOUSEOVER = "leaf-mouseover",
|
|
163
|
-
LEAF_MOUSEMOVE = "leaf-mousemove",
|
|
164
|
-
LEAF_CLICK = "leaf-click",
|
|
165
|
-
LEAF_MOUSEOUT = "leaf-mouseout"
|
|
166
|
-
}
|
|
167
|
-
/**
|
|
168
|
-
* enum of all tooltip events
|
|
169
|
-
*/
|
|
170
|
-
export declare enum Tooltip {
|
|
171
|
-
SHOW = "show-tooltip",
|
|
172
|
-
MOVE = "move-tooltip",
|
|
173
|
-
HIDE = "hide-tooltip"
|
|
174
|
-
}
|
|
175
|
-
/**
|
|
176
|
-
* enum of all threshold events
|
|
177
|
-
*/
|
|
178
|
-
export declare enum Threshold {
|
|
179
|
-
SHOW = "show-threshold",
|
|
180
|
-
HIDE = "hide-threshold"
|
|
181
|
-
}
|
|
182
|
-
/**
|
|
183
|
-
* enum of all legend related events
|
|
184
|
-
*/
|
|
185
|
-
export declare enum Legend {
|
|
186
|
-
ITEM_HOVER = "legend-item-onhover",
|
|
187
|
-
ITEM_CLICK = "legend-item-onclick",
|
|
188
|
-
ITEM_MOUSEOUT = "legend-item-onmouseout",
|
|
189
|
-
ITEMS_UPDATE = "legend-items-update"
|
|
190
|
-
}
|
|
191
|
-
/**
|
|
192
|
-
* enum of all circlepack related events
|
|
193
|
-
*/
|
|
194
|
-
export declare enum CirclePack {
|
|
195
|
-
CIRCLE_MOUSEOVER = "circle-leaf-mouseover",
|
|
196
|
-
CIRCLE_CLICK = "circle-leaf-click",
|
|
197
|
-
CIRCLE_MOUSEOUT = "circle-leaf-mouseout",
|
|
198
|
-
CIRCLE_MOUSEMOVE = "circle-leaf-mousemove"
|
|
199
|
-
}
|
|
200
|
-
/**
|
|
201
|
-
* enum of all alluvial related events
|
|
202
|
-
*/
|
|
203
|
-
export declare enum Alluvial {
|
|
204
|
-
NODE_MOUSEOVER = "alluvial-node-mouseover",
|
|
205
|
-
NODE_CLICK = "alluvial-node-click",
|
|
206
|
-
NODE_MOUSEOUT = "alluvial-node-mouseout",
|
|
207
|
-
NODE_MOUSEMOVE = "alluvial-node-mousemove",
|
|
208
|
-
LINE_MOUSEOVER = "alluvial-line-mouseover",
|
|
209
|
-
LINE_CLICK = "alluvial-line-click",
|
|
210
|
-
LINE_MOUSEOUT = "alluvial-line-mouseout",
|
|
211
|
-
LINE_MOUSEMOVE = "alluvial-line-mousemove"
|
|
212
|
-
}
|
|
213
|
-
/**
|
|
214
|
-
* enum of all meter related events
|
|
215
|
-
*/
|
|
216
|
-
export declare enum Meter {
|
|
217
|
-
METER_MOUSEOVER = "meter-mouseover",
|
|
218
|
-
METER_CLICK = "meter-click",
|
|
219
|
-
METER_MOUSEOUT = "meter-mouseout",
|
|
220
|
-
METER_MOUSEMOVE = "meter-mousemove"
|
|
221
|
-
}
|
|
222
|
-
/**
|
|
223
|
-
* enum of all heatmap related events
|
|
224
|
-
*/
|
|
225
|
-
export declare enum Heatmap {
|
|
226
|
-
HEATMAP_MOUSEOVER = "heatmap-mouseover",
|
|
227
|
-
HEATMAP_CLICK = "heatmap-click",
|
|
228
|
-
HEATMAP_MOUSEOUT = "heatmap-mouseout",
|
|
229
|
-
HEATMAP_MOUSEMOVE = "hetmap-mousemove"
|
|
230
|
-
}
|
|
231
|
-
/**
|
|
232
|
-
* enum of all choropleth related events
|
|
233
|
-
*/
|
|
234
|
-
export declare enum Choropleth {
|
|
235
|
-
CHOROPLETH_MOUSEOVER = "choropleth-mouseover",
|
|
236
|
-
CHOROPLETH_CLICK = "choropleth-click",
|
|
237
|
-
CHOROPLETH_MOUSEOUT = "choropleth-mouseout",
|
|
238
|
-
CHOROPLETH_MOUSEMOVE = "choropleth-mousemove"
|
|
239
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* enum of all events related to the chart on the DOM
|
|
3
|
+
*/
|
|
4
|
+
export declare enum Chart {
|
|
5
|
+
RENDER_FINISHED = "render-finished",
|
|
6
|
+
RESIZE = "chart-resize",
|
|
7
|
+
MOUSEOVER = "chart-mouseover",
|
|
8
|
+
MOUSEOUT = "chart-mouseout"
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* enum of all events related to the overlay modal
|
|
12
|
+
*/
|
|
13
|
+
export declare enum Modal {
|
|
14
|
+
SHOW = "show-modal",
|
|
15
|
+
HIDE = "hide-modal"
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* enum of all events related to the chart model
|
|
19
|
+
*/
|
|
20
|
+
export declare enum Model {
|
|
21
|
+
UPDATE = "model-update"
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* enum of all toolbar events
|
|
25
|
+
*/
|
|
26
|
+
export declare enum Toolbar {
|
|
27
|
+
SHOW_OVERFLOW_MENU = "show-toolbar-overflow-menu",
|
|
28
|
+
HIDE_OVERFLOW_MENU = "hide-toolbar-overflow-menu",
|
|
29
|
+
BUTTON_CLICK = "toolbar-button-click"
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* enum of all events related to the zoom-bar
|
|
33
|
+
*/
|
|
34
|
+
export declare enum ZoomBar {
|
|
35
|
+
UPDATE = "zoom-bar-update",
|
|
36
|
+
SELECTION_START = "zoom-bar-selection-start",
|
|
37
|
+
SELECTION_IN_PROGRESS = "zoom-bar-selection-in-progress",
|
|
38
|
+
SELECTION_END = "zoom-bar-selection-end"
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* enum of all events related to the zoom domain
|
|
42
|
+
*/
|
|
43
|
+
export declare enum ZoomDomain {
|
|
44
|
+
CHANGE = "zoom-domain-change"
|
|
45
|
+
}
|
|
46
|
+
/** enum of all events related to canvas zoom *
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
export declare enum CanvasZoom {
|
|
50
|
+
CANVAS_ZOOM_IN = "canvas-zoom-in",
|
|
51
|
+
CANVAS_ZOOM_OUT = "canvas-zoom-out"
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* enum of all axis-related events
|
|
55
|
+
*/
|
|
56
|
+
export declare enum Axis {
|
|
57
|
+
LABEL_MOUSEOVER = "axis-label-mouseover",
|
|
58
|
+
LABEL_MOUSEMOVE = "axis-label-mousemove",
|
|
59
|
+
LABEL_CLICK = "axis-label-click",
|
|
60
|
+
LABEL_MOUSEOUT = "axis-label-mouseout",
|
|
61
|
+
LABEL_FOCUS = "axis-label-focus",
|
|
62
|
+
LABEL_BLUR = "axis-label-blur",
|
|
63
|
+
RENDER_COMPLETE = "axis-render-complete"
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* enum of all area graph events
|
|
67
|
+
*/
|
|
68
|
+
export declare enum Area {
|
|
69
|
+
POINT_MOUSEOVER = "scatter-mouseover",
|
|
70
|
+
POINT_MOUSEMOVE = "scatter-mousemove",
|
|
71
|
+
POINT_CLICK = "scatter-click",
|
|
72
|
+
POINT_MOUSEOUT = "scatter-mouseout"
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* enum of all wordcloud graph events
|
|
76
|
+
*/
|
|
77
|
+
export declare enum WordCloud {
|
|
78
|
+
WORD_MOUSEOVER = "wordcloud-word-mouseover",
|
|
79
|
+
WORD_MOUSEMOVE = "wordcloud-word-mousemove",
|
|
80
|
+
WORD_CLICK = "wordcloud-word-click",
|
|
81
|
+
WORD_MOUSEOUT = "wordcloud-word-mouseout"
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* enum of all pie graph events
|
|
85
|
+
*/
|
|
86
|
+
export declare enum Pie {
|
|
87
|
+
SLICE_MOUSEOVER = "pie-slice-mouseover",
|
|
88
|
+
SLICE_MOUSEMOVE = "pie-slice-mousemove",
|
|
89
|
+
SLICE_CLICK = "pie-slice-click",
|
|
90
|
+
SLICE_MOUSEOUT = "pie-slice-mouseout"
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* enum of all gauge graph events
|
|
94
|
+
*/
|
|
95
|
+
export declare enum Gauge {
|
|
96
|
+
ARC_MOUSEOVER = "gauge-arc-mouseover",
|
|
97
|
+
ARC_MOUSEMOVE = "gauge-arc-mousemove",
|
|
98
|
+
ARC_CLICK = "gauge-arc-click",
|
|
99
|
+
ARC_MOUSEOUT = "gauge-arc-mouseout"
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* enum of all bar graph events
|
|
103
|
+
*/
|
|
104
|
+
export declare enum Bar {
|
|
105
|
+
BAR_MOUSEOVER = "bar-mouseover",
|
|
106
|
+
BAR_MOUSEMOVE = "bar-mousemove",
|
|
107
|
+
BAR_CLICK = "bar-click",
|
|
108
|
+
BAR_MOUSEOUT = "bar-mouseout"
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* enum of all boxplot graph events
|
|
112
|
+
*/
|
|
113
|
+
export declare enum Boxplot {
|
|
114
|
+
BOX_MOUSEOVER = "box-mouseover",
|
|
115
|
+
BOX_MOUSEMOVE = "box-mousemove",
|
|
116
|
+
BOX_CLICK = "box-click",
|
|
117
|
+
BOX_MOUSEOUT = "box-mouseout",
|
|
118
|
+
OUTLIER_MOUSEOVER = "outlier-mouseover",
|
|
119
|
+
OUTLIER_MOUSEMOVE = "outlier-mousemove",
|
|
120
|
+
OUTLIER_CLICK = "outlier-click",
|
|
121
|
+
OUTLIER_MOUSEOUT = "outlier-mouseout"
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* enum of all scatter graph events
|
|
125
|
+
*/
|
|
126
|
+
export declare enum Scatter {
|
|
127
|
+
SCATTER_MOUSEOVER = "scatter-mouseover",
|
|
128
|
+
SCATTER_MOUSEMOVE = "scatter-mousemove",
|
|
129
|
+
SCATTER_CLICK = "scatter-click",
|
|
130
|
+
SCATTER_MOUSEOUT = "scatter-mouseout"
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* enum of all line graph events
|
|
134
|
+
*/
|
|
135
|
+
export declare enum Line {
|
|
136
|
+
POINT_MOUSEOVER = "scatter-mouseover",
|
|
137
|
+
POINT_MOUSEMOVE = "scatter-mousemove",
|
|
138
|
+
POINT_CLICK = "scatter-click",
|
|
139
|
+
POINT_MOUSEOUT = "scatter-mouseout"
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* enum of all radar graph events
|
|
143
|
+
*/
|
|
144
|
+
export declare enum Radar {
|
|
145
|
+
X_AXIS_MOUSEOVER = "radar-x-axis-mouseover",
|
|
146
|
+
X_AXIS_MOUSEMOVE = "radar-x-axis-mousemove",
|
|
147
|
+
X_AXIS_CLICK = "radar-x-axis-click",
|
|
148
|
+
X_AXIS_MOUSEOUT = "radar-x-axis-mouseout"
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* enum of all tree graph events
|
|
152
|
+
*/
|
|
153
|
+
export declare enum Tree {
|
|
154
|
+
NODE_MOUSEOVER = "tree-node-mouseover",
|
|
155
|
+
NODE_CLICK = "tree-node-click",
|
|
156
|
+
NODE_MOUSEOUT = "tree-node-mouseout"
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* enum of all treemap graph events
|
|
160
|
+
*/
|
|
161
|
+
export declare enum Treemap {
|
|
162
|
+
LEAF_MOUSEOVER = "leaf-mouseover",
|
|
163
|
+
LEAF_MOUSEMOVE = "leaf-mousemove",
|
|
164
|
+
LEAF_CLICK = "leaf-click",
|
|
165
|
+
LEAF_MOUSEOUT = "leaf-mouseout"
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* enum of all tooltip events
|
|
169
|
+
*/
|
|
170
|
+
export declare enum Tooltip {
|
|
171
|
+
SHOW = "show-tooltip",
|
|
172
|
+
MOVE = "move-tooltip",
|
|
173
|
+
HIDE = "hide-tooltip"
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* enum of all threshold events
|
|
177
|
+
*/
|
|
178
|
+
export declare enum Threshold {
|
|
179
|
+
SHOW = "show-threshold",
|
|
180
|
+
HIDE = "hide-threshold"
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* enum of all legend related events
|
|
184
|
+
*/
|
|
185
|
+
export declare enum Legend {
|
|
186
|
+
ITEM_HOVER = "legend-item-onhover",
|
|
187
|
+
ITEM_CLICK = "legend-item-onclick",
|
|
188
|
+
ITEM_MOUSEOUT = "legend-item-onmouseout",
|
|
189
|
+
ITEMS_UPDATE = "legend-items-update"
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* enum of all circlepack related events
|
|
193
|
+
*/
|
|
194
|
+
export declare enum CirclePack {
|
|
195
|
+
CIRCLE_MOUSEOVER = "circle-leaf-mouseover",
|
|
196
|
+
CIRCLE_CLICK = "circle-leaf-click",
|
|
197
|
+
CIRCLE_MOUSEOUT = "circle-leaf-mouseout",
|
|
198
|
+
CIRCLE_MOUSEMOVE = "circle-leaf-mousemove"
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* enum of all alluvial related events
|
|
202
|
+
*/
|
|
203
|
+
export declare enum Alluvial {
|
|
204
|
+
NODE_MOUSEOVER = "alluvial-node-mouseover",
|
|
205
|
+
NODE_CLICK = "alluvial-node-click",
|
|
206
|
+
NODE_MOUSEOUT = "alluvial-node-mouseout",
|
|
207
|
+
NODE_MOUSEMOVE = "alluvial-node-mousemove",
|
|
208
|
+
LINE_MOUSEOVER = "alluvial-line-mouseover",
|
|
209
|
+
LINE_CLICK = "alluvial-line-click",
|
|
210
|
+
LINE_MOUSEOUT = "alluvial-line-mouseout",
|
|
211
|
+
LINE_MOUSEMOVE = "alluvial-line-mousemove"
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* enum of all meter related events
|
|
215
|
+
*/
|
|
216
|
+
export declare enum Meter {
|
|
217
|
+
METER_MOUSEOVER = "meter-mouseover",
|
|
218
|
+
METER_CLICK = "meter-click",
|
|
219
|
+
METER_MOUSEOUT = "meter-mouseout",
|
|
220
|
+
METER_MOUSEMOVE = "meter-mousemove"
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* enum of all heatmap related events
|
|
224
|
+
*/
|
|
225
|
+
export declare enum Heatmap {
|
|
226
|
+
HEATMAP_MOUSEOVER = "heatmap-mouseover",
|
|
227
|
+
HEATMAP_CLICK = "heatmap-click",
|
|
228
|
+
HEATMAP_MOUSEOUT = "heatmap-mouseout",
|
|
229
|
+
HEATMAP_MOUSEMOVE = "hetmap-mousemove"
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* enum of all choropleth related events
|
|
233
|
+
*/
|
|
234
|
+
export declare enum Choropleth {
|
|
235
|
+
CHOROPLETH_MOUSEOVER = "choropleth-mouseover",
|
|
236
|
+
CHOROPLETH_CLICK = "choropleth-click",
|
|
237
|
+
CHOROPLETH_MOUSEOUT = "choropleth-mouseout",
|
|
238
|
+
CHOROPLETH_MOUSEMOVE = "choropleth-mousemove"
|
|
239
|
+
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
export { Roles } from './a11y';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export { Alignments, ArrowDirections, AxisFlavor, AxisPositions, AxisTitleOrientations, CalloutDirections, CartesianOrientations, ChartTheme, ChartTypes, ColorClassNameTypes, ColorLegendType, DividerStatus, DominantBaseline, GaugeTypes, LayoutAlignItems, LayoutDirection, LayoutGrowth, LegendItemType, LegendOrientations, LegendPositions, Projection, RenderTypes, ScaleTypes, Skeletons, Statuses, TextAnchor, TickRotations, ToolbarControlTypes, TruncationTypes, TreeTypes, ZoomBarTypes } from './enums';
|
|
10
|
-
|
|
11
|
-
export {
|
|
1
|
+
export { Roles } from './a11y';
|
|
2
|
+
export { AxesOptions, AxisOptions, BasedAxisOptions, BinnedAxisOptions, ComboChartAxisOptions, TickFormats, TimeIntervalFormats, TimeScaleOptions } from './axis-scales';
|
|
3
|
+
export { AlluvialChartOptions, AreaChartOptions, AxisChartOptions, BarChartOptions, BaseChartOptions, BinnedAxisChartOptions, BoxplotChartOptions, BubbleChartOptions, BulletChartOptions, ChartOptions, ChoroplethChartOptions, CirclePackChartOptions, ComboChartOptions, DonutChartOptions, GaugeChartOptions, HeatmapChartOptions, HistogramChartOptions, LineChartOptions, LollipopChartOptions, MeterChartOptions, PieChartOptions, ProportionalMeterChartOptions, RadarChartOptions, ScatterChartOptions, StackedAreaChartOptions, StackedBarChartOptions, ThematicChartOptions, TreemapChartOptions, TreeChartOptions, WorldCloudChartOptions, WordCloudChartTooltipOptions } from './charts';
|
|
4
|
+
export { BarOptions, GridOptions, LayoutComponentChild, LegendItem, LegendOptions, RulerOptions, StackedBarOptions, ThresholdOptions, TooltipOptions, ToolbarControl, ToolbarOptions, ZoomBarOptions, ZoomBarsOptions } from './components';
|
|
5
|
+
export { Coordinates, LayoutConfigs } from './layout';
|
|
6
|
+
export { ChartConfig, ChartData, ChartTabularData, DataSet } from './model';
|
|
7
|
+
export { Services } from './services';
|
|
8
|
+
export { TruncationOptions } from './truncation';
|
|
9
|
+
export { Alignments, ArrowDirections, AxisFlavor, AxisPositions, AxisTitleOrientations, CalloutDirections, CartesianOrientations, ChartTheme, ChartTypes, ColorClassNameTypes, ColorLegendType, DividerStatus, DominantBaseline, GaugeTypes, LayoutAlignItems, LayoutDirection, LayoutGrowth, LegendItemType, LegendOrientations, LegendPositions, Projection, RenderTypes, ScaleTypes, Skeletons, Statuses, TextAnchor, TickRotations, ToolbarControlTypes, TruncationTypes, TreeTypes, ZoomBarTypes } from './enums';
|
|
10
|
+
import * as Events_1 from './events';
|
|
11
|
+
export { Events_1 as Events };
|
|
12
|
+
export { Area as AreaEvent, Axis as AxisEvent, Bar as BarEvent, Boxplot as BoxplotEvent, CanvasZoom as CanvasZoomEvent, Chart as ChartEvent, Gauge as GaugeEvent, Line as LineEvent, Modal as ModalEvent, Model as ModelEvent, Pie as PieEvent, Radar as RadarEvent, Scatter as ScatterEvent, Threshold as ThresholdEvent, Tooltip as TooltipEvent, Tree as TreeEvent, Treemap as TreemapEvent, WordCloud as WordCloudEvent, ZoomBar as ZoombarEvent, ZoomDomain as ZoomDomainEvent } from './events';
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
export interface LayoutConfigs {
|
|
3
|
-
/**
|
|
4
|
-
* Direction/orientation of the layout
|
|
5
|
-
*/
|
|
6
|
-
direction?: LayoutDirection;
|
|
7
|
-
/**
|
|
8
|
-
* Whether to render through SVG or HTML
|
|
9
|
-
*/
|
|
10
|
-
renderType?: RenderTypes;
|
|
11
|
-
/**
|
|
12
|
-
* how the layout will align its children
|
|
13
|
-
*/
|
|
14
|
-
alignItems?: LayoutAlignItems;
|
|
15
|
-
}
|
|
16
|
-
export interface Coordinates {
|
|
17
|
-
x: number;
|
|
18
|
-
y: number;
|
|
19
|
-
x0?: number;
|
|
20
|
-
y0?: number;
|
|
21
|
-
}
|
|
1
|
+
import { LayoutAlignItems, LayoutDirection, RenderTypes } from './enums';
|
|
2
|
+
export interface LayoutConfigs {
|
|
3
|
+
/**
|
|
4
|
+
* Direction/orientation of the layout
|
|
5
|
+
*/
|
|
6
|
+
direction?: LayoutDirection;
|
|
7
|
+
/**
|
|
8
|
+
* Whether to render through SVG or HTML
|
|
9
|
+
*/
|
|
10
|
+
renderType?: RenderTypes;
|
|
11
|
+
/**
|
|
12
|
+
* how the layout will align its children
|
|
13
|
+
*/
|
|
14
|
+
alignItems?: LayoutAlignItems;
|
|
15
|
+
}
|
|
16
|
+
export interface Coordinates {
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
x0?: number;
|
|
20
|
+
y0?: number;
|
|
21
|
+
}
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import
|
|
2
|
-
export type ChartTabularData = Record<string, any>[];
|
|
3
|
-
/**
|
|
4
|
-
* Configuration passed to the chart.
|
|
5
|
-
*
|
|
6
|
-
* Includes options and data
|
|
7
|
-
*/
|
|
8
|
-
export interface ChartConfig<T extends AxisChartOptions> {
|
|
9
|
-
options: T;
|
|
10
|
-
data: ChartTabularData;
|
|
11
|
-
}
|
|
12
|
-
export interface DataSet {
|
|
13
|
-
/**
|
|
14
|
-
* Label for the dataset
|
|
15
|
-
*/
|
|
16
|
-
label: string;
|
|
17
|
-
/**
|
|
18
|
-
* Array of hex background colors
|
|
19
|
-
*/
|
|
20
|
-
fillColors: string[];
|
|
21
|
-
/**
|
|
22
|
-
* Array of data values
|
|
23
|
-
*/
|
|
24
|
-
data: any[];
|
|
25
|
-
}
|
|
26
|
-
export interface ChartData {
|
|
27
|
-
/**
|
|
28
|
-
* Labels for the x (horizontal) axis. Should match the number of items in each dataset data array
|
|
29
|
-
*/
|
|
30
|
-
labels: string[];
|
|
31
|
-
/**
|
|
32
|
-
* Array of datasets to display in the chart
|
|
33
|
-
*/
|
|
34
|
-
datasets: DataSet[];
|
|
35
|
-
}
|
|
1
|
+
import { AxisChartOptions } from './charts';
|
|
2
|
+
export type ChartTabularData = Record<string, any>[];
|
|
3
|
+
/**
|
|
4
|
+
* Configuration passed to the chart.
|
|
5
|
+
*
|
|
6
|
+
* Includes options and data
|
|
7
|
+
*/
|
|
8
|
+
export interface ChartConfig<T extends AxisChartOptions> {
|
|
9
|
+
options: T;
|
|
10
|
+
data: ChartTabularData;
|
|
11
|
+
}
|
|
12
|
+
export interface DataSet {
|
|
13
|
+
/**
|
|
14
|
+
* Label for the dataset
|
|
15
|
+
*/
|
|
16
|
+
label: string;
|
|
17
|
+
/**
|
|
18
|
+
* Array of hex background colors
|
|
19
|
+
*/
|
|
20
|
+
fillColors: string[];
|
|
21
|
+
/**
|
|
22
|
+
* Array of data values
|
|
23
|
+
*/
|
|
24
|
+
data: any[];
|
|
25
|
+
}
|
|
26
|
+
export interface ChartData {
|
|
27
|
+
/**
|
|
28
|
+
* Labels for the x (horizontal) axis. Should match the number of items in each dataset data array
|
|
29
|
+
*/
|
|
30
|
+
labels: string[];
|
|
31
|
+
/**
|
|
32
|
+
* Array of datasets to display in the chart
|
|
33
|
+
*/
|
|
34
|
+
datasets: DataSet[];
|
|
35
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
export interface Services {
|
|
11
|
-
canvasZoom?: CanvasZoom;
|
|
12
|
-
cartesianScales?: CartesianScales;
|
|
13
|
-
curves?: Curves;
|
|
14
|
-
domUtils?: DOMUtils;
|
|
15
|
-
events?: Events;
|
|
16
|
-
files?: Files;
|
|
17
|
-
gradientUtils?: GradientUtils;
|
|
18
|
-
transitions?: Transitions;
|
|
19
|
-
zoom?: Zoom;
|
|
20
|
-
}
|
|
1
|
+
import { Transitions } from '../services/essentials/transitions';
|
|
2
|
+
import { DOMUtils } from '../services/essentials/dom-utils';
|
|
3
|
+
import { CartesianScales } from '../services/scales-cartesian';
|
|
4
|
+
import { CanvasZoom } from '../services/canvas-zoom';
|
|
5
|
+
import { Curves } from '../services/curves';
|
|
6
|
+
import { Events } from '../services/essentials/events';
|
|
7
|
+
import { Files } from '../services/essentials/files';
|
|
8
|
+
import { GradientUtils } from '../services/essentials/gradient-utils';
|
|
9
|
+
import { Zoom } from '../services/zoom';
|
|
10
|
+
export interface Services {
|
|
11
|
+
canvasZoom?: CanvasZoom;
|
|
12
|
+
cartesianScales?: CartesianScales;
|
|
13
|
+
curves?: Curves;
|
|
14
|
+
domUtils?: DOMUtils;
|
|
15
|
+
events?: Events;
|
|
16
|
+
files?: Files;
|
|
17
|
+
gradientUtils?: GradientUtils;
|
|
18
|
+
transitions?: Transitions;
|
|
19
|
+
zoom?: Zoom;
|
|
20
|
+
}
|