@gravity-ui/chartkit 5.17.0 → 5.18.0
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/build/components/ChartKit.css +0 -1
- package/build/components/SplitPane/Pane.d.ts +14 -0
- package/build/components/SplitPane/Pane.js +26 -0
- package/build/components/SplitPane/Resizer.d.ts +18 -0
- package/build/components/SplitPane/Resizer.js +26 -0
- package/build/components/SplitPane/SplitPane.d.ts +59 -0
- package/build/components/SplitPane/SplitPane.js +235 -0
- package/build/{plugins/highcharts/renderer/components/StyledSplitPane → components/SplitPane}/StyledSplitPane.css +0 -1
- package/build/{plugins/highcharts/renderer/components/StyledSplitPane → components/SplitPane}/StyledSplitPane.d.ts +1 -1
- package/build/{plugins/highcharts/renderer/components/StyledSplitPane → components/SplitPane}/StyledSplitPane.js +3 -3
- package/build/components/SplitPane/constants.d.ts +4 -0
- package/build/components/SplitPane/constants.js +4 -0
- package/build/components/SplitPane/index.d.ts +8 -0
- package/build/components/SplitPane/index.js +18 -0
- package/build/components/SplitPane/types.d.ts +2 -0
- package/build/constants/index.d.ts +1 -0
- package/build/constants/index.js +1 -0
- package/build/constants/misc.d.ts +10 -0
- package/build/constants/misc.js +19 -0
- package/build/hooks/index.d.ts +1 -0
- package/build/hooks/index.js +1 -0
- package/build/hooks/misc.d.ts +1 -0
- package/build/hooks/misc.js +8 -0
- package/build/plugins/d3/index.d.ts +1 -1
- package/build/plugins/d3/index.js +2 -1
- package/build/plugins/d3/renderer/D3Widget.d.ts +5 -1
- package/build/plugins/d3/renderer/D3Widget.js +31 -66
- package/build/plugins/d3/renderer/withSplitPane/TooltipContent.d.ts +8 -0
- package/build/plugins/d3/renderer/withSplitPane/TooltipContent.js +12 -0
- package/build/plugins/d3/renderer/withSplitPane/useWithSplitPaneState.d.ts +19 -0
- package/build/plugins/d3/renderer/withSplitPane/useWithSplitPaneState.js +46 -0
- package/build/plugins/d3/renderer/withSplitPane/withSplitPane.d.ts +4 -0
- package/build/plugins/d3/renderer/withSplitPane/withSplitPane.js +100 -0
- package/build/plugins/d3/types.d.ts +2 -2
- package/build/plugins/highcharts/renderer/HighchartsWidget.d.ts +2 -2
- package/build/plugins/highcharts/renderer/components/HighchartsComponent.js +1 -1
- package/build/plugins/highcharts/renderer/components/withSplitPane/withSplitPane.js +1 -1
- package/build/types/index.js +1 -0
- package/build/types/widget-data/pie.d.ts +1 -1
- package/build/types/widget.d.ts +6 -3
- package/build/utils/index.d.ts +1 -0
- package/build/utils/index.js +1 -0
- package/build/utils/misc.d.ts +2 -0
- package/build/utils/misc.js +7 -0
- package/package.json +4 -4
- package/build/plugins/d3/examples/ExampleWrapper.d.ts +0 -7
- package/build/plugins/d3/examples/ExampleWrapper.js +0 -5
- package/build/plugins/d3/examples/area/Basic.d.ts +0 -2
- package/build/plugins/d3/examples/area/Basic.js +0 -34
- package/build/plugins/d3/examples/area/NegativeValues.d.ts +0 -2
- package/build/plugins/d3/examples/area/NegativeValues.js +0 -24
- package/build/plugins/d3/examples/area/PercentStacking.d.ts +0 -2
- package/build/plugins/d3/examples/area/PercentStacking.js +0 -47
- package/build/plugins/d3/examples/area/StackedArea.d.ts +0 -2
- package/build/plugins/d3/examples/area/StackedArea.js +0 -47
- package/build/plugins/d3/examples/area/TwoYAxis.d.ts +0 -2
- package/build/plugins/d3/examples/area/TwoYAxis.js +0 -58
- package/build/plugins/d3/examples/bar-x/Basic.d.ts +0 -4
- package/build/plugins/d3/examples/bar-x/Basic.js +0 -88
- package/build/plugins/d3/examples/bar-x/DataLabels.d.ts +0 -2
- package/build/plugins/d3/examples/bar-x/DataLabels.js +0 -48
- package/build/plugins/d3/examples/bar-x/GroupedColumns.d.ts +0 -2
- package/build/plugins/d3/examples/bar-x/GroupedColumns.js +0 -48
- package/build/plugins/d3/examples/bar-x/NegativeValues.d.ts +0 -2
- package/build/plugins/d3/examples/bar-x/NegativeValues.js +0 -41
- package/build/plugins/d3/examples/bar-x/PercentStack.d.ts +0 -2
- package/build/plugins/d3/examples/bar-x/PercentStack.js +0 -47
- package/build/plugins/d3/examples/bar-x/StackedColumns.d.ts +0 -2
- package/build/plugins/d3/examples/bar-x/StackedColumns.js +0 -47
- package/build/plugins/d3/examples/bar-x/TwoYAxis.d.ts +0 -2
- package/build/plugins/d3/examples/bar-x/TwoYAxis.js +0 -58
- package/build/plugins/d3/examples/bar-y/Basic.d.ts +0 -2
- package/build/plugins/d3/examples/bar-y/Basic.js +0 -45
- package/build/plugins/d3/examples/bar-y/GroupedColumns.d.ts +0 -2
- package/build/plugins/d3/examples/bar-y/GroupedColumns.js +0 -50
- package/build/plugins/d3/examples/bar-y/NegativeValues.d.ts +0 -2
- package/build/plugins/d3/examples/bar-y/NegativeValues.js +0 -40
- package/build/plugins/d3/examples/bar-y/PercentStacking.d.ts +0 -2
- package/build/plugins/d3/examples/bar-y/PercentStacking.js +0 -49
- package/build/plugins/d3/examples/bar-y/StackedColumns.d.ts +0 -2
- package/build/plugins/d3/examples/bar-y/StackedColumns.js +0 -49
- package/build/plugins/d3/examples/combined/LineAndBarX.d.ts +0 -2
- package/build/plugins/d3/examples/combined/LineAndBarX.js +0 -63
- package/build/plugins/d3/examples/line/Basic.d.ts +0 -2
- package/build/plugins/d3/examples/line/Basic.js +0 -68
- package/build/plugins/d3/examples/line/DataLabels.d.ts +0 -2
- package/build/plugins/d3/examples/line/DataLabels.js +0 -91
- package/build/plugins/d3/examples/line/LineWithMarkers.d.ts +0 -2
- package/build/plugins/d3/examples/line/LineWithMarkers.js +0 -69
- package/build/plugins/d3/examples/line/LogarithmicAxis.d.ts +0 -2
- package/build/plugins/d3/examples/line/LogarithmicAxis.js +0 -38
- package/build/plugins/d3/examples/line/Shapes.d.ts +0 -2
- package/build/plugins/d3/examples/line/Shapes.js +0 -93
- package/build/plugins/d3/examples/line/TwoYAxis.d.ts +0 -2
- package/build/plugins/d3/examples/line/TwoYAxis.js +0 -58
- package/build/plugins/d3/examples/mars-weather.d.ts +0 -13
- package/build/plugins/d3/examples/mars-weather.js +0 -1203
- package/build/plugins/d3/examples/nintendoGames.d.ts +0 -92
- package/build/plugins/d3/examples/nintendoGames.js +0 -12264
- package/build/plugins/d3/examples/pie/Basic.d.ts +0 -2
- package/build/plugins/d3/examples/pie/Basic.js +0 -32
- package/build/plugins/d3/examples/pie/Donut.d.ts +0 -2
- package/build/plugins/d3/examples/pie/Donut.js +0 -33
- package/build/plugins/d3/examples/pie/DonutWithTotals.d.ts +0 -2
- package/build/plugins/d3/examples/pie/DonutWithTotals.js +0 -36
- package/build/plugins/d3/examples/scatter/Basic.d.ts +0 -2
- package/build/plugins/d3/examples/scatter/Basic.js +0 -47
- package/build/plugins/d3/examples/scatter/TwoYAxis.d.ts +0 -2
- package/build/plugins/d3/examples/scatter/TwoYAxis.js +0 -58
- package/build/plugins/d3/renderer/components/AxisX.d.ts +0 -19
- package/build/plugins/d3/renderer/components/AxisX.js +0 -108
- package/build/plugins/d3/renderer/components/AxisY.d.ts +0 -11
- package/build/plugins/d3/renderer/components/AxisY.js +0 -199
- package/build/plugins/d3/renderer/components/Chart.d.ts +0 -10
- package/build/plugins/d3/renderer/components/Chart.js +0 -145
- package/build/plugins/d3/renderer/components/Legend.d.ts +0 -12
- package/build/plugins/d3/renderer/components/Legend.js +0 -278
- package/build/plugins/d3/renderer/components/PlotTitle.d.ts +0 -7
- package/build/plugins/d3/renderer/components/PlotTitle.js +0 -12
- package/build/plugins/d3/renderer/components/Title.d.ts +0 -7
- package/build/plugins/d3/renderer/components/Title.js +0 -8
- package/build/plugins/d3/renderer/components/Tooltip/DefaultContent.d.ts +0 -10
- package/build/plugins/d3/renderer/components/Tooltip/DefaultContent.js +0 -102
- package/build/plugins/d3/renderer/components/Tooltip/index.d.ts +0 -12
- package/build/plugins/d3/renderer/components/Tooltip/index.js +0 -28
- package/build/plugins/d3/renderer/components/index.d.ts +0 -1
- package/build/plugins/d3/renderer/components/index.js +0 -1
- package/build/plugins/d3/renderer/components/styles.css +0 -140
- package/build/plugins/d3/renderer/constants/defaults/axis.d.ts +0 -14
- package/build/plugins/d3/renderer/constants/defaults/axis.js +0 -18
- package/build/plugins/d3/renderer/constants/defaults/index.d.ts +0 -3
- package/build/plugins/d3/renderer/constants/defaults/index.js +0 -3
- package/build/plugins/d3/renderer/constants/defaults/legend.d.ts +0 -12
- package/build/plugins/d3/renderer/constants/defaults/legend.js +0 -12
- package/build/plugins/d3/renderer/constants/defaults/series-options.d.ts +0 -24
- package/build/plugins/d3/renderer/constants/defaults/series-options.js +0 -106
- package/build/plugins/d3/renderer/constants/index.d.ts +0 -3
- package/build/plugins/d3/renderer/constants/index.js +0 -24
- package/build/plugins/d3/renderer/d3-dispatcher.d.ts +0 -1
- package/build/plugins/d3/renderer/d3-dispatcher.js +0 -4
- package/build/plugins/d3/renderer/hooks/index.d.ts +0 -10
- package/build/plugins/d3/renderer/hooks/index.js +0 -10
- package/build/plugins/d3/renderer/hooks/useAxisScales/index.d.ts +0 -25
- package/build/plugins/d3/renderer/hooks/useAxisScales/index.js +0 -183
- package/build/plugins/d3/renderer/hooks/useChartDimensions/index.d.ts +0 -16
- package/build/plugins/d3/renderer/hooks/useChartDimensions/index.js +0 -34
- package/build/plugins/d3/renderer/hooks/useChartDimensions/utils.d.ts +0 -10
- package/build/plugins/d3/renderer/hooks/useChartDimensions/utils.js +0 -32
- package/build/plugins/d3/renderer/hooks/useChartOptions/chart.d.ts +0 -6
- package/build/plugins/d3/renderer/hooks/useChartOptions/chart.js +0 -28
- package/build/plugins/d3/renderer/hooks/useChartOptions/index.d.ts +0 -7
- package/build/plugins/d3/renderer/hooks/useChartOptions/index.js +0 -21
- package/build/plugins/d3/renderer/hooks/useChartOptions/title.d.ts +0 -5
- package/build/plugins/d3/renderer/hooks/useChartOptions/title.js +0 -18
- package/build/plugins/d3/renderer/hooks/useChartOptions/tooltip.d.ts +0 -5
- package/build/plugins/d3/renderer/hooks/useChartOptions/tooltip.js +0 -5
- package/build/plugins/d3/renderer/hooks/useChartOptions/types.d.ts +0 -47
- package/build/plugins/d3/renderer/hooks/useChartOptions/x-axis.d.ts +0 -7
- package/build/plugins/d3/renderer/hooks/useChartOptions/x-axis.js +0 -114
- package/build/plugins/d3/renderer/hooks/useChartOptions/y-axis.d.ts +0 -7
- package/build/plugins/d3/renderer/hooks/useChartOptions/y-axis.js +0 -116
- package/build/plugins/d3/renderer/hooks/useSeries/constants.d.ts +0 -8
- package/build/plugins/d3/renderer/hooks/useSeries/constants.js +0 -19
- package/build/plugins/d3/renderer/hooks/useSeries/index.d.ts +0 -29
- package/build/plugins/d3/renderer/hooks/useSeries/index.js +0 -82
- package/build/plugins/d3/renderer/hooks/useSeries/prepare-area.d.ts +0 -19
- package/build/plugins/d3/renderer/hooks/useSeries/prepare-area.js +0 -63
- package/build/plugins/d3/renderer/hooks/useSeries/prepare-bar-x.d.ts +0 -10
- package/build/plugins/d3/renderer/hooks/useSeries/prepare-bar-x.js +0 -38
- package/build/plugins/d3/renderer/hooks/useSeries/prepare-bar-y.d.ts +0 -10
- package/build/plugins/d3/renderer/hooks/useSeries/prepare-bar-y.js +0 -49
- package/build/plugins/d3/renderer/hooks/useSeries/prepare-legend.d.ts +0 -27
- package/build/plugins/d3/renderer/hooks/useSeries/prepare-legend.js +0 -144
- package/build/plugins/d3/renderer/hooks/useSeries/prepare-line.d.ts +0 -22
- package/build/plugins/d3/renderer/hooks/useSeries/prepare-line.js +0 -82
- package/build/plugins/d3/renderer/hooks/useSeries/prepare-options.d.ts +0 -3
- package/build/plugins/d3/renderer/hooks/useSeries/prepare-options.js +0 -5
- package/build/plugins/d3/renderer/hooks/useSeries/prepare-pie.d.ts +0 -9
- package/build/plugins/d3/renderer/hooks/useSeries/prepare-pie.js +0 -62
- package/build/plugins/d3/renderer/hooks/useSeries/prepare-scatter.d.ts +0 -11
- package/build/plugins/d3/renderer/hooks/useSeries/prepare-scatter.js +0 -47
- package/build/plugins/d3/renderer/hooks/useSeries/prepare-treemap.d.ts +0 -11
- package/build/plugins/d3/renderer/hooks/useSeries/prepare-treemap.js +0 -38
- package/build/plugins/d3/renderer/hooks/useSeries/prepare-waterfall.d.ts +0 -10
- package/build/plugins/d3/renderer/hooks/useSeries/prepare-waterfall.js +0 -37
- package/build/plugins/d3/renderer/hooks/useSeries/prepareSeries.d.ts +0 -10
- package/build/plugins/d3/renderer/hooks/useSeries/prepareSeries.js +0 -65
- package/build/plugins/d3/renderer/hooks/useSeries/types.d.ts +0 -254
- package/build/plugins/d3/renderer/hooks/useSeries/types.js +0 -1
- package/build/plugins/d3/renderer/hooks/useSeries/utils.d.ts +0 -7
- package/build/plugins/d3/renderer/hooks/useSeries/utils.js +0 -33
- package/build/plugins/d3/renderer/hooks/useShapes/HtmlLayer.d.ts +0 -8
- package/build/plugins/d3/renderer/hooks/useShapes/HtmlLayer.js +0 -22
- package/build/plugins/d3/renderer/hooks/useShapes/area/index.d.ts +0 -12
- package/build/plugins/d3/renderer/hooks/useShapes/area/index.js +0 -144
- package/build/plugins/d3/renderer/hooks/useShapes/area/prepare-data.d.ts +0 -12
- package/build/plugins/d3/renderer/hooks/useShapes/area/prepare-data.js +0 -158
- package/build/plugins/d3/renderer/hooks/useShapes/area/types.d.ts +0 -28
- package/build/plugins/d3/renderer/hooks/useShapes/area/types.js +0 -1
- package/build/plugins/d3/renderer/hooks/useShapes/bar-x/index.d.ts +0 -13
- package/build/plugins/d3/renderer/hooks/useShapes/bar-x/index.js +0 -96
- package/build/plugins/d3/renderer/hooks/useShapes/bar-x/prepare-data.d.ts +0 -13
- package/build/plugins/d3/renderer/hooks/useShapes/bar-x/prepare-data.js +0 -160
- package/build/plugins/d3/renderer/hooks/useShapes/bar-x/types.d.ts +0 -13
- package/build/plugins/d3/renderer/hooks/useShapes/bar-x/types.js +0 -1
- package/build/plugins/d3/renderer/hooks/useShapes/bar-y/index.d.ts +0 -12
- package/build/plugins/d3/renderer/hooks/useShapes/bar-y/index.js +0 -84
- package/build/plugins/d3/renderer/hooks/useShapes/bar-y/prepare-data.d.ts +0 -12
- package/build/plugins/d3/renderer/hooks/useShapes/bar-y/prepare-data.js +0 -169
- package/build/plugins/d3/renderer/hooks/useShapes/bar-y/types.d.ts +0 -14
- package/build/plugins/d3/renderer/hooks/useShapes/bar-y/types.js +0 -1
- package/build/plugins/d3/renderer/hooks/useShapes/constants.d.ts +0 -3
- package/build/plugins/d3/renderer/hooks/useShapes/constants.js +0 -3
- package/build/plugins/d3/renderer/hooks/useShapes/index.d.ts +0 -33
- package/build/plugins/d3/renderer/hooks/useShapes/index.js +0 -153
- package/build/plugins/d3/renderer/hooks/useShapes/line/index.d.ts +0 -12
- package/build/plugins/d3/renderer/hooks/useShapes/line/index.js +0 -131
- package/build/plugins/d3/renderer/hooks/useShapes/line/prepare-data.d.ts +0 -13
- package/build/plugins/d3/renderer/hooks/useShapes/line/prepare-data.js +0 -91
- package/build/plugins/d3/renderer/hooks/useShapes/line/types.d.ts +0 -30
- package/build/plugins/d3/renderer/hooks/useShapes/line/types.js +0 -1
- package/build/plugins/d3/renderer/hooks/useShapes/marker.d.ts +0 -13
- package/build/plugins/d3/renderer/hooks/useShapes/marker.js +0 -76
- package/build/plugins/d3/renderer/hooks/useShapes/pie/index.d.ts +0 -13
- package/build/plugins/d3/renderer/hooks/useShapes/pie/index.js +0 -172
- package/build/plugins/d3/renderer/hooks/useShapes/pie/prepare-data.d.ts +0 -9
- package/build/plugins/d3/renderer/hooks/useShapes/pie/prepare-data.js +0 -186
- package/build/plugins/d3/renderer/hooks/useShapes/pie/types.d.ts +0 -42
- package/build/plugins/d3/renderer/hooks/useShapes/pie/types.js +0 -1
- package/build/plugins/d3/renderer/hooks/useShapes/pie/utils.d.ts +0 -4
- package/build/plugins/d3/renderer/hooks/useShapes/pie/utils.js +0 -15
- package/build/plugins/d3/renderer/hooks/useShapes/scatter/index.d.ts +0 -12
- package/build/plugins/d3/renderer/hooks/useShapes/scatter/index.js +0 -69
- package/build/plugins/d3/renderer/hooks/useShapes/scatter/prepare-data.d.ts +0 -11
- package/build/plugins/d3/renderer/hooks/useShapes/scatter/prepare-data.js +0 -31
- package/build/plugins/d3/renderer/hooks/useShapes/scatter/types.d.ts +0 -18
- package/build/plugins/d3/renderer/hooks/useShapes/scatter/types.js +0 -1
- package/build/plugins/d3/renderer/hooks/useShapes/styles.css +0 -36
- package/build/plugins/d3/renderer/hooks/useShapes/treemap/index.d.ts +0 -12
- package/build/plugins/d3/renderer/hooks/useShapes/treemap/index.js +0 -99
- package/build/plugins/d3/renderer/hooks/useShapes/treemap/prepare-data.d.ts +0 -7
- package/build/plugins/d3/renderer/hooks/useShapes/treemap/prepare-data.js +0 -114
- package/build/plugins/d3/renderer/hooks/useShapes/treemap/types.d.ts +0 -17
- package/build/plugins/d3/renderer/hooks/useShapes/treemap/types.js +0 -1
- package/build/plugins/d3/renderer/hooks/useShapes/utils.d.ts +0 -29
- package/build/plugins/d3/renderer/hooks/useShapes/utils.js +0 -53
- package/build/plugins/d3/renderer/hooks/useShapes/waterfall/index.d.ts +0 -13
- package/build/plugins/d3/renderer/hooks/useShapes/waterfall/index.js +0 -128
- package/build/plugins/d3/renderer/hooks/useShapes/waterfall/prepare-data.d.ts +0 -12
- package/build/plugins/d3/renderer/hooks/useShapes/waterfall/prepare-data.js +0 -133
- package/build/plugins/d3/renderer/hooks/useShapes/waterfall/types.d.ts +0 -15
- package/build/plugins/d3/renderer/hooks/useShapes/waterfall/types.js +0 -1
- package/build/plugins/d3/renderer/hooks/useSplit/index.d.ts +0 -14
- package/build/plugins/d3/renderer/hooks/useSplit/index.js +0 -57
- package/build/plugins/d3/renderer/hooks/useSplit/types.d.ts +0 -17
- package/build/plugins/d3/renderer/hooks/useSplit/types.js +0 -1
- package/build/plugins/d3/renderer/hooks/useTooltip/index.d.ts +0 -13
- package/build/plugins/d3/renderer/hooks/useTooltip/index.js +0 -17
- package/build/plugins/d3/renderer/hooks/useTooltip/types.d.ts +0 -1
- package/build/plugins/d3/renderer/hooks/useTooltip/types.js +0 -1
- package/build/plugins/d3/renderer/types/index.d.ts +0 -24
- package/build/plugins/d3/renderer/types/index.js +0 -1
- package/build/plugins/d3/renderer/utils/axis-generators/bottom.d.ts +0 -24
- package/build/plugins/d3/renderer/utils/axis-generators/bottom.js +0 -126
- package/build/plugins/d3/renderer/utils/axis-generators/index.d.ts +0 -1
- package/build/plugins/d3/renderer/utils/axis-generators/index.js +0 -1
- package/build/plugins/d3/renderer/utils/axis.d.ts +0 -31
- package/build/plugins/d3/renderer/utils/axis.js +0 -71
- package/build/plugins/d3/renderer/utils/color.d.ts +0 -10
- package/build/plugins/d3/renderer/utils/color.js +0 -43
- package/build/plugins/d3/renderer/utils/get-closest-data.d.ts +0 -15
- package/build/plugins/d3/renderer/utils/get-closest-data.js +0 -172
- package/build/plugins/d3/renderer/utils/index.d.ts +0 -78
- package/build/plugins/d3/renderer/utils/index.js +0 -211
- package/build/plugins/d3/renderer/utils/labels.d.ts +0 -6
- package/build/plugins/d3/renderer/utils/labels.js +0 -44
- package/build/plugins/d3/renderer/utils/legend.d.ts +0 -8
- package/build/plugins/d3/renderer/utils/legend.js +0 -23
- package/build/plugins/d3/renderer/utils/math.d.ts +0 -25
- package/build/plugins/d3/renderer/utils/math.js +0 -51
- package/build/plugins/d3/renderer/utils/series/index.d.ts +0 -1
- package/build/plugins/d3/renderer/utils/series/index.js +0 -1
- package/build/plugins/d3/renderer/utils/series/waterfall.d.ts +0 -4
- package/build/plugins/d3/renderer/utils/series/waterfall.js +0 -25
- package/build/plugins/d3/renderer/utils/symbol.d.ts +0 -3
- package/build/plugins/d3/renderer/utils/symbol.js +0 -36
- package/build/plugins/d3/renderer/utils/text.d.ts +0 -29
- package/build/plugins/d3/renderer/utils/text.js +0 -139
- package/build/plugins/d3/renderer/utils/time.d.ts +0 -3
- package/build/plugins/d3/renderer/utils/time.js +0 -34
- package/build/plugins/d3/renderer/validation/__mocks__/index.d.ts +0 -3
- package/build/plugins/d3/renderer/validation/__mocks__/index.js +0 -44
- package/build/plugins/d3/renderer/validation/index.d.ts +0 -2
- package/build/plugins/d3/renderer/validation/index.js +0 -221
- package/build/plugins/d3/utils/index.d.ts +0 -4
- package/build/plugins/d3/utils/index.js +0 -4
- package/build/plugins/d3/utils/pie-center-text.d.ts +0 -7
- package/build/plugins/d3/utils/pie-center-text.js +0 -23
- /package/build/{plugins/d3/renderer/hooks/useChartOptions → components/SplitPane}/types.js +0 -0
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { groups } from 'd3';
|
|
3
|
-
import { ChartKit } from '../../../../components/ChartKit';
|
|
4
|
-
import { ExampleWrapper } from '../ExampleWrapper';
|
|
5
|
-
import nintendoGames from '../nintendoGames';
|
|
6
|
-
function prepareData() {
|
|
7
|
-
const grouped = groups(nintendoGames, (d) => d.platform, (d) => (d.date ? new Date(d.date).getFullYear() : 'unknown'));
|
|
8
|
-
const categories = [];
|
|
9
|
-
const series = grouped.map(([platform, years]) => {
|
|
10
|
-
return {
|
|
11
|
-
name: platform,
|
|
12
|
-
data: years.map(([year, list]) => {
|
|
13
|
-
categories.push(String(year));
|
|
14
|
-
return {
|
|
15
|
-
y: String(year),
|
|
16
|
-
x: list.length,
|
|
17
|
-
};
|
|
18
|
-
}),
|
|
19
|
-
};
|
|
20
|
-
});
|
|
21
|
-
return { categories, series };
|
|
22
|
-
}
|
|
23
|
-
export const StackedColumns = () => {
|
|
24
|
-
const { series, categories } = prepareData();
|
|
25
|
-
const data = series.map((s) => {
|
|
26
|
-
return {
|
|
27
|
-
type: 'bar-y',
|
|
28
|
-
stacking: 'normal',
|
|
29
|
-
name: s.name,
|
|
30
|
-
data: s.data,
|
|
31
|
-
};
|
|
32
|
-
});
|
|
33
|
-
const widgetData = {
|
|
34
|
-
series: {
|
|
35
|
-
data: data,
|
|
36
|
-
},
|
|
37
|
-
yAxis: [
|
|
38
|
-
{
|
|
39
|
-
type: 'category',
|
|
40
|
-
categories: categories.sort(),
|
|
41
|
-
title: {
|
|
42
|
-
text: 'Release year',
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
],
|
|
46
|
-
};
|
|
47
|
-
return (React.createElement(ExampleWrapper, null,
|
|
48
|
-
React.createElement(ChartKit, { type: "d3", data: widgetData })));
|
|
49
|
-
};
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { groups, max, median, min } from 'd3';
|
|
3
|
-
import { ChartKit } from '../../../../components/ChartKit';
|
|
4
|
-
import { ExampleWrapper } from '../ExampleWrapper';
|
|
5
|
-
import nintendoGames from '../nintendoGames';
|
|
6
|
-
export const LineAndBarXCombinedChart = () => {
|
|
7
|
-
const gamesByPlatform = groups(nintendoGames, (item) => item.platform || 'unknown');
|
|
8
|
-
const widgetData = {
|
|
9
|
-
series: {
|
|
10
|
-
options: {
|
|
11
|
-
line: {
|
|
12
|
-
lineWidth: 2,
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
data: [
|
|
16
|
-
{
|
|
17
|
-
type: 'bar-x',
|
|
18
|
-
data: gamesByPlatform.map(([value, games]) => ({
|
|
19
|
-
x: value,
|
|
20
|
-
y: median(games, (g) => g.user_score || 0),
|
|
21
|
-
})),
|
|
22
|
-
name: 'Median user score',
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
type: 'line',
|
|
26
|
-
data: gamesByPlatform.map(([value, games]) => ({
|
|
27
|
-
x: value,
|
|
28
|
-
y: max(games, (g) => g.user_score || 0),
|
|
29
|
-
})),
|
|
30
|
-
name: 'Max user score',
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
type: 'line',
|
|
34
|
-
data: gamesByPlatform.map(([value, games]) => ({
|
|
35
|
-
x: value,
|
|
36
|
-
y: min(games, (g) => g.user_score || 10),
|
|
37
|
-
})),
|
|
38
|
-
name: 'Min user score',
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
},
|
|
42
|
-
xAxis: {
|
|
43
|
-
categories: gamesByPlatform.map(([key]) => key),
|
|
44
|
-
type: 'category',
|
|
45
|
-
title: {
|
|
46
|
-
text: 'Game Platforms',
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
yAxis: [
|
|
50
|
-
{
|
|
51
|
-
title: { text: 'User score' },
|
|
52
|
-
labels: {
|
|
53
|
-
enabled: true,
|
|
54
|
-
},
|
|
55
|
-
ticks: {
|
|
56
|
-
pixelInterval: 120,
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
],
|
|
60
|
-
};
|
|
61
|
-
return (React.createElement(ExampleWrapper, null,
|
|
62
|
-
React.createElement(ChartKit, { type: "d3", data: widgetData })));
|
|
63
|
-
};
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { dateTime } from '@gravity-ui/date-utils';
|
|
3
|
-
import { ChartKit } from '../../../../components/ChartKit';
|
|
4
|
-
import { ExampleWrapper } from '../ExampleWrapper';
|
|
5
|
-
import nintendoGames from '../nintendoGames';
|
|
6
|
-
function prepareData() {
|
|
7
|
-
const dataset = nintendoGames.filter((d) => d.date && d.user_score);
|
|
8
|
-
const data = dataset.map((d) => ({
|
|
9
|
-
x: d.date || undefined,
|
|
10
|
-
y: d.user_score || undefined,
|
|
11
|
-
custom: d,
|
|
12
|
-
}));
|
|
13
|
-
return {
|
|
14
|
-
series: [
|
|
15
|
-
{
|
|
16
|
-
data,
|
|
17
|
-
name: 'Nintendo games',
|
|
18
|
-
},
|
|
19
|
-
],
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
export const Basic = () => {
|
|
23
|
-
const { series } = prepareData();
|
|
24
|
-
const widgetData = {
|
|
25
|
-
series: {
|
|
26
|
-
data: series.map((s) => ({
|
|
27
|
-
type: 'line',
|
|
28
|
-
data: s.data.filter((d) => d.x),
|
|
29
|
-
name: s.name,
|
|
30
|
-
})),
|
|
31
|
-
},
|
|
32
|
-
yAxis: [
|
|
33
|
-
{
|
|
34
|
-
title: {
|
|
35
|
-
text: 'User score',
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
],
|
|
39
|
-
xAxis: {
|
|
40
|
-
type: 'datetime',
|
|
41
|
-
title: {
|
|
42
|
-
text: 'Release dates',
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
tooltip: {
|
|
46
|
-
renderer: (d) => {
|
|
47
|
-
var _a;
|
|
48
|
-
const point = (_a = d.hovered[0]) === null || _a === void 0 ? void 0 : _a.data;
|
|
49
|
-
if (!point) {
|
|
50
|
-
return null;
|
|
51
|
-
}
|
|
52
|
-
const title = point.custom.title;
|
|
53
|
-
const score = point.custom.user_score;
|
|
54
|
-
const date = dateTime({ input: point.custom.date }).format('DD MMM YYYY');
|
|
55
|
-
return (React.createElement(React.Fragment, null,
|
|
56
|
-
React.createElement("b", null, title),
|
|
57
|
-
React.createElement("br", null),
|
|
58
|
-
"Release date: ",
|
|
59
|
-
date,
|
|
60
|
-
React.createElement("br", null),
|
|
61
|
-
"User score: ",
|
|
62
|
-
score));
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
};
|
|
66
|
-
return (React.createElement(ExampleWrapper, null,
|
|
67
|
-
React.createElement(ChartKit, { type: "d3", data: widgetData })));
|
|
68
|
-
};
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { dateTime } from '@gravity-ui/date-utils';
|
|
3
|
-
import { ChartKit } from '../../../../components/ChartKit';
|
|
4
|
-
import { ExampleWrapper } from '../ExampleWrapper';
|
|
5
|
-
import nintendoGames from '../nintendoGames';
|
|
6
|
-
function prepareData() {
|
|
7
|
-
const games = nintendoGames.filter((d) => {
|
|
8
|
-
return d.date && d.user_score;
|
|
9
|
-
});
|
|
10
|
-
const byGenre = (genre) => {
|
|
11
|
-
return games
|
|
12
|
-
.filter((d) => d.genres.includes(genre))
|
|
13
|
-
.map((d) => {
|
|
14
|
-
return {
|
|
15
|
-
x: d.date,
|
|
16
|
-
y: d.user_score,
|
|
17
|
-
label: `${d.title} (${d.user_score})`,
|
|
18
|
-
custom: d,
|
|
19
|
-
};
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
return [
|
|
23
|
-
{
|
|
24
|
-
name: 'Strategy',
|
|
25
|
-
type: 'line',
|
|
26
|
-
data: byGenre('Strategy'),
|
|
27
|
-
dataLabels: {
|
|
28
|
-
enabled: true,
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
name: 'Shooter',
|
|
33
|
-
type: 'line',
|
|
34
|
-
data: byGenre('Shooter'),
|
|
35
|
-
dataLabels: {
|
|
36
|
-
enabled: true,
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
];
|
|
40
|
-
}
|
|
41
|
-
export const DataLabels = () => {
|
|
42
|
-
const series = prepareData();
|
|
43
|
-
const widgetData = {
|
|
44
|
-
series: {
|
|
45
|
-
data: series.map((s) => ({
|
|
46
|
-
type: 'line',
|
|
47
|
-
data: s.data.filter((d) => d.x),
|
|
48
|
-
name: s.name,
|
|
49
|
-
dataLabels: {
|
|
50
|
-
enabled: true,
|
|
51
|
-
},
|
|
52
|
-
})),
|
|
53
|
-
},
|
|
54
|
-
yAxis: [
|
|
55
|
-
{
|
|
56
|
-
title: {
|
|
57
|
-
text: 'User score',
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
],
|
|
61
|
-
xAxis: {
|
|
62
|
-
type: 'datetime',
|
|
63
|
-
title: {
|
|
64
|
-
text: 'Release dates',
|
|
65
|
-
},
|
|
66
|
-
ticks: { pixelInterval: 200 },
|
|
67
|
-
},
|
|
68
|
-
tooltip: {
|
|
69
|
-
renderer: (d) => {
|
|
70
|
-
var _a;
|
|
71
|
-
const point = (_a = d.hovered[0]) === null || _a === void 0 ? void 0 : _a.data;
|
|
72
|
-
if (!point) {
|
|
73
|
-
return null;
|
|
74
|
-
}
|
|
75
|
-
const title = point.custom.title;
|
|
76
|
-
const score = point.custom.user_score;
|
|
77
|
-
const date = dateTime({ input: point.custom.date }).format('DD MMM YYYY');
|
|
78
|
-
return (React.createElement(React.Fragment, null,
|
|
79
|
-
React.createElement("b", null, title),
|
|
80
|
-
React.createElement("br", null),
|
|
81
|
-
"Release date: ",
|
|
82
|
-
date,
|
|
83
|
-
React.createElement("br", null),
|
|
84
|
-
"User score: ",
|
|
85
|
-
score));
|
|
86
|
-
},
|
|
87
|
-
},
|
|
88
|
-
};
|
|
89
|
-
return (React.createElement(ExampleWrapper, null,
|
|
90
|
-
React.createElement(ChartKit, { type: "d3", data: widgetData })));
|
|
91
|
-
};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { dateTime } from '@gravity-ui/date-utils';
|
|
3
|
-
import { ChartKit } from '../../../../components/ChartKit';
|
|
4
|
-
import { ExampleWrapper } from '../ExampleWrapper';
|
|
5
|
-
import nintendoGames from '../nintendoGames';
|
|
6
|
-
function prepareData() {
|
|
7
|
-
const dataset = nintendoGames.filter((d) => d.date && d.user_score && new Date(d.date) > new Date(2022, 0, 1));
|
|
8
|
-
const data = dataset.map((d) => ({
|
|
9
|
-
x: d.date || undefined,
|
|
10
|
-
y: d.user_score || undefined,
|
|
11
|
-
custom: d,
|
|
12
|
-
}));
|
|
13
|
-
return {
|
|
14
|
-
series: [
|
|
15
|
-
{
|
|
16
|
-
data,
|
|
17
|
-
name: 'Nintendo games',
|
|
18
|
-
},
|
|
19
|
-
],
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
export const LineWithMarkers = () => {
|
|
23
|
-
const { series } = prepareData();
|
|
24
|
-
const widgetData = {
|
|
25
|
-
series: {
|
|
26
|
-
data: series.map((s) => ({
|
|
27
|
-
type: 'line',
|
|
28
|
-
data: s.data.filter((d) => d.x),
|
|
29
|
-
name: s.name,
|
|
30
|
-
marker: { enabled: true, symbol: 'square' },
|
|
31
|
-
})),
|
|
32
|
-
},
|
|
33
|
-
yAxis: [
|
|
34
|
-
{
|
|
35
|
-
title: {
|
|
36
|
-
text: 'User score',
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
],
|
|
40
|
-
xAxis: {
|
|
41
|
-
type: 'datetime',
|
|
42
|
-
title: {
|
|
43
|
-
text: 'Release dates',
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
tooltip: {
|
|
47
|
-
renderer: (d) => {
|
|
48
|
-
var _a;
|
|
49
|
-
const point = (_a = d.hovered[0]) === null || _a === void 0 ? void 0 : _a.data;
|
|
50
|
-
if (!point) {
|
|
51
|
-
return null;
|
|
52
|
-
}
|
|
53
|
-
const title = point.custom.title;
|
|
54
|
-
const score = point.custom.user_score;
|
|
55
|
-
const date = dateTime({ input: point.custom.date }).format('DD MMM YYYY');
|
|
56
|
-
return (React.createElement(React.Fragment, null,
|
|
57
|
-
React.createElement("b", null, title),
|
|
58
|
-
React.createElement("br", null),
|
|
59
|
-
"Release date: ",
|
|
60
|
-
date,
|
|
61
|
-
React.createElement("br", null),
|
|
62
|
-
"User score: ",
|
|
63
|
-
score));
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
};
|
|
67
|
-
return (React.createElement(ExampleWrapper, null,
|
|
68
|
-
React.createElement(ChartKit, { type: "d3", data: widgetData })));
|
|
69
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Col, Container, Row, Text } from '@gravity-ui/uikit';
|
|
3
|
-
import { randomNormal } from 'd3';
|
|
4
|
-
import { ChartKit } from '../../../../components/ChartKit';
|
|
5
|
-
import { ExampleWrapper } from '../ExampleWrapper';
|
|
6
|
-
export const LineWithLogarithmicAxis = () => {
|
|
7
|
-
const randomY = randomNormal(0, 100);
|
|
8
|
-
const widgetData = {
|
|
9
|
-
series: {
|
|
10
|
-
data: [
|
|
11
|
-
{
|
|
12
|
-
type: 'line',
|
|
13
|
-
name: 'Line series',
|
|
14
|
-
data: new Array(25).fill(null).map((_, index) => ({
|
|
15
|
-
x: index,
|
|
16
|
-
y: Math.abs(randomY()),
|
|
17
|
-
})),
|
|
18
|
-
},
|
|
19
|
-
],
|
|
20
|
-
},
|
|
21
|
-
};
|
|
22
|
-
const lineWidgetData = Object.assign(Object.assign({}, widgetData), { title: { text: 'line' } });
|
|
23
|
-
const logarithmicWidgetData = Object.assign(Object.assign({}, widgetData), { title: { text: 'logarithmic' }, yAxis: [
|
|
24
|
-
{
|
|
25
|
-
type: 'logarithmic',
|
|
26
|
-
},
|
|
27
|
-
] });
|
|
28
|
-
return (React.createElement(Container, { spaceRow: 5 },
|
|
29
|
-
React.createElement(Row, { space: 1 },
|
|
30
|
-
React.createElement(Text, { variant: "header-2" }, "logarithmic VS line")),
|
|
31
|
-
React.createElement(Row, { space: 3 },
|
|
32
|
-
React.createElement(Col, { s: 12, m: 6 },
|
|
33
|
-
React.createElement(ExampleWrapper, null,
|
|
34
|
-
React.createElement(ChartKit, { type: "d3", data: lineWidgetData }))),
|
|
35
|
-
React.createElement(Col, { s: 12, m: 6 },
|
|
36
|
-
React.createElement(ExampleWrapper, null,
|
|
37
|
-
React.createElement(ChartKit, { type: "d3", data: logarithmicWidgetData }))))));
|
|
38
|
-
};
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ChartKit } from '../../../../components/ChartKit';
|
|
3
|
-
import { DashStyle } from '../../../../constants';
|
|
4
|
-
import { ExampleWrapper } from '../ExampleWrapper';
|
|
5
|
-
import nintendoGames from '../nintendoGames';
|
|
6
|
-
const SHAPES = {
|
|
7
|
-
[DashStyle.Solid]: 1,
|
|
8
|
-
[DashStyle.Dash]: 2,
|
|
9
|
-
[DashStyle.Dot]: 3,
|
|
10
|
-
[DashStyle.ShortDashDot]: 4,
|
|
11
|
-
[DashStyle.LongDash]: 5,
|
|
12
|
-
[DashStyle.LongDashDot]: 6,
|
|
13
|
-
[DashStyle.ShortDot]: 7,
|
|
14
|
-
[DashStyle.LongDashDotDot]: 8,
|
|
15
|
-
[DashStyle.ShortDash]: 9,
|
|
16
|
-
[DashStyle.DashDot]: 10,
|
|
17
|
-
[DashStyle.ShortDashDotDot]: 11,
|
|
18
|
-
};
|
|
19
|
-
const selectShapes = () => Object.values(DashStyle);
|
|
20
|
-
const getShapesOrder = () => selectShapes().sort((a, b) => SHAPES[a] - SHAPES[b]);
|
|
21
|
-
const SHAPES_IN_ORDER = getShapesOrder();
|
|
22
|
-
function prepareData() {
|
|
23
|
-
const games = nintendoGames.filter((d) => {
|
|
24
|
-
return d.date && d.user_score;
|
|
25
|
-
});
|
|
26
|
-
const byGenre = (genre) => {
|
|
27
|
-
return games
|
|
28
|
-
.filter((d) => d.genres.includes(genre))
|
|
29
|
-
.map((d) => {
|
|
30
|
-
return {
|
|
31
|
-
x: d.date,
|
|
32
|
-
y: d.user_score,
|
|
33
|
-
label: d.title,
|
|
34
|
-
};
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
return {
|
|
38
|
-
series: {
|
|
39
|
-
options: {
|
|
40
|
-
line: {
|
|
41
|
-
lineWidth: 2,
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
data: [
|
|
45
|
-
{
|
|
46
|
-
name: '3D',
|
|
47
|
-
type: 'line',
|
|
48
|
-
data: byGenre('3D'),
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
name: '2D',
|
|
52
|
-
type: 'line',
|
|
53
|
-
data: byGenre('2D'),
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
name: 'Strategy',
|
|
57
|
-
type: 'line',
|
|
58
|
-
data: byGenre('Strategy'),
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
name: 'Shooter',
|
|
62
|
-
type: 'line',
|
|
63
|
-
data: byGenre('Shooter'),
|
|
64
|
-
},
|
|
65
|
-
],
|
|
66
|
-
},
|
|
67
|
-
xAxis: {
|
|
68
|
-
type: 'datetime',
|
|
69
|
-
title: {
|
|
70
|
-
text: 'Release date',
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
yAxis: [
|
|
74
|
-
{
|
|
75
|
-
title: { text: 'User score' },
|
|
76
|
-
labels: {
|
|
77
|
-
enabled: true,
|
|
78
|
-
},
|
|
79
|
-
ticks: {
|
|
80
|
-
pixelInterval: 120,
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
],
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
export const LinesWithShapes = () => {
|
|
87
|
-
const data = prepareData();
|
|
88
|
-
data.series.data.forEach((graph, i) => {
|
|
89
|
-
graph.dashStyle = SHAPES_IN_ORDER[i % SHAPES_IN_ORDER.length];
|
|
90
|
-
});
|
|
91
|
-
return (React.createElement(ExampleWrapper, null,
|
|
92
|
-
React.createElement(ChartKit, { type: "d3", data: data })));
|
|
93
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { dateTime } from '@gravity-ui/date-utils';
|
|
3
|
-
import { ChartKit } from '../../../../components/ChartKit';
|
|
4
|
-
import { ExampleWrapper } from '../ExampleWrapper';
|
|
5
|
-
import marsWeatherData from '../mars-weather';
|
|
6
|
-
export const TwoYAxis = () => {
|
|
7
|
-
const data = marsWeatherData;
|
|
8
|
-
const minTempData = data.map((d) => ({
|
|
9
|
-
x: dateTime({ input: d.terrestrial_date, format: 'YYYY-MM-DD' }).valueOf(),
|
|
10
|
-
y: d.min_temp,
|
|
11
|
-
}));
|
|
12
|
-
const maxTempData = data.map((d) => ({
|
|
13
|
-
x: dateTime({ input: d.terrestrial_date, format: 'YYYY-MM-DD' }).valueOf(),
|
|
14
|
-
y: d.max_temp,
|
|
15
|
-
}));
|
|
16
|
-
const widgetData = {
|
|
17
|
-
series: {
|
|
18
|
-
data: [
|
|
19
|
-
{
|
|
20
|
-
type: 'line',
|
|
21
|
-
data: minTempData,
|
|
22
|
-
name: 'Min Temperature',
|
|
23
|
-
yAxis: 0,
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
type: 'line',
|
|
27
|
-
data: maxTempData,
|
|
28
|
-
name: 'Max Temperature',
|
|
29
|
-
yAxis: 1,
|
|
30
|
-
},
|
|
31
|
-
],
|
|
32
|
-
},
|
|
33
|
-
yAxis: [
|
|
34
|
-
{
|
|
35
|
-
title: {
|
|
36
|
-
text: 'Min',
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
title: {
|
|
41
|
-
text: 'Max',
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
],
|
|
45
|
-
xAxis: {
|
|
46
|
-
type: 'datetime',
|
|
47
|
-
title: {
|
|
48
|
-
text: 'Terrestrial date',
|
|
49
|
-
},
|
|
50
|
-
ticks: { pixelInterval: 200 },
|
|
51
|
-
},
|
|
52
|
-
title: {
|
|
53
|
-
text: 'Mars weather',
|
|
54
|
-
},
|
|
55
|
-
};
|
|
56
|
-
return (React.createElement(ExampleWrapper, null,
|
|
57
|
-
React.createElement(ChartKit, { type: "d3", data: widgetData })));
|
|
58
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
id: string;
|
|
3
|
-
terrestrial_date: string;
|
|
4
|
-
sol: number;
|
|
5
|
-
ls: number;
|
|
6
|
-
season: string;
|
|
7
|
-
min_temp: number;
|
|
8
|
-
max_temp: number;
|
|
9
|
-
pressure: number;
|
|
10
|
-
wind_speed: null;
|
|
11
|
-
atmo_opacity: string;
|
|
12
|
-
}[];
|
|
13
|
-
export default _default;
|