@techie_doubts/tui.chart.2026 4.6.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 +165 -0
- package/dist/esm/animator.d.ts +32 -0
- package/dist/esm/animator.js +102 -0
- package/dist/esm/brushes/axis.d.ts +3 -0
- package/dist/esm/brushes/axis.js +21 -0
- package/dist/esm/brushes/basic.d.ts +9 -0
- package/dist/esm/brushes/basic.js +95 -0
- package/dist/esm/brushes/boxPlot.d.ts +2 -0
- package/dist/esm/brushes/boxPlot.js +22 -0
- package/dist/esm/brushes/circleLegend.d.ts +2 -0
- package/dist/esm/brushes/circleLegend.js +26 -0
- package/dist/esm/brushes/dataLabel.d.ts +6 -0
- package/dist/esm/brushes/dataLabel.js +176 -0
- package/dist/esm/brushes/exportMenu.d.ts +2 -0
- package/dist/esm/brushes/exportMenu.js +55 -0
- package/dist/esm/brushes/gauge.d.ts +2 -0
- package/dist/esm/brushes/gauge.js +39 -0
- package/dist/esm/brushes/label.d.ts +34 -0
- package/dist/esm/brushes/label.js +165 -0
- package/dist/esm/brushes/legend.d.ts +7 -0
- package/dist/esm/brushes/legend.js +162 -0
- package/dist/esm/brushes/lineSeries.d.ts +5 -0
- package/dist/esm/brushes/lineSeries.js +41 -0
- package/dist/esm/brushes/polygon.d.ts +2 -0
- package/dist/esm/brushes/polygon.js +24 -0
- package/dist/esm/brushes/resetButton.d.ts +3 -0
- package/dist/esm/brushes/resetButton.js +112 -0
- package/dist/esm/brushes/scatterSeries.d.ts +2 -0
- package/dist/esm/brushes/scatterSeries.js +125 -0
- package/dist/esm/brushes/sector.d.ts +2 -0
- package/dist/esm/brushes/sector.js +54 -0
- package/dist/esm/brushes/spectrumLegend.d.ts +14 -0
- package/dist/esm/brushes/spectrumLegend.js +199 -0
- package/dist/esm/charts/areaChart.d.ts +254 -0
- package/dist/esm/charts/areaChart.js +358 -0
- package/dist/esm/charts/barChart.d.ts +203 -0
- package/dist/esm/charts/barChart.js +300 -0
- package/dist/esm/charts/boxPlotChart.d.ts +209 -0
- package/dist/esm/charts/boxPlotChart.js +288 -0
- package/dist/esm/charts/bubbleChart.d.ts +188 -0
- package/dist/esm/charts/bubbleChart.js +263 -0
- package/dist/esm/charts/bulletChart.d.ts +199 -0
- package/dist/esm/charts/bulletChart.js +278 -0
- package/dist/esm/charts/chart.d.ts +133 -0
- package/dist/esm/charts/chart.js +484 -0
- package/dist/esm/charts/columnChart.d.ts +205 -0
- package/dist/esm/charts/columnChart.js +299 -0
- package/dist/esm/charts/columnLineChart.d.ts +271 -0
- package/dist/esm/charts/columnLineChart.js +386 -0
- package/dist/esm/charts/gaugeChart.d.ts +191 -0
- package/dist/esm/charts/gaugeChart.js +279 -0
- package/dist/esm/charts/heatmapChart.d.ts +199 -0
- package/dist/esm/charts/heatmapChart.js +292 -0
- package/dist/esm/charts/lineAreaChart.d.ts +271 -0
- package/dist/esm/charts/lineAreaChart.js +374 -0
- package/dist/esm/charts/lineChart.d.ts +253 -0
- package/dist/esm/charts/lineChart.js +360 -0
- package/dist/esm/charts/lineScatterChart.d.ts +200 -0
- package/dist/esm/charts/lineScatterChart.js +285 -0
- package/dist/esm/charts/nestedPieChart.d.ts +192 -0
- package/dist/esm/charts/nestedPieChart.js +268 -0
- package/dist/esm/charts/pieChart.d.ts +156 -0
- package/dist/esm/charts/pieChart.js +224 -0
- package/dist/esm/charts/radarChart.d.ts +169 -0
- package/dist/esm/charts/radarChart.js +240 -0
- package/dist/esm/charts/radialBarChart.d.ts +172 -0
- package/dist/esm/charts/radialBarChart.js +251 -0
- package/dist/esm/charts/scatterChart.d.ts +184 -0
- package/dist/esm/charts/scatterChart.js +279 -0
- package/dist/esm/charts/treemapChart.d.ts +166 -0
- package/dist/esm/charts/treemapChart.js +239 -0
- package/dist/esm/component/areaSeries.d.ts +96 -0
- package/dist/esm/component/areaSeries.js +474 -0
- package/dist/esm/component/axis.d.ts +40 -0
- package/dist/esm/component/axis.js +176 -0
- package/dist/esm/component/axisTitle.d.ts +25 -0
- package/dist/esm/component/axisTitle.js +67 -0
- package/dist/esm/component/axisUsingCenterY.d.ts +32 -0
- package/dist/esm/component/axisUsingCenterY.js +175 -0
- package/dist/esm/component/backButton.d.ts +13 -0
- package/dist/esm/component/backButton.js +26 -0
- package/dist/esm/component/background.d.ts +10 -0
- package/dist/esm/component/background.js +15 -0
- package/dist/esm/component/boxPlotSeries.d.ts +126 -0
- package/dist/esm/component/boxPlotSeries.js +410 -0
- package/dist/esm/component/boxSeries.d.ts +211 -0
- package/dist/esm/component/boxSeries.js +603 -0
- package/dist/esm/component/boxStackSeries.d.ts +62 -0
- package/dist/esm/component/boxStackSeries.js +447 -0
- package/dist/esm/component/bubbleSeries.d.ts +35 -0
- package/dist/esm/component/bubbleSeries.js +174 -0
- package/dist/esm/component/bulletSeries.d.ts +89 -0
- package/dist/esm/component/bulletSeries.js +392 -0
- package/dist/esm/component/circleLegend.d.ts +10 -0
- package/dist/esm/component/circleLegend.js +37 -0
- package/dist/esm/component/component.d.ts +64 -0
- package/dist/esm/component/component.js +170 -0
- package/dist/esm/component/componentManager.d.ts +23 -0
- package/dist/esm/component/componentManager.js +45 -0
- package/dist/esm/component/dataLabels.d.ts +23 -0
- package/dist/esm/component/dataLabels.js +134 -0
- package/dist/esm/component/exportMenu.d.ts +38 -0
- package/dist/esm/component/exportMenu.js +147 -0
- package/dist/esm/component/gaugeSeries.d.ts +160 -0
- package/dist/esm/component/gaugeSeries.js +447 -0
- package/dist/esm/component/heatmapSeries.d.ts +64 -0
- package/dist/esm/component/heatmapSeries.js +152 -0
- package/dist/esm/component/hoveredSeries.d.ts +27 -0
- package/dist/esm/component/hoveredSeries.js +95 -0
- package/dist/esm/component/legend.d.ts +26 -0
- package/dist/esm/component/legend.js +149 -0
- package/dist/esm/component/lineSeries.d.ts +69 -0
- package/dist/esm/component/lineSeries.js +319 -0
- package/dist/esm/component/noDataText.d.ts +9 -0
- package/dist/esm/component/noDataText.js +31 -0
- package/dist/esm/component/pieSeries.d.ts +137 -0
- package/dist/esm/component/pieSeries.js +390 -0
- package/dist/esm/component/plot.d.ts +37 -0
- package/dist/esm/component/plot.js +163 -0
- package/dist/esm/component/radarSeries.d.ts +85 -0
- package/dist/esm/component/radarSeries.js +222 -0
- package/dist/esm/component/radialAxis.d.ts +26 -0
- package/dist/esm/component/radialAxis.js +210 -0
- package/dist/esm/component/radialBarSeries.d.ts +111 -0
- package/dist/esm/component/radialBarSeries.js +349 -0
- package/dist/esm/component/radialPlot.d.ts +55 -0
- package/dist/esm/component/radialPlot.js +188 -0
- package/dist/esm/component/rangeSelection.d.ts +61 -0
- package/dist/esm/component/rangeSelection.js +150 -0
- package/dist/esm/component/resetButton.d.ts +13 -0
- package/dist/esm/component/resetButton.js +26 -0
- package/dist/esm/component/scatterSeries.d.ts +34 -0
- package/dist/esm/component/scatterSeries.js +159 -0
- package/dist/esm/component/selectedSeries.d.ts +26 -0
- package/dist/esm/component/selectedSeries.js +109 -0
- package/dist/esm/component/spectrumLegend.d.ts +15 -0
- package/dist/esm/component/spectrumLegend.js +76 -0
- package/dist/esm/component/title.d.ts +12 -0
- package/dist/esm/component/title.js +53 -0
- package/dist/esm/component/tooltip.d.ts +41 -0
- package/dist/esm/component/tooltip.js +131 -0
- package/dist/esm/component/treemapSeries.d.ts +57 -0
- package/dist/esm/component/treemapSeries.js +191 -0
- package/dist/esm/component/zeroAxis.d.ts +9 -0
- package/dist/esm/component/zeroAxis.js +49 -0
- package/dist/esm/eventEmitter.d.ts +8 -0
- package/dist/esm/eventEmitter.js +15 -0
- package/dist/esm/helpers/arrayUtil.d.ts +10 -0
- package/dist/esm/helpers/arrayUtil.js +54 -0
- package/dist/esm/helpers/axes.d.ts +67 -0
- package/dist/esm/helpers/axes.js +345 -0
- package/dist/esm/helpers/boxSeries.d.ts +5 -0
- package/dist/esm/helpers/boxSeries.js +71 -0
- package/dist/esm/helpers/calculator.d.ts +19 -0
- package/dist/esm/helpers/calculator.js +153 -0
- package/dist/esm/helpers/color.d.ts +153 -0
- package/dist/esm/helpers/color.js +218 -0
- package/dist/esm/helpers/colorSpectrum.d.ts +5 -0
- package/dist/esm/helpers/colorSpectrum.js +17 -0
- package/dist/esm/helpers/coordinate.d.ts +9 -0
- package/dist/esm/helpers/coordinate.js +51 -0
- package/dist/esm/helpers/dataLabels.d.ts +36 -0
- package/dist/esm/helpers/dataLabels.js +405 -0
- package/dist/esm/helpers/dom.d.ts +2 -0
- package/dist/esm/helpers/dom.js +8 -0
- package/dist/esm/helpers/downloader.d.ts +7 -0
- package/dist/esm/helpers/downloader.js +287 -0
- package/dist/esm/helpers/formatDate.d.ts +16 -0
- package/dist/esm/helpers/formatDate.js +140 -0
- package/dist/esm/helpers/geometric.d.ts +3 -0
- package/dist/esm/helpers/geometric.js +35 -0
- package/dist/esm/helpers/googleAnalytics.d.ts +1 -0
- package/dist/esm/helpers/googleAnalytics.js +39 -0
- package/dist/esm/helpers/htmlSanitizer.d.ts +1 -0
- package/dist/esm/helpers/htmlSanitizer.js +86 -0
- package/dist/esm/helpers/legend.d.ts +9 -0
- package/dist/esm/helpers/legend.js +47 -0
- package/dist/esm/helpers/pieSeries.d.ts +15 -0
- package/dist/esm/helpers/pieSeries.js +72 -0
- package/dist/esm/helpers/plot.d.ts +2 -0
- package/dist/esm/helpers/plot.js +4 -0
- package/dist/esm/helpers/radarSeries.d.ts +1 -0
- package/dist/esm/helpers/radarSeries.js +7 -0
- package/dist/esm/helpers/range.d.ts +6 -0
- package/dist/esm/helpers/range.js +16 -0
- package/dist/esm/helpers/responders.d.ts +37 -0
- package/dist/esm/helpers/responders.js +197 -0
- package/dist/esm/helpers/sector.d.ts +55 -0
- package/dist/esm/helpers/sector.js +117 -0
- package/dist/esm/helpers/squarifier.d.ts +8 -0
- package/dist/esm/helpers/squarifier.js +110 -0
- package/dist/esm/helpers/style.d.ts +14 -0
- package/dist/esm/helpers/style.js +48 -0
- package/dist/esm/helpers/theme.d.ts +58 -0
- package/dist/esm/helpers/theme.js +557 -0
- package/dist/esm/helpers/tooltip.d.ts +2 -0
- package/dist/esm/helpers/tooltip.js +18 -0
- package/dist/esm/helpers/tooltipTemplate.d.ts +21 -0
- package/dist/esm/helpers/tooltipTemplate.js +147 -0
- package/dist/esm/helpers/utils.d.ts +42 -0
- package/dist/esm/helpers/utils.js +268 -0
- package/dist/esm/helpers/validation.d.ts +6 -0
- package/dist/esm/helpers/validation.js +16 -0
- package/dist/esm/index.d.ts +40 -0
- package/dist/esm/index.js +75 -0
- package/dist/esm/message.d.ts +11 -0
- package/dist/esm/message.js +11 -0
- package/dist/esm/painter.d.ts +27 -0
- package/dist/esm/painter.js +88 -0
- package/dist/esm/responderDetectors.d.ts +6 -0
- package/dist/esm/responderDetectors.js +124 -0
- package/dist/esm/scale/coordinateScaleCalculator.d.ts +24 -0
- package/dist/esm/scale/coordinateScaleCalculator.js +174 -0
- package/dist/esm/scale/datetimeScaleCalculator.d.ts +20 -0
- package/dist/esm/scale/datetimeScaleCalculator.js +59 -0
- package/dist/esm/store/axes.d.ts +30 -0
- package/dist/esm/store/axes.js +282 -0
- package/dist/esm/store/category.d.ts +4 -0
- package/dist/esm/store/category.js +73 -0
- package/dist/esm/store/colorValueScale.d.ts +3 -0
- package/dist/esm/store/colorValueScale.js +56 -0
- package/dist/esm/store/dataRange.d.ts +4 -0
- package/dist/esm/store/dataRange.js +170 -0
- package/dist/esm/store/gaugeAxes.d.ts +4 -0
- package/dist/esm/store/gaugeAxes.js +175 -0
- package/dist/esm/store/heatmapAxes.d.ts +3 -0
- package/dist/esm/store/heatmapAxes.js +98 -0
- package/dist/esm/store/heatmapSeriesData.d.ts +3 -0
- package/dist/esm/store/heatmapSeriesData.js +34 -0
- package/dist/esm/store/layout.d.ts +12 -0
- package/dist/esm/store/layout.js +487 -0
- package/dist/esm/store/legend.d.ts +3 -0
- package/dist/esm/store/legend.js +435 -0
- package/dist/esm/store/nestedPieSeriesData.d.ts +3 -0
- package/dist/esm/store/nestedPieSeriesData.js +49 -0
- package/dist/esm/store/options.d.ts +3 -0
- package/dist/esm/store/options.js +62 -0
- package/dist/esm/store/plot.d.ts +3 -0
- package/dist/esm/store/plot.js +102 -0
- package/dist/esm/store/radialAxes.d.ts +8 -0
- package/dist/esm/store/radialAxes.js +199 -0
- package/dist/esm/store/reactive.d.ts +11 -0
- package/dist/esm/store/reactive.js +196 -0
- package/dist/esm/store/root.d.ts +3 -0
- package/dist/esm/store/root.js +46 -0
- package/dist/esm/store/scale.d.ts +3 -0
- package/dist/esm/store/scale.js +102 -0
- package/dist/esm/store/seriesData.d.ts +3 -0
- package/dist/esm/store/seriesData.js +299 -0
- package/dist/esm/store/stackSeriesData.d.ts +8 -0
- package/dist/esm/store/stackSeriesData.js +192 -0
- package/dist/esm/store/store.d.ts +20 -0
- package/dist/esm/store/store.js +112 -0
- package/dist/esm/store/theme.d.ts +3 -0
- package/dist/esm/store/theme.js +139 -0
- package/dist/esm/store/treemapSeriesData.d.ts +4 -0
- package/dist/esm/store/treemapSeriesData.js +93 -0
- package/dist/td-chart.css +127 -0
- package/dist/td-chart.js +41463 -0
- package/dist/td-chart.min.css +6 -0
- package/dist/td-chart.min.js +9 -0
- package/package.json +112 -0
- package/types/brushes.d.ts +30 -0
- package/types/charts.d.ts +152 -0
- package/types/components/axis.d.ts +71 -0
- package/types/components/circleLegend.d.ts +9 -0
- package/types/components/dataLabels.d.ts +119 -0
- package/types/components/exportMenu.d.ts +14 -0
- package/types/components/legend.d.ts +27 -0
- package/types/components/plot.d.ts +8 -0
- package/types/components/radialAxis.d.ts +22 -0
- package/types/components/radialPlot.d.ts +11 -0
- package/types/components/rangeSelection.d.ts +3 -0
- package/types/components/resetButton.d.ts +13 -0
- package/types/components/series.d.ts +386 -0
- package/types/components/spectrumLegend.d.ts +25 -0
- package/types/components/tooltip.d.ts +58 -0
- package/types/components/zoom.d.ts +3 -0
- package/types/eventEmitter.d.ts +12 -0
- package/types/index.d.ts +615 -0
- package/types/options.d.ts +833 -0
- package/types/resizeObserver.d.ts +54 -0
- package/types/store/store.d.ts +564 -0
- package/types/theme.d.ts +670 -0
package/package.json
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@techie_doubts/tui.chart.2026",
|
|
3
|
+
"version": "4.6.1",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
6
|
+
},
|
|
7
|
+
"description": "TOAST UI Application: Chart",
|
|
8
|
+
"main": "dist/td-chart.js",
|
|
9
|
+
"types": "types/index.d.ts",
|
|
10
|
+
"sideEffects": [
|
|
11
|
+
"*.css"
|
|
12
|
+
],
|
|
13
|
+
"module": "dist/esm/",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"import": "./dist/esm/index.js",
|
|
17
|
+
"require": "./dist/td-chart.js"
|
|
18
|
+
},
|
|
19
|
+
"./line": {
|
|
20
|
+
"import": "./dist/esm/charts/lineChart.js"
|
|
21
|
+
},
|
|
22
|
+
"./area": {
|
|
23
|
+
"import": "./dist/esm/charts/areaChart.js"
|
|
24
|
+
},
|
|
25
|
+
"./lineArea": {
|
|
26
|
+
"import": "./dist/esm/charts/lineAreaChart.js"
|
|
27
|
+
},
|
|
28
|
+
"./bar": {
|
|
29
|
+
"import": "./dist/esm/charts/barChart.js"
|
|
30
|
+
},
|
|
31
|
+
"./column": {
|
|
32
|
+
"import": "./dist/esm/charts/columnChart.js"
|
|
33
|
+
},
|
|
34
|
+
"./columnLine": {
|
|
35
|
+
"import": "./dist/esm/charts/columnLineChart.js"
|
|
36
|
+
},
|
|
37
|
+
"./bullet": {
|
|
38
|
+
"import": "./dist/esm/charts/bulletChart.js"
|
|
39
|
+
},
|
|
40
|
+
"./boxPlot": {
|
|
41
|
+
"import": "./dist/esm/charts/boxPlotChart.js"
|
|
42
|
+
},
|
|
43
|
+
"./treemap": {
|
|
44
|
+
"import": "./dist/esm/charts/treemapChart.js"
|
|
45
|
+
},
|
|
46
|
+
"./heatmap": {
|
|
47
|
+
"import": "./dist/esm/charts/heatmapChart.js"
|
|
48
|
+
},
|
|
49
|
+
"./scatter": {
|
|
50
|
+
"import": "./dist/esm/charts/scatterChart.js"
|
|
51
|
+
},
|
|
52
|
+
"./lineScatter": {
|
|
53
|
+
"import": "./dist/esm/charts/lineScatterChart.js"
|
|
54
|
+
},
|
|
55
|
+
"./bubble": {
|
|
56
|
+
"import": "./dist/esm/charts/bubbleChart.js"
|
|
57
|
+
},
|
|
58
|
+
"./pie": {
|
|
59
|
+
"import": "./dist/esm/charts/pieChart.js"
|
|
60
|
+
},
|
|
61
|
+
"./nestedPie": {
|
|
62
|
+
"import": "./dist/esm/charts/nestedPieChart.js"
|
|
63
|
+
},
|
|
64
|
+
"./radar": {
|
|
65
|
+
"import": "./dist/esm/charts/radarChart.js"
|
|
66
|
+
},
|
|
67
|
+
"./radialBar": {
|
|
68
|
+
"import": "./dist/esm/charts/radialBarChart.js"
|
|
69
|
+
},
|
|
70
|
+
"./gauge": {
|
|
71
|
+
"import": "./dist/esm/charts/gaugeChart.js"
|
|
72
|
+
},
|
|
73
|
+
"./td-chart.css": "./dist/td-chart.css",
|
|
74
|
+
"./td-chart.min.css": "./dist/td-chart.min.css",
|
|
75
|
+
"./": "./"
|
|
76
|
+
},
|
|
77
|
+
"scripts": {
|
|
78
|
+
"check-types": "tsc --project ./tsconfig.json",
|
|
79
|
+
"validate": "npm run check-types && npm run lint",
|
|
80
|
+
"lint": "eslint .",
|
|
81
|
+
"test": "jest --detectOpenHandles --forceExit",
|
|
82
|
+
"test:watch": "jest --watch",
|
|
83
|
+
"test:ci": "npm run validate && jest",
|
|
84
|
+
"build": "npm run build:clean && npm run build:prod && npm run build:minify && npm run build:esm",
|
|
85
|
+
"build:clean": "rm -rf ./dist",
|
|
86
|
+
"build:prod": "webpack --mode=production",
|
|
87
|
+
"build:minify": "webpack --mode=production --env minify",
|
|
88
|
+
"build:esm": "ttsc -p tsconfig.esm.json",
|
|
89
|
+
"build:storybook": "build-storybook",
|
|
90
|
+
"serve": "webpack serve --mode=development",
|
|
91
|
+
"storybook": "start-storybook -p 6006",
|
|
92
|
+
"ts2js": "tsc --outDir tmpdoc --sourceMap false --target ES2015 --noEmit false",
|
|
93
|
+
"doc:dev": "npm run build:prod && npm run ts2js && tuidoc --serv",
|
|
94
|
+
"doc": "npm run ts2js && tuidoc",
|
|
95
|
+
"publish:cdn": "node scripts/publishToCDN.js"
|
|
96
|
+
},
|
|
97
|
+
"repository": {
|
|
98
|
+
"type": "git",
|
|
99
|
+
"url": "git+https://github.com/nhn/tui.chart.git"
|
|
100
|
+
},
|
|
101
|
+
"author": "NHN Cloud. FE Development Lab <dl_javascript@nhn.com>",
|
|
102
|
+
"license": "MIT",
|
|
103
|
+
"bugs": {
|
|
104
|
+
"url": "https://github.com/nhn/tui.chart/issues"
|
|
105
|
+
},
|
|
106
|
+
"files": [
|
|
107
|
+
"dist",
|
|
108
|
+
"types"
|
|
109
|
+
],
|
|
110
|
+
"homepage": "https://ui.toast.com",
|
|
111
|
+
"devDependencies": {}
|
|
112
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export type SectorStyle = {
|
|
2
|
+
lineWidth?: number;
|
|
3
|
+
strokeStyle?: string;
|
|
4
|
+
shadowColor?: string;
|
|
5
|
+
shadowBlur?: number;
|
|
6
|
+
shadowOffsetX?: number;
|
|
7
|
+
shadowOffsetY?: number;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export type SectorStyleName = 'default' | 'hover' | 'nested';
|
|
11
|
+
export type CircleStyleName = 'default' | 'plot';
|
|
12
|
+
export type RectStyleName = 'shadow';
|
|
13
|
+
export type LabelStyleName = 'default' | 'title' | 'axisTitle' | 'rectLabel';
|
|
14
|
+
export type StrokeLabelStyleName = 'none' | 'stroke';
|
|
15
|
+
|
|
16
|
+
export interface LabelStyle {
|
|
17
|
+
font?: string;
|
|
18
|
+
fillStyle?: string;
|
|
19
|
+
textAlign?: CanvasTextAlign;
|
|
20
|
+
textBaseline?: CanvasTextBaseline;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export type StrokeLabelStyle = {
|
|
24
|
+
lineWidth?: number;
|
|
25
|
+
strokeStyle?: string;
|
|
26
|
+
shadowColor?: string;
|
|
27
|
+
shadowBlur?: number;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export type PathRectStyleName = 'shadow';
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AreaChartOptions,
|
|
3
|
+
AreaSeriesData,
|
|
4
|
+
BarChartOptions,
|
|
5
|
+
BaseOptions,
|
|
6
|
+
BoxPlotChartOptions,
|
|
7
|
+
BoxPlotSeriesData,
|
|
8
|
+
BoxSeriesData,
|
|
9
|
+
BubbleSeriesData,
|
|
10
|
+
BulletChartOptions,
|
|
11
|
+
BulletSeriesData,
|
|
12
|
+
ColumnChartOptions,
|
|
13
|
+
ColumnLineChartOptions,
|
|
14
|
+
ColumnLineData,
|
|
15
|
+
GaugeChartOptions,
|
|
16
|
+
GaugeSeriesData,
|
|
17
|
+
HeatmapChartOptions,
|
|
18
|
+
HeatmapSeriesData,
|
|
19
|
+
LineAreaChartOptions,
|
|
20
|
+
LineAreaData,
|
|
21
|
+
LineChartOptions,
|
|
22
|
+
LineScatterChartOptions,
|
|
23
|
+
LineScatterData,
|
|
24
|
+
LineSeriesData,
|
|
25
|
+
NestedPieChartOptions,
|
|
26
|
+
NestedPieSeriesData,
|
|
27
|
+
PieChartOptions,
|
|
28
|
+
PieSeriesData,
|
|
29
|
+
RadarChartOptions,
|
|
30
|
+
RadarSeriesData,
|
|
31
|
+
RadialBarChartOptions,
|
|
32
|
+
RadialBarSeriesData,
|
|
33
|
+
ScatterChartOptions,
|
|
34
|
+
ScatterSeriesData,
|
|
35
|
+
TreemapChartOptions,
|
|
36
|
+
TreemapSeriesData,
|
|
37
|
+
} from './options';
|
|
38
|
+
|
|
39
|
+
export type AddSeriesDataInfo = { chartType?: string; category?: string };
|
|
40
|
+
export type SelectSeriesInfo = {
|
|
41
|
+
seriesIndex?: number;
|
|
42
|
+
index?: number;
|
|
43
|
+
name?: string;
|
|
44
|
+
chartType?: 'line' | 'area' | 'column' | 'scatter';
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export interface AreaChartProps {
|
|
48
|
+
el: HTMLElement;
|
|
49
|
+
options: AreaChartOptions;
|
|
50
|
+
data: AreaSeriesData;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface BarChartProps {
|
|
54
|
+
el: HTMLElement;
|
|
55
|
+
options: BarChartOptions;
|
|
56
|
+
data: BoxSeriesData;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface BoxPlotChartProps {
|
|
60
|
+
el: HTMLElement;
|
|
61
|
+
options: BoxPlotChartOptions;
|
|
62
|
+
data: BoxPlotSeriesData;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface BubbleChartProps {
|
|
66
|
+
el: HTMLElement;
|
|
67
|
+
options: BaseOptions;
|
|
68
|
+
data: BubbleSeriesData;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export interface BulletChartProps {
|
|
72
|
+
el: HTMLElement;
|
|
73
|
+
options: BulletChartOptions;
|
|
74
|
+
data: BulletSeriesData;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export interface ColumnChartProps {
|
|
78
|
+
el: HTMLElement;
|
|
79
|
+
options: ColumnChartOptions;
|
|
80
|
+
data: BoxSeriesData;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export interface ColumnLineChartProps {
|
|
84
|
+
el: HTMLElement;
|
|
85
|
+
options: ColumnLineChartOptions;
|
|
86
|
+
data: ColumnLineData;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export interface HeatmapChartProps {
|
|
90
|
+
el: HTMLElement;
|
|
91
|
+
options: HeatmapChartOptions;
|
|
92
|
+
data: HeatmapSeriesData;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export interface LineAreaChartProps {
|
|
96
|
+
el: HTMLElement;
|
|
97
|
+
options: LineAreaChartOptions;
|
|
98
|
+
data: LineAreaData;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export interface LineChartProps {
|
|
102
|
+
el: HTMLElement;
|
|
103
|
+
options: LineChartOptions;
|
|
104
|
+
data: LineSeriesData;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export interface LineScatterChartProps {
|
|
108
|
+
el: HTMLElement;
|
|
109
|
+
options: LineScatterChartOptions;
|
|
110
|
+
data: LineScatterData;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export interface NestedPieChartProps {
|
|
114
|
+
el: HTMLElement;
|
|
115
|
+
options: NestedPieChartOptions;
|
|
116
|
+
data: NestedPieSeriesData;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export interface PieChartProps {
|
|
120
|
+
el: HTMLElement;
|
|
121
|
+
options: PieChartOptions;
|
|
122
|
+
data: PieSeriesData;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export interface RadarChartProps {
|
|
126
|
+
el: HTMLElement;
|
|
127
|
+
options: RadarChartOptions;
|
|
128
|
+
data: RadarSeriesData;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export interface RadialBarChartProps {
|
|
132
|
+
el: HTMLElement;
|
|
133
|
+
options: RadialBarChartOptions;
|
|
134
|
+
data: RadialBarSeriesData;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export interface ScatterChartProps {
|
|
138
|
+
el: HTMLElement;
|
|
139
|
+
options: ScatterChartOptions;
|
|
140
|
+
data: ScatterSeriesData;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export interface TreemapChartProps {
|
|
144
|
+
el: HTMLElement;
|
|
145
|
+
options: TreemapChartOptions;
|
|
146
|
+
data: TreemapSeriesData;
|
|
147
|
+
}
|
|
148
|
+
export interface GaugeChartProps {
|
|
149
|
+
el: HTMLElement;
|
|
150
|
+
options: GaugeChartOptions;
|
|
151
|
+
data: GaugeSeriesData;
|
|
152
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Point, Rect } from '../options';
|
|
2
|
+
import { Nullable, StyleProp, RectStyle } from './series';
|
|
3
|
+
import {
|
|
4
|
+
StrokeLabelStyleName,
|
|
5
|
+
StrokeLabelStyle,
|
|
6
|
+
LabelStyleName,
|
|
7
|
+
LabelStyle,
|
|
8
|
+
PathRectStyleName,
|
|
9
|
+
} from '../brushes';
|
|
10
|
+
|
|
11
|
+
export type LabelModel = {
|
|
12
|
+
type: 'label';
|
|
13
|
+
style?: StyleProp<LabelStyle, LabelStyleName>;
|
|
14
|
+
stroke?: StyleProp<StrokeLabelStyle, StrokeLabelStyleName>;
|
|
15
|
+
text: string;
|
|
16
|
+
opacity?: number;
|
|
17
|
+
radian?: number;
|
|
18
|
+
rotationPosition?: Point;
|
|
19
|
+
} & Point;
|
|
20
|
+
|
|
21
|
+
export type TickModel = {
|
|
22
|
+
type: 'tick';
|
|
23
|
+
isYAxis: boolean;
|
|
24
|
+
tickSize: number;
|
|
25
|
+
strokeStyle: string;
|
|
26
|
+
lineWidth: number;
|
|
27
|
+
} & Point;
|
|
28
|
+
|
|
29
|
+
export type LineModel = {
|
|
30
|
+
type: 'line';
|
|
31
|
+
x2: number;
|
|
32
|
+
y2: number;
|
|
33
|
+
strokeStyle?: string;
|
|
34
|
+
lineWidth?: number;
|
|
35
|
+
dashSegments?: number[];
|
|
36
|
+
name?: string;
|
|
37
|
+
} & Point;
|
|
38
|
+
|
|
39
|
+
export type AxisModels = {
|
|
40
|
+
label: LabelModel[];
|
|
41
|
+
tick: TickModel[];
|
|
42
|
+
axisLine: LineModel[];
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export type ArrowDirection = 'top' | 'right' | 'bottom' | 'left';
|
|
46
|
+
type Arrow = {
|
|
47
|
+
direction: ArrowDirection;
|
|
48
|
+
points: Point[];
|
|
49
|
+
} & Point;
|
|
50
|
+
|
|
51
|
+
export type BubbleInfo = Rect & {
|
|
52
|
+
fill: string;
|
|
53
|
+
lineWidth?: number;
|
|
54
|
+
strokeStyle?: string;
|
|
55
|
+
radius?: number;
|
|
56
|
+
style?: Nullable<StyleProp<RectStyle, PathRectStyleName>>;
|
|
57
|
+
radian?: number;
|
|
58
|
+
direction?: ArrowDirection;
|
|
59
|
+
} & Nullable<Partial<Arrow>>;
|
|
60
|
+
|
|
61
|
+
export type BubbleLabelModel = {
|
|
62
|
+
type: 'bubbleLabel';
|
|
63
|
+
radian?: number;
|
|
64
|
+
rotationPosition?: Point;
|
|
65
|
+
bubble: BubbleInfo;
|
|
66
|
+
label: Point & {
|
|
67
|
+
text?: string;
|
|
68
|
+
strokeStyle?: string;
|
|
69
|
+
style?: StyleProp<LabelStyle, LabelStyleName>;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Point,
|
|
3
|
+
DataLabelOptions,
|
|
4
|
+
DataLabelPieSeriesName,
|
|
5
|
+
StackTotalDataLabel,
|
|
6
|
+
BoxSeriesDataType,
|
|
7
|
+
} from '../options';
|
|
8
|
+
import {
|
|
9
|
+
PointModel,
|
|
10
|
+
SectorModel,
|
|
11
|
+
RectModel,
|
|
12
|
+
Nullable,
|
|
13
|
+
PieSectorModel,
|
|
14
|
+
RadialBarSectorModel,
|
|
15
|
+
} from './series';
|
|
16
|
+
import { LineModel } from './axis';
|
|
17
|
+
import { PieDataLabelTheme, CalloutTheme, BoxDataLabel, BubbleDataLabel } from '../theme';
|
|
18
|
+
|
|
19
|
+
export type DataLabelSeriesType =
|
|
20
|
+
| 'area'
|
|
21
|
+
| 'line'
|
|
22
|
+
| 'bar'
|
|
23
|
+
| 'column'
|
|
24
|
+
| 'bullet'
|
|
25
|
+
| 'pie'
|
|
26
|
+
| 'radialBar';
|
|
27
|
+
|
|
28
|
+
export type DataLabelType =
|
|
29
|
+
| 'stackTotal'
|
|
30
|
+
| 'rect'
|
|
31
|
+
| 'point'
|
|
32
|
+
| 'sector'
|
|
33
|
+
| 'line'
|
|
34
|
+
| 'pieSeriesName'
|
|
35
|
+
| 'treemapSeriesName';
|
|
36
|
+
|
|
37
|
+
type DataLabelData = {
|
|
38
|
+
data: DataLabel[];
|
|
39
|
+
options: DataLabelOptions;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export type DataLabelsMap = {
|
|
43
|
+
[key in DataLabelSeriesType]?: DataLabelData;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export type DataLabel = {
|
|
47
|
+
type: DataLabelType;
|
|
48
|
+
text: string;
|
|
49
|
+
textAlign: CanvasTextAlign;
|
|
50
|
+
textBaseline: CanvasTextBaseline;
|
|
51
|
+
callout?: Nullable<Callout>;
|
|
52
|
+
name?: string;
|
|
53
|
+
seriesColor?: string;
|
|
54
|
+
theme: BubbleDataLabel | BoxDataLabel;
|
|
55
|
+
radian?: number;
|
|
56
|
+
} & Point;
|
|
57
|
+
|
|
58
|
+
export type DataLabelOption = Required<
|
|
59
|
+
Pick<DataLabelOptions, 'anchor' | 'offsetX' | 'offsetY' | 'formatter'>
|
|
60
|
+
> & {
|
|
61
|
+
stackTotal?: Required<StackTotalDataLabel>;
|
|
62
|
+
pieSeriesName?: DataLabelPieSeriesName;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export type DataLabelModel = {
|
|
66
|
+
type: 'dataLabel';
|
|
67
|
+
dataLabelType: DataLabelType;
|
|
68
|
+
opacity?: number;
|
|
69
|
+
radian?: number;
|
|
70
|
+
} & Omit<DataLabel, 'type'>;
|
|
71
|
+
|
|
72
|
+
export type DataLabelModels = { series: DataLabelModel[]; total: DataLabelModel[] };
|
|
73
|
+
|
|
74
|
+
export type PointDataLabel = PointModel & {
|
|
75
|
+
type: 'point';
|
|
76
|
+
theme: BubbleDataLabel | BoxDataLabel;
|
|
77
|
+
};
|
|
78
|
+
export type RadialDataLabel = PieSectorModel & {
|
|
79
|
+
theme: PieDataLabelTheme;
|
|
80
|
+
};
|
|
81
|
+
export type RadialBarDataLabel = RadialBarSectorModel & {
|
|
82
|
+
theme: BoxDataLabel;
|
|
83
|
+
};
|
|
84
|
+
export type RectDirection = 'top' | 'bottom' | 'left' | 'right';
|
|
85
|
+
|
|
86
|
+
export type RectDataLabel = Omit<RectModel, 'type' | 'color' | 'value'> & {
|
|
87
|
+
value?: BoxSeriesDataType | string;
|
|
88
|
+
type: 'rect' | 'stackTotal' | 'treemapSeriesName';
|
|
89
|
+
direction: RectDirection;
|
|
90
|
+
plot: {
|
|
91
|
+
x: number;
|
|
92
|
+
y: number;
|
|
93
|
+
size: number;
|
|
94
|
+
};
|
|
95
|
+
modelType?: string;
|
|
96
|
+
color?: string;
|
|
97
|
+
theme: BubbleDataLabel | BoxDataLabel;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
export type LineDataLabel = LineModel & {
|
|
101
|
+
value: number;
|
|
102
|
+
textAlign?: CanvasTextAlign;
|
|
103
|
+
textBaseline?: CanvasTextBaseline;
|
|
104
|
+
theme: BubbleDataLabel;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
export type Callout = Point & { x2: number; y2: number; theme: CalloutTheme };
|
|
108
|
+
export type SeriesDataLabelType =
|
|
109
|
+
| PointDataLabel
|
|
110
|
+
| RadialDataLabel
|
|
111
|
+
| RectDataLabel
|
|
112
|
+
| LineDataLabel
|
|
113
|
+
| RadialBarDataLabel;
|
|
114
|
+
|
|
115
|
+
export type SeriesDataLabels = Array<SeriesDataLabelType>;
|
|
116
|
+
|
|
117
|
+
type RadialAnchor = PieDataLabelAnchor | RadialBarAnchor;
|
|
118
|
+
export type PieDataLabelAnchor = 'center' | 'outer';
|
|
119
|
+
export type RadialBarAnchor = 'start' | 'center' | 'end';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Point } from '../options';
|
|
2
|
+
import { ExportMenuButtonTheme } from '../theme';
|
|
3
|
+
|
|
4
|
+
export type ExportMenuButtonModel = {
|
|
5
|
+
type: 'exportMenuButton';
|
|
6
|
+
opened: boolean;
|
|
7
|
+
theme: Required<ExportMenuButtonTheme>;
|
|
8
|
+
} & Point;
|
|
9
|
+
|
|
10
|
+
export type ExportMenuModel = {
|
|
11
|
+
type: 'exportMenu';
|
|
12
|
+
} & Point;
|
|
13
|
+
|
|
14
|
+
export type ExportMenuModels = { exportMenuButton: ExportMenuButtonModel[] };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Align, Point } from '../options';
|
|
2
|
+
import { ChartType, LegendIconType } from '../store/store';
|
|
3
|
+
import { FontTheme } from '../theme';
|
|
4
|
+
|
|
5
|
+
export type CheckedLegendType = Pick<LegendData, 'chartType' | 'label' | 'checked'>[];
|
|
6
|
+
|
|
7
|
+
type LegendData = {
|
|
8
|
+
color: string;
|
|
9
|
+
label: string;
|
|
10
|
+
viewLabel: string;
|
|
11
|
+
checked: boolean;
|
|
12
|
+
active: boolean;
|
|
13
|
+
chartType: ChartType;
|
|
14
|
+
iconType: LegendIconType;
|
|
15
|
+
useScatterChartIcon?: boolean;
|
|
16
|
+
rowIndex: number;
|
|
17
|
+
columnIndex: number;
|
|
18
|
+
colorIndex?: number;
|
|
19
|
+
colorByCategories?: boolean;
|
|
20
|
+
} & Point;
|
|
21
|
+
|
|
22
|
+
export type LegendModel = {
|
|
23
|
+
type: 'legend';
|
|
24
|
+
align: Align;
|
|
25
|
+
showCheckbox: boolean;
|
|
26
|
+
data: LegendData[];
|
|
27
|
+
} & FontTheme;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { RectModel, CircleModel } from './series';
|
|
2
|
+
import { BubbleLabelModel, LabelModel, LineModel } from './axis';
|
|
3
|
+
|
|
4
|
+
type RadialAxisModels = {
|
|
5
|
+
dot: RectModel[];
|
|
6
|
+
verticalAxisLabel: BubbleLabelModel[];
|
|
7
|
+
circularAxisLabel: LabelModel[];
|
|
8
|
+
line: ArcModel[] | CircleModel[];
|
|
9
|
+
tick: LineModel[];
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
type ArcModel = {
|
|
13
|
+
type: 'arc';
|
|
14
|
+
x: number;
|
|
15
|
+
y: number;
|
|
16
|
+
angle: { start: number; end: number };
|
|
17
|
+
borderWidth: number;
|
|
18
|
+
borderColor: string;
|
|
19
|
+
drawingStartAngle: number;
|
|
20
|
+
radius: number;
|
|
21
|
+
clockwise: boolean;
|
|
22
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PolygonModel, CircleModel, SectorModel } from './series';
|
|
2
|
+
import { LineModel } from './axis';
|
|
3
|
+
import { ArcModel } from './radialAxis';
|
|
4
|
+
|
|
5
|
+
export type RadialPlotModelType = PolygonModel[] | CircleModel[] | ArcModel[];
|
|
6
|
+
|
|
7
|
+
export type RadialPlotModels = {
|
|
8
|
+
plot: RadialPlotModelType;
|
|
9
|
+
line: LineModel[];
|
|
10
|
+
band: SectorModel[];
|
|
11
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Point } from '../options';
|
|
2
|
+
|
|
3
|
+
export type ResetButtonModel = {
|
|
4
|
+
type: 'resetButton';
|
|
5
|
+
} & Point;
|
|
6
|
+
|
|
7
|
+
export type ResetButtonModels = ResetButtonModel[];
|
|
8
|
+
|
|
9
|
+
export type BackButtonModel = {
|
|
10
|
+
type: 'backButton';
|
|
11
|
+
} & Point;
|
|
12
|
+
|
|
13
|
+
export type BackButtonModels = BackButtonModel[];
|