@fluentui/react-charts 0.0.0-nightly-20250423-0405.1 → 0.0.0-nightly-20250423-1415.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 +16 -16
- package/dist/index.d.ts +3337 -0
- package/lib/AreaChart.js +1 -0
- package/lib/AreaChart.js.map +1 -0
- package/lib/CartesianChart.js +1 -0
- package/lib/CartesianChart.js.map +1 -0
- package/lib/DeclarativeChart.js +1 -0
- package/lib/DeclarativeChart.js.map +1 -0
- package/lib/DonutChart.js +1 -0
- package/lib/DonutChart.js.map +1 -0
- package/lib/GaugeChart.js +1 -0
- package/lib/GaugeChart.js.map +1 -0
- package/lib/GroupedVerticalBarChart.js +1 -0
- package/lib/GroupedVerticalBarChart.js.map +1 -0
- package/lib/HeatMapChart.js +1 -0
- package/lib/HeatMapChart.js.map +1 -0
- package/lib/HorizontalBarChart.js +1 -0
- package/lib/HorizontalBarChart.js.map +1 -0
- package/lib/HorizontalBarChartWithAxis.js +1 -0
- package/lib/HorizontalBarChartWithAxis.js.map +1 -0
- package/lib/Legends.js +1 -0
- package/lib/Legends.js.map +1 -0
- package/lib/LineChart.js +1 -0
- package/lib/LineChart.js.map +1 -0
- package/lib/Popover.js +1 -0
- package/lib/Popover.js.map +1 -0
- package/lib/ResponsiveContainer.js +1 -0
- package/lib/ResponsiveContainer.js.map +1 -0
- package/lib/SankeyChart.js +1 -0
- package/lib/SankeyChart.js.map +1 -0
- package/lib/ScatterChart.js +1 -0
- package/lib/ScatterChart.js.map +1 -0
- package/lib/Sparkline.js +1 -0
- package/lib/Sparkline.js.map +1 -0
- package/lib/VerticalBarChart.js +1 -0
- package/lib/VerticalBarChart.js.map +1 -0
- package/lib/VerticalStackedBarChart.js +1 -0
- package/lib/VerticalStackedBarChart.js.map +1 -0
- package/lib/components/AreaChart/AreaChart.js +775 -0
- package/lib/components/AreaChart/AreaChart.js.map +1 -0
- package/lib/components/AreaChart/AreaChart.types.js +4 -0
- package/lib/components/AreaChart/AreaChart.types.js.map +1 -0
- package/lib/components/AreaChart/index.js +3 -0
- package/lib/components/AreaChart/index.js.map +1 -0
- package/lib/components/AreaChart/useAreaChartStyles.styles.js +64 -0
- package/lib/components/AreaChart/useAreaChartStyles.styles.js.map +1 -0
- package/lib/components/CommonComponents/CartesianChart.js +478 -0
- package/lib/components/CommonComponents/CartesianChart.js.map +1 -0
- package/lib/components/CommonComponents/CartesianChart.types.js +1 -0
- package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -0
- package/lib/components/CommonComponents/ChartPopover.js +187 -0
- package/lib/components/CommonComponents/ChartPopover.js.map +1 -0
- package/lib/components/CommonComponents/ChartPopover.types.js +1 -0
- package/lib/components/CommonComponents/ChartPopover.types.js.map +1 -0
- package/lib/components/CommonComponents/index.js +4 -0
- package/lib/components/CommonComponents/index.js.map +1 -0
- package/lib/components/CommonComponents/useCartesianChartStyles.styles.js +229 -0
- package/lib/components/CommonComponents/useCartesianChartStyles.styles.js.map +1 -0
- package/lib/components/CommonComponents/useChartPopoverStyles.styles.js +178 -0
- package/lib/components/CommonComponents/useChartPopoverStyles.styles.js.map +1 -0
- package/lib/components/DeclarativeChart/DeclarativeChart.js +197 -0
- package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -0
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +811 -0
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -0
- package/lib/components/DeclarativeChart/imageExporter.js +221 -0
- package/lib/components/DeclarativeChart/imageExporter.js.map +1 -0
- package/lib/components/DeclarativeChart/index.js +1 -0
- package/lib/components/DeclarativeChart/index.js.map +1 -0
- package/lib/components/DonutChart/Arc/Arc.js +110 -0
- package/lib/components/DonutChart/Arc/Arc.js.map +1 -0
- package/lib/components/DonutChart/Arc/Arc.types.js +1 -0
- package/lib/components/DonutChart/Arc/Arc.types.js.map +1 -0
- package/lib/components/DonutChart/Arc/index.js +2 -0
- package/lib/components/DonutChart/Arc/index.js.map +1 -0
- package/lib/components/DonutChart/Arc/useArcStyles.styles.js +54 -0
- package/lib/components/DonutChart/Arc/useArcStyles.styles.js.map +1 -0
- package/lib/components/DonutChart/DonutChart.js +291 -0
- package/lib/components/DonutChart/DonutChart.js.map +1 -0
- package/lib/components/DonutChart/DonutChart.types.js +1 -0
- package/lib/components/DonutChart/DonutChart.types.js.map +1 -0
- package/lib/components/DonutChart/Pie/Pie.js +72 -0
- package/lib/components/DonutChart/Pie/Pie.js.map +1 -0
- package/lib/components/DonutChart/Pie/Pie.types.js +1 -0
- package/lib/components/DonutChart/Pie/Pie.types.js.map +1 -0
- package/lib/components/DonutChart/Pie/index.js +2 -0
- package/lib/components/DonutChart/Pie/index.js.map +1 -0
- package/lib/components/DonutChart/Pie/usePieStyles.styles.js +44 -0
- package/lib/components/DonutChart/Pie/usePieStyles.styles.js.map +1 -0
- package/lib/components/DonutChart/index.js +3 -0
- package/lib/components/DonutChart/index.js.map +1 -0
- package/lib/components/DonutChart/useDonutChartStyles.styles.js +58 -0
- package/lib/components/DonutChart/useDonutChartStyles.styles.js.map +1 -0
- package/lib/components/GaugeChart/GaugeChart.js +592 -0
- package/lib/components/GaugeChart/GaugeChart.js.map +1 -0
- package/lib/components/GaugeChart/GaugeChart.types.js +4 -0
- package/lib/components/GaugeChart/GaugeChart.types.js.map +1 -0
- package/lib/components/GaugeChart/index.js +3 -0
- package/lib/components/GaugeChart/index.js.map +1 -0
- package/lib/components/GaugeChart/useGaugeChartStyles.styles.js +174 -0
- package/lib/components/GaugeChart/useGaugeChartStyles.styles.js.map +1 -0
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +501 -0
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -0
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js +4 -0
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -0
- package/lib/components/GroupedVerticalBarChart/index.js +3 -0
- package/lib/components/GroupedVerticalBarChart/index.js.map +1 -0
- package/lib/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.js +90 -0
- package/lib/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.js.map +1 -0
- package/lib/components/HeatMapChart/HeatMapChart.js +588 -0
- package/lib/components/HeatMapChart/HeatMapChart.js.map +1 -0
- package/lib/components/HeatMapChart/HeatMapChart.types.js +4 -0
- package/lib/components/HeatMapChart/HeatMapChart.types.js.map +1 -0
- package/lib/components/HeatMapChart/index.js +3 -0
- package/lib/components/HeatMapChart/index.js.map +1 -0
- package/lib/components/HeatMapChart/useHeatMapChartStyles.styles.js +46 -0
- package/lib/components/HeatMapChart/useHeatMapChartStyles.styles.js.map +1 -0
- package/lib/components/HorizontalBarChart/HorizontalBarChart.js +402 -0
- package/lib/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -0
- package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js +6 -0
- package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -0
- package/lib/components/HorizontalBarChart/index.js +3 -0
- package/lib/components/HorizontalBarChart/index.js.map +1 -0
- package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js +163 -0
- package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js.map +1 -0
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js +571 -0
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -0
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js +4 -0
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +1 -0
- package/lib/components/HorizontalBarChartWithAxis/index.js +3 -0
- package/lib/components/HorizontalBarChartWithAxis/index.js.map +1 -0
- package/lib/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.js +76 -0
- package/lib/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.js.map +1 -0
- package/lib/components/Legends/Legends.js +303 -0
- package/lib/components/Legends/Legends.js.map +1 -0
- package/lib/components/Legends/Legends.types.js +1 -0
- package/lib/components/Legends/Legends.types.js.map +1 -0
- package/lib/components/Legends/OverflowMenu.js +25 -0
- package/lib/components/Legends/OverflowMenu.js.map +1 -0
- package/lib/components/Legends/index.js +3 -0
- package/lib/components/Legends/index.js.map +1 -0
- package/lib/components/Legends/shape.js +35 -0
- package/lib/components/Legends/shape.js.map +1 -0
- package/lib/components/Legends/useLegendsStyles.styles.js +147 -0
- package/lib/components/Legends/useLegendsStyles.styles.js.map +1 -0
- package/lib/components/LineChart/LineChart.js +1034 -0
- package/lib/components/LineChart/LineChart.js.map +1 -0
- package/lib/components/LineChart/LineChart.types.js +3 -0
- package/lib/components/LineChart/LineChart.types.js.map +1 -0
- package/lib/components/LineChart/eventAnnotation/EventAnnotation.js +119 -0
- package/lib/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -0
- package/lib/components/LineChart/eventAnnotation/LabelLink.js +57 -0
- package/lib/components/LineChart/eventAnnotation/LabelLink.js.map +1 -0
- package/lib/components/LineChart/eventAnnotation/Textbox.js +40 -0
- package/lib/components/LineChart/eventAnnotation/Textbox.js.map +1 -0
- package/lib/components/LineChart/index.js +4 -0
- package/lib/components/LineChart/index.js.map +1 -0
- package/lib/components/LineChart/useLineChartStyles.styles.js +65 -0
- package/lib/components/LineChart/useLineChartStyles.styles.js.map +1 -0
- package/lib/components/ResponsiveContainer/ResponsiveContainer.js +65 -0
- package/lib/components/ResponsiveContainer/ResponsiveContainer.js.map +1 -0
- package/lib/components/ResponsiveContainer/ResponsiveContainer.types.js +1 -0
- package/lib/components/ResponsiveContainer/ResponsiveContainer.types.js.map +1 -0
- package/lib/components/ResponsiveContainer/index.js +1 -0
- package/lib/components/ResponsiveContainer/index.js.map +1 -0
- package/lib/components/ResponsiveContainer/useResponsiveContainerStyles.styles.js +23 -0
- package/lib/components/ResponsiveContainer/useResponsiveContainerStyles.styles.js.map +1 -0
- package/lib/components/SankeyChart/SankeyChart.js +1022 -0
- package/lib/components/SankeyChart/SankeyChart.js.map +1 -0
- package/lib/components/SankeyChart/SankeyChart.types.js +3 -0
- package/lib/components/SankeyChart/SankeyChart.types.js.map +1 -0
- package/lib/components/SankeyChart/index.js +3 -0
- package/lib/components/SankeyChart/index.js.map +1 -0
- package/lib/components/SankeyChart/useSankeyChartStyles.styles.js +109 -0
- package/lib/components/SankeyChart/useSankeyChartStyles.styles.js.map +1 -0
- package/lib/components/ScatterChart/ScatterChart.js +465 -0
- package/lib/components/ScatterChart/ScatterChart.js.map +1 -0
- package/lib/components/ScatterChart/ScatterChart.types.js +4 -0
- package/lib/components/ScatterChart/ScatterChart.types.js.map +1 -0
- package/lib/components/ScatterChart/index.js +3 -0
- package/lib/components/ScatterChart/index.js.map +1 -0
- package/lib/components/ScatterChart/useScatterChartStyles.styles.js +65 -0
- package/lib/components/ScatterChart/useScatterChartStyles.styles.js.map +1 -0
- package/lib/components/Sparkline/Sparkline.js +119 -0
- package/lib/components/Sparkline/Sparkline.js.map +1 -0
- package/lib/components/Sparkline/Sparkline.types.js +4 -0
- package/lib/components/Sparkline/Sparkline.types.js.map +1 -0
- package/lib/components/Sparkline/index.js +3 -0
- package/lib/components/Sparkline/index.js.map +1 -0
- package/lib/components/Sparkline/useSparklineStyles.styles.js +49 -0
- package/lib/components/Sparkline/useSparklineStyles.styles.js.map +1 -0
- package/lib/components/VerticalBarChart/VerticalBarChart.js +926 -0
- package/lib/components/VerticalBarChart/VerticalBarChart.js.map +1 -0
- package/lib/components/VerticalBarChart/VerticalBarChart.types.js +4 -0
- package/lib/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -0
- package/lib/components/VerticalBarChart/index.js +3 -0
- package/lib/components/VerticalBarChart/index.js.map +1 -0
- package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.js +74 -0
- package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.js.map +1 -0
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js +904 -0
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -0
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js +1 -0
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -0
- package/lib/components/VerticalStackedBarChart/index.js +3 -0
- package/lib/components/VerticalStackedBarChart/index.js.map +1 -0
- package/lib/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.js +73 -0
- package/lib/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.js.map +1 -0
- package/lib/index.js +20 -0
- package/lib/index.js.map +1 -0
- package/lib/types/DataPoint.js +1 -0
- package/lib/types/DataPoint.js.map +1 -0
- package/lib/types/EventAnnotation.js +1 -0
- package/lib/types/EventAnnotation.js.map +1 -0
- package/lib/types/LegendDataItem.js +1 -0
- package/lib/types/LegendDataItem.js.map +1 -0
- package/lib/types/index.js +2 -0
- package/lib/types/index.js.map +1 -0
- package/lib/utilities/FocusableTooltipText.js +65 -0
- package/lib/utilities/FocusableTooltipText.js.map +1 -0
- package/lib/utilities/KeyCodes.js +8 -0
- package/lib/utilities/KeyCodes.js.map +1 -0
- package/lib/utilities/SVGTooltipText.js +183 -0
- package/lib/utilities/SVGTooltipText.js.map +1 -0
- package/lib/utilities/async-utils.js +380 -0
- package/lib/utilities/async-utils.js.map +1 -0
- package/lib/utilities/colors.js +269 -0
- package/lib/utilities/colors.js.map +1 -0
- package/lib/utilities/getWindow.js +25 -0
- package/lib/utilities/getWindow.js.map +1 -0
- package/lib/utilities/index.js +3 -0
- package/lib/utilities/index.js.map +1 -0
- package/lib/utilities/locale-util.js +15 -0
- package/lib/utilities/locale-util.js.map +1 -0
- package/lib/utilities/overflow-utils.js +27 -0
- package/lib/utilities/overflow-utils.js.map +1 -0
- package/lib/utilities/string.js +32 -0
- package/lib/utilities/string.js.map +1 -0
- package/lib/utilities/test-data.js +329 -0
- package/lib/utilities/test-data.js.map +1 -0
- package/lib/utilities/utilities.js +1405 -0
- package/lib/utilities/utilities.js.map +1 -0
- package/lib/utilities/vbc-utils.js +27 -0
- package/lib/utilities/vbc-utils.js.map +1 -0
- package/lib-commonjs/AreaChart.js +6 -0
- package/lib-commonjs/AreaChart.js.map +1 -0
- package/lib-commonjs/CartesianChart.js +6 -0
- package/lib-commonjs/CartesianChart.js.map +1 -0
- package/lib-commonjs/DeclarativeChart.js +6 -0
- package/lib-commonjs/DeclarativeChart.js.map +1 -0
- package/lib-commonjs/DonutChart.js +6 -0
- package/lib-commonjs/DonutChart.js.map +1 -0
- package/lib-commonjs/GaugeChart.js +6 -0
- package/lib-commonjs/GaugeChart.js.map +1 -0
- package/lib-commonjs/GroupedVerticalBarChart.js +6 -0
- package/lib-commonjs/GroupedVerticalBarChart.js.map +1 -0
- package/lib-commonjs/HeatMapChart.js +6 -0
- package/lib-commonjs/HeatMapChart.js.map +1 -0
- package/lib-commonjs/HorizontalBarChart.js +6 -0
- package/lib-commonjs/HorizontalBarChart.js.map +1 -0
- package/lib-commonjs/HorizontalBarChartWithAxis.js +6 -0
- package/lib-commonjs/HorizontalBarChartWithAxis.js.map +1 -0
- package/lib-commonjs/Legends.js +6 -0
- package/lib-commonjs/Legends.js.map +1 -0
- package/lib-commonjs/LineChart.js +6 -0
- package/lib-commonjs/LineChart.js.map +1 -0
- package/lib-commonjs/Popover.js +6 -0
- package/lib-commonjs/Popover.js.map +1 -0
- package/lib-commonjs/ResponsiveContainer.js +6 -0
- package/lib-commonjs/ResponsiveContainer.js.map +1 -0
- package/lib-commonjs/SankeyChart.js +6 -0
- package/lib-commonjs/SankeyChart.js.map +1 -0
- package/lib-commonjs/ScatterChart.js +6 -0
- package/lib-commonjs/ScatterChart.js.map +1 -0
- package/lib-commonjs/Sparkline.js +6 -0
- package/lib-commonjs/Sparkline.js.map +1 -0
- package/lib-commonjs/VerticalBarChart.js +6 -0
- package/lib-commonjs/VerticalBarChart.js.map +1 -0
- package/lib-commonjs/VerticalStackedBarChart.js +6 -0
- package/lib-commonjs/VerticalStackedBarChart.js.map +1 -0
- package/lib-commonjs/components/AreaChart/AreaChart.js +781 -0
- package/lib-commonjs/components/AreaChart/AreaChart.js.map +1 -0
- package/lib-commonjs/components/AreaChart/AreaChart.types.js +7 -0
- package/lib-commonjs/components/AreaChart/AreaChart.types.js.map +1 -0
- package/lib-commonjs/components/AreaChart/index.js +8 -0
- package/lib-commonjs/components/AreaChart/index.js.map +1 -0
- package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.js +104 -0
- package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.js.map +1 -0
- package/lib-commonjs/components/CommonComponents/CartesianChart.js +484 -0
- package/lib-commonjs/components/CommonComponents/CartesianChart.js.map +1 -0
- package/lib-commonjs/components/CommonComponents/CartesianChart.types.js +6 -0
- package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -0
- package/lib-commonjs/components/CommonComponents/ChartPopover.js +197 -0
- package/lib-commonjs/components/CommonComponents/ChartPopover.js.map +1 -0
- package/lib-commonjs/components/CommonComponents/ChartPopover.types.js +4 -0
- package/lib-commonjs/components/CommonComponents/ChartPopover.types.js.map +1 -0
- package/lib-commonjs/components/CommonComponents/index.js +9 -0
- package/lib-commonjs/components/CommonComponents/index.js.map +1 -0
- package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.js +356 -0
- package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.js.map +1 -0
- package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.js +261 -0
- package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.js.map +1 -0
- package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +205 -0
- package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +1 -0
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +859 -0
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -0
- package/lib-commonjs/components/DeclarativeChart/imageExporter.js +231 -0
- package/lib-commonjs/components/DeclarativeChart/imageExporter.js.map +1 -0
- package/lib-commonjs/components/DeclarativeChart/index.js +6 -0
- package/lib-commonjs/components/DeclarativeChart/index.js.map +1 -0
- package/lib-commonjs/components/DonutChart/Arc/Arc.js +117 -0
- package/lib-commonjs/components/DonutChart/Arc/Arc.js.map +1 -0
- package/lib-commonjs/components/DonutChart/Arc/Arc.types.js +4 -0
- package/lib-commonjs/components/DonutChart/Arc/Arc.types.js.map +1 -0
- package/lib-commonjs/components/DonutChart/Arc/index.js +7 -0
- package/lib-commonjs/components/DonutChart/Arc/index.js.map +1 -0
- package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.js +83 -0
- package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.js.map +1 -0
- package/lib-commonjs/components/DonutChart/DonutChart.js +298 -0
- package/lib-commonjs/components/DonutChart/DonutChart.js.map +1 -0
- package/lib-commonjs/components/DonutChart/DonutChart.types.js +6 -0
- package/lib-commonjs/components/DonutChart/DonutChart.types.js.map +1 -0
- package/lib-commonjs/components/DonutChart/Pie/Pie.js +79 -0
- package/lib-commonjs/components/DonutChart/Pie/Pie.js.map +1 -0
- package/lib-commonjs/components/DonutChart/Pie/Pie.types.js +4 -0
- package/lib-commonjs/components/DonutChart/Pie/Pie.types.js.map +1 -0
- package/lib-commonjs/components/DonutChart/Pie/index.js +7 -0
- package/lib-commonjs/components/DonutChart/Pie/index.js.map +1 -0
- package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.js +61 -0
- package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.js.map +1 -0
- package/lib-commonjs/components/DonutChart/index.js +8 -0
- package/lib-commonjs/components/DonutChart/index.js.map +1 -0
- package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.js +82 -0
- package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.js.map +1 -0
- package/lib-commonjs/components/GaugeChart/GaugeChart.js +621 -0
- package/lib-commonjs/components/GaugeChart/GaugeChart.js.map +1 -0
- package/lib-commonjs/components/GaugeChart/GaugeChart.types.js +7 -0
- package/lib-commonjs/components/GaugeChart/GaugeChart.types.js.map +1 -0
- package/lib-commonjs/components/GaugeChart/index.js +8 -0
- package/lib-commonjs/components/GaugeChart/index.js.map +1 -0
- package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.js +252 -0
- package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.js.map +1 -0
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +507 -0
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -0
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js +7 -0
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -0
- package/lib-commonjs/components/GroupedVerticalBarChart/index.js +8 -0
- package/lib-commonjs/components/GroupedVerticalBarChart/index.js.map +1 -0
- package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.js +139 -0
- package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.js.map +1 -0
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.js +599 -0
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.js.map +1 -0
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.types.js +7 -0
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.types.js.map +1 -0
- package/lib-commonjs/components/HeatMapChart/index.js +8 -0
- package/lib-commonjs/components/HeatMapChart/index.js.map +1 -0
- package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.js +68 -0
- package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.js.map +1 -0
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js +408 -0
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -0
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.js +17 -0
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -0
- package/lib-commonjs/components/HorizontalBarChart/index.js +8 -0
- package/lib-commonjs/components/HorizontalBarChart/index.js.map +1 -0
- package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js +251 -0
- package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js.map +1 -0
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js +580 -0
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -0
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js +7 -0
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +1 -0
- package/lib-commonjs/components/HorizontalBarChartWithAxis/index.js +8 -0
- package/lib-commonjs/components/HorizontalBarChartWithAxis/index.js.map +1 -0
- package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.js +116 -0
- package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.js.map +1 -0
- package/lib-commonjs/components/Legends/Legends.js +313 -0
- package/lib-commonjs/components/Legends/Legends.js.map +1 -0
- package/lib-commonjs/components/Legends/Legends.types.js +6 -0
- package/lib-commonjs/components/Legends/Legends.types.js.map +1 -0
- package/lib-commonjs/components/Legends/OverflowMenu.js +36 -0
- package/lib-commonjs/components/Legends/OverflowMenu.js.map +1 -0
- package/lib-commonjs/components/Legends/index.js +8 -0
- package/lib-commonjs/components/Legends/index.js.map +1 -0
- package/lib-commonjs/components/Legends/shape.js +46 -0
- package/lib-commonjs/components/Legends/shape.js.map +1 -0
- package/lib-commonjs/components/Legends/useLegendsStyles.styles.js +304 -0
- package/lib-commonjs/components/Legends/useLegendsStyles.styles.js.map +1 -0
- package/lib-commonjs/components/LineChart/LineChart.js +1040 -0
- package/lib-commonjs/components/LineChart/LineChart.js.map +1 -0
- package/lib-commonjs/components/LineChart/LineChart.types.js +6 -0
- package/lib-commonjs/components/LineChart/LineChart.types.js.map +1 -0
- package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js +129 -0
- package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -0
- package/lib-commonjs/components/LineChart/eventAnnotation/LabelLink.js +68 -0
- package/lib-commonjs/components/LineChart/eventAnnotation/LabelLink.js.map +1 -0
- package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js +51 -0
- package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js.map +1 -0
- package/lib-commonjs/components/LineChart/index.js +9 -0
- package/lib-commonjs/components/LineChart/index.js.map +1 -0
- package/lib-commonjs/components/LineChart/useLineChartStyles.styles.js +96 -0
- package/lib-commonjs/components/LineChart/useLineChartStyles.styles.js.map +1 -0
- package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.js +76 -0
- package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.js.map +1 -0
- package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.types.js +6 -0
- package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.types.js.map +1 -0
- package/lib-commonjs/components/ResponsiveContainer/index.js +6 -0
- package/lib-commonjs/components/ResponsiveContainer/index.js.map +1 -0
- package/lib-commonjs/components/ResponsiveContainer/useResponsiveContainerStyles.styles.js +47 -0
- package/lib-commonjs/components/ResponsiveContainer/useResponsiveContainerStyles.styles.js.map +1 -0
- package/lib-commonjs/components/SankeyChart/SankeyChart.js +1038 -0
- package/lib-commonjs/components/SankeyChart/SankeyChart.js.map +1 -0
- package/lib-commonjs/components/SankeyChart/SankeyChart.types.js +6 -0
- package/lib-commonjs/components/SankeyChart/SankeyChart.types.js.map +1 -0
- package/lib-commonjs/components/SankeyChart/index.js +8 -0
- package/lib-commonjs/components/SankeyChart/index.js.map +1 -0
- package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.js +179 -0
- package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.js.map +1 -0
- package/lib-commonjs/components/ScatterChart/ScatterChart.js +471 -0
- package/lib-commonjs/components/ScatterChart/ScatterChart.js.map +1 -0
- package/lib-commonjs/components/ScatterChart/ScatterChart.types.js +7 -0
- package/lib-commonjs/components/ScatterChart/ScatterChart.types.js.map +1 -0
- package/lib-commonjs/components/ScatterChart/index.js +8 -0
- package/lib-commonjs/components/ScatterChart/index.js.map +1 -0
- package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.js +96 -0
- package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.js.map +1 -0
- package/lib-commonjs/components/Sparkline/Sparkline.js +125 -0
- package/lib-commonjs/components/Sparkline/Sparkline.js.map +1 -0
- package/lib-commonjs/components/Sparkline/Sparkline.types.js +7 -0
- package/lib-commonjs/components/Sparkline/Sparkline.types.js.map +1 -0
- package/lib-commonjs/components/Sparkline/index.js +8 -0
- package/lib-commonjs/components/Sparkline/index.js.map +1 -0
- package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.js +77 -0
- package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.js.map +1 -0
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js +928 -0
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js.map +1 -0
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.js +7 -0
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -0
- package/lib-commonjs/components/VerticalBarChart/index.js +8 -0
- package/lib-commonjs/components/VerticalBarChart/index.js.map +1 -0
- package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.js +117 -0
- package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.js.map +1 -0
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js +915 -0
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -0
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js +6 -0
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -0
- package/lib-commonjs/components/VerticalStackedBarChart/index.js +8 -0
- package/lib-commonjs/components/VerticalStackedBarChart/index.js.map +1 -0
- package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.js +120 -0
- package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.js.map +1 -0
- package/lib-commonjs/index.js +25 -0
- package/lib-commonjs/index.js.map +1 -0
- package/lib-commonjs/types/DataPoint.js +4 -0
- package/lib-commonjs/types/DataPoint.js.map +1 -0
- package/lib-commonjs/types/EventAnnotation.js +6 -0
- package/lib-commonjs/types/EventAnnotation.js.map +1 -0
- package/lib-commonjs/types/LegendDataItem.js +4 -0
- package/lib-commonjs/types/LegendDataItem.js.map +1 -0
- package/lib-commonjs/types/index.js +7 -0
- package/lib-commonjs/types/index.js.map +1 -0
- package/lib-commonjs/utilities/FocusableTooltipText.js +75 -0
- package/lib-commonjs/utilities/FocusableTooltipText.js.map +1 -0
- package/lib-commonjs/utilities/KeyCodes.js +18 -0
- package/lib-commonjs/utilities/KeyCodes.js.map +1 -0
- package/lib-commonjs/utilities/SVGTooltipText.js +193 -0
- package/lib-commonjs/utilities/SVGTooltipText.js.map +1 -0
- package/lib-commonjs/utilities/async-utils.js +382 -0
- package/lib-commonjs/utilities/async-utils.js.map +1 -0
- package/lib-commonjs/utilities/colors.js +293 -0
- package/lib-commonjs/utilities/colors.js.map +1 -0
- package/lib-commonjs/utilities/getWindow.js +28 -0
- package/lib-commonjs/utilities/getWindow.js.map +1 -0
- package/lib-commonjs/utilities/index.js +8 -0
- package/lib-commonjs/utilities/index.js.map +1 -0
- package/lib-commonjs/utilities/locale-util.js +25 -0
- package/lib-commonjs/utilities/locale-util.js.map +1 -0
- package/lib-commonjs/utilities/overflow-utils.js +36 -0
- package/lib-commonjs/utilities/overflow-utils.js.map +1 -0
- package/lib-commonjs/utilities/string.js +29 -0
- package/lib-commonjs/utilities/string.js.map +1 -0
- package/lib-commonjs/utilities/test-data.js +383 -0
- package/lib-commonjs/utilities/test-data.js.map +1 -0
- package/lib-commonjs/utilities/utilities.js +1371 -0
- package/lib-commonjs/utilities/utilities.js.map +1 -0
- package/lib-commonjs/utilities/vbc-utils.js +45 -0
- package/lib-commonjs/utilities/vbc-utils.js.map +1 -0
- package/package.json +13 -13
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,3337 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
|
|
3
|
+
import { CurveFactory } from 'd3-shape';
|
|
4
|
+
import * as React_2 from 'react';
|
|
5
|
+
import { RefObject } from 'react';
|
|
6
|
+
import { SankeyGraph } from 'd3-sankey';
|
|
7
|
+
import { SankeyLayout } from 'd3-sankey';
|
|
8
|
+
import { SankeyLink } from 'd3-sankey';
|
|
9
|
+
import { SankeyNode } from 'd3-sankey';
|
|
10
|
+
import { SVGProps } from 'react';
|
|
11
|
+
import { TimeLocaleDefinition } from 'd3-time-format';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* {@docCategory ChartProps}
|
|
15
|
+
*/
|
|
16
|
+
export declare interface AccessibilityProps {
|
|
17
|
+
/**
|
|
18
|
+
* Accessibility aria-label
|
|
19
|
+
*/
|
|
20
|
+
ariaLabel?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Accessibility aria-labelledBy
|
|
23
|
+
*/
|
|
24
|
+
ariaLabelledBy?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Accessibility aria-describedBy
|
|
27
|
+
*/
|
|
28
|
+
ariaDescribedBy?: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* This is used to introduce dynamic padding for cases where the number of nodes in a column is huge
|
|
33
|
+
* so that we maintain a node to space ratio for such columns as if we fail to do so the
|
|
34
|
+
* chart is devoid of nodes and only shows links.
|
|
35
|
+
*/
|
|
36
|
+
export declare function adjustPadding(sankey: SankeyLayoutGenerator, height: number, nodesInColumn: NodesInColumns): void;
|
|
37
|
+
|
|
38
|
+
export declare const ARC_PADDING = 2;
|
|
39
|
+
|
|
40
|
+
export declare const AreaChart: React_2.FunctionComponent<AreaChartProps>;
|
|
41
|
+
|
|
42
|
+
export declare interface AreaChartAreaPoint {
|
|
43
|
+
xVal: string | number;
|
|
44
|
+
values: AreaChartDataSetPoint;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export declare interface AreaChartDataSetPoint {
|
|
48
|
+
[key: string]: number | string | number[];
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Area Chart properties.
|
|
53
|
+
* {@docCategory AreaChart}
|
|
54
|
+
*/
|
|
55
|
+
export declare interface AreaChartProps extends CartesianChartProps {
|
|
56
|
+
/**
|
|
57
|
+
* Data to render in the chart.
|
|
58
|
+
*/
|
|
59
|
+
data: ChartProps;
|
|
60
|
+
/**
|
|
61
|
+
* Call to provide customized styling that will layer on top of the variant rules.
|
|
62
|
+
*/
|
|
63
|
+
styles?: CartesianChartStyles;
|
|
64
|
+
/**
|
|
65
|
+
* Define a custom callout renderer for a data point
|
|
66
|
+
*/
|
|
67
|
+
onRenderCalloutPerDataPoint?: RenderFunction<CustomizedCalloutData>;
|
|
68
|
+
/**
|
|
69
|
+
* Define a custom callout renderer for a stack; default is to render per data point
|
|
70
|
+
*/
|
|
71
|
+
onRenderCalloutPerStack?: RenderFunction<CustomizedCalloutData>;
|
|
72
|
+
/**
|
|
73
|
+
* The prop used to define the culture to localized the numbers
|
|
74
|
+
*/
|
|
75
|
+
culture?: string;
|
|
76
|
+
/**
|
|
77
|
+
* @default false
|
|
78
|
+
* The prop used to enable the perf optimization
|
|
79
|
+
*/
|
|
80
|
+
enablePerfOptimization?: boolean;
|
|
81
|
+
optimizeLargeData?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* @default false
|
|
84
|
+
* The prop used to enable gradient fill color for the chart.
|
|
85
|
+
*/
|
|
86
|
+
enableGradient?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* @default tonexty
|
|
89
|
+
* The prop used to define the Y axis mode (tonexty or tozeroy)
|
|
90
|
+
*/
|
|
91
|
+
mode?: 'tozeroy' | 'tonexty';
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Area Chart style properties
|
|
96
|
+
* {@docCategory AreaChart}
|
|
97
|
+
*/
|
|
98
|
+
export declare interface AreaChartStyleProps extends CartesianChartStyleProps {
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Area Chart styles
|
|
103
|
+
* {@docCategory AreaChart}
|
|
104
|
+
*/
|
|
105
|
+
export declare interface AreaChartStyles extends CartesianChartStyles {
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* {@docCategory ChartData}
|
|
110
|
+
*/
|
|
111
|
+
declare interface BaseDataPoint {
|
|
112
|
+
/**
|
|
113
|
+
* Defines the function that is executed on clicking line
|
|
114
|
+
*/
|
|
115
|
+
onDataPointClick?: () => void;
|
|
116
|
+
/**
|
|
117
|
+
* Callout data for x axis
|
|
118
|
+
*/
|
|
119
|
+
xAxisCalloutData?: string;
|
|
120
|
+
/**
|
|
121
|
+
* Callout data for y axis
|
|
122
|
+
*/
|
|
123
|
+
yAxisCalloutData?: string | {
|
|
124
|
+
[id: string]: number;
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* Whether to hide callout data for the point.
|
|
128
|
+
*/
|
|
129
|
+
hideCallout?: boolean;
|
|
130
|
+
/**
|
|
131
|
+
* Accessibility data for callout
|
|
132
|
+
*/
|
|
133
|
+
callOutAccessibilityData?: AccessibilityProps;
|
|
134
|
+
/**
|
|
135
|
+
* X axis Accessibility data for callout
|
|
136
|
+
*/
|
|
137
|
+
xAxisCalloutAccessibilityData?: AccessibilityProps;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export declare interface Basestate {
|
|
141
|
+
_width?: number;
|
|
142
|
+
_height?: number;
|
|
143
|
+
activeLegend?: string;
|
|
144
|
+
color?: string;
|
|
145
|
+
dataForHoverCard?: number;
|
|
146
|
+
isCalloutVisible: boolean;
|
|
147
|
+
isLegendSelected?: boolean;
|
|
148
|
+
isLegendHovered?: boolean;
|
|
149
|
+
refSelected?: any;
|
|
150
|
+
YValueHover?: {
|
|
151
|
+
legend?: string;
|
|
152
|
+
y?: number;
|
|
153
|
+
color?: string;
|
|
154
|
+
}[];
|
|
155
|
+
hoverYValue?: string | number | null;
|
|
156
|
+
hoverXValue?: string | number | null;
|
|
157
|
+
xCalloutValue?: string;
|
|
158
|
+
yCalloutValue?: string;
|
|
159
|
+
lineColor?: string;
|
|
160
|
+
hoveredLineColor?: string;
|
|
161
|
+
selectedLegend?: string;
|
|
162
|
+
containerWidth?: number;
|
|
163
|
+
containerHeight?: number;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export declare const BREAKPOINTS: {
|
|
167
|
+
minRadius: number;
|
|
168
|
+
arcWidth: number;
|
|
169
|
+
fontSize: number;
|
|
170
|
+
}[];
|
|
171
|
+
|
|
172
|
+
export declare const calcNeedleRotation: (chartValue: number, minValue: number, maxValue: number) => number;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Cartesian Chart component
|
|
176
|
+
* {@docCategory CartesianChart}
|
|
177
|
+
*/
|
|
178
|
+
export declare const CartesianChart: React_2.FunctionComponent<ModifiedCartesianChartProps>;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Cartesian Chart properties
|
|
182
|
+
* {@docCategory CartesianChart}
|
|
183
|
+
*/
|
|
184
|
+
export declare interface CartesianChartProps {
|
|
185
|
+
/**
|
|
186
|
+
* Below height used for resizing of the chart
|
|
187
|
+
* Wrap chart in your container and send the updated height and width to these props.
|
|
188
|
+
* These values decide wheather chart re render or not. Please check examples for reference
|
|
189
|
+
*/
|
|
190
|
+
height?: number;
|
|
191
|
+
/**
|
|
192
|
+
* Below width used for resizing of the chart
|
|
193
|
+
* Wrap chart in your container and send the updated height and width to these props.
|
|
194
|
+
* These values decide wheather chart re render or not. Please check examples for reference
|
|
195
|
+
*/
|
|
196
|
+
width?: number;
|
|
197
|
+
/**
|
|
198
|
+
* this prop takes its parent as a HTML element to define the width and height of the chart
|
|
199
|
+
*/
|
|
200
|
+
parentRef?: HTMLElement | null;
|
|
201
|
+
/**
|
|
202
|
+
* Additional CSS class(es) to apply to the Chart.
|
|
203
|
+
*/
|
|
204
|
+
className?: string;
|
|
205
|
+
/**
|
|
206
|
+
* Margins for the chart
|
|
207
|
+
* @default `{ top: 20, bottom: 35, left: 40, right: 20 }`
|
|
208
|
+
* To avoid edge cuttings to the chart, we recommend you use default values or greater then default values
|
|
209
|
+
*/
|
|
210
|
+
margins?: Margins;
|
|
211
|
+
/** decides wether to show/hide legends
|
|
212
|
+
* @defaultvalue false
|
|
213
|
+
*/
|
|
214
|
+
hideLegend?: boolean;
|
|
215
|
+
/**
|
|
216
|
+
* Do not show tooltips in chart
|
|
217
|
+
* @default false
|
|
218
|
+
*/
|
|
219
|
+
hideTooltip?: boolean;
|
|
220
|
+
/**
|
|
221
|
+
* this prop takes values that you want the chart to render on x-axis
|
|
222
|
+
* This is a optional parameter if not specified D3 will decide which values appear on the x-axis for you
|
|
223
|
+
* Please look at https://github.com/d3/d3-scale for more information on how D3 decides what data to appear on the axis of chart
|
|
224
|
+
*/
|
|
225
|
+
tickValues?: number[] | Date[] | string[] | undefined;
|
|
226
|
+
/**
|
|
227
|
+
* the format for the data on x-axis. For date object this can be specified to your requirement. Eg: '%m/%d', '%d'
|
|
228
|
+
* Please look at https://github.com/d3/d3-time-format for all the formats supported for date axis
|
|
229
|
+
* Only applicable for date axis. For y-axis format use yAxisTickFormat prop.
|
|
230
|
+
*/
|
|
231
|
+
tickFormat?: string;
|
|
232
|
+
/**
|
|
233
|
+
* Width of line stroke
|
|
234
|
+
*/
|
|
235
|
+
strokeWidth?: number;
|
|
236
|
+
/**
|
|
237
|
+
* x Axis labels tick padding. This defines the gap between tick labels and tick lines.
|
|
238
|
+
* @default 10
|
|
239
|
+
*/
|
|
240
|
+
xAxisTickPadding?: number;
|
|
241
|
+
/**
|
|
242
|
+
* the format in for the data on y-axis. For data object this can be specified to your requirement.
|
|
243
|
+
* Eg: d3.format(".0%")(0.123),d3.format("+20")(42);
|
|
244
|
+
* Please look at https://github.com/d3/d3-format for all the formats supported
|
|
245
|
+
*/
|
|
246
|
+
yAxisTickFormat?: any;
|
|
247
|
+
/**
|
|
248
|
+
* Secondary y-scale options
|
|
249
|
+
* By default this is not defined, meaning there will be no secondary y-scale.
|
|
250
|
+
*/
|
|
251
|
+
secondaryYScaleOptions?: {
|
|
252
|
+
/** Minimum value (0 by default) */
|
|
253
|
+
yMinValue?: number;
|
|
254
|
+
/** Maximum value (100 by default) */
|
|
255
|
+
yMaxValue?: number;
|
|
256
|
+
};
|
|
257
|
+
/**
|
|
258
|
+
* minimum data value point in y-axis
|
|
259
|
+
*/
|
|
260
|
+
yMinValue?: number;
|
|
261
|
+
/**
|
|
262
|
+
* maximum data value point in y-axis
|
|
263
|
+
*/
|
|
264
|
+
yMaxValue?: number;
|
|
265
|
+
/**
|
|
266
|
+
* maximum data value point in x-axis
|
|
267
|
+
*/
|
|
268
|
+
xMaxValue?: number;
|
|
269
|
+
/**
|
|
270
|
+
* Number of ticks on the y-axis.
|
|
271
|
+
* Tick count should be factor of difference between (yMinValue, yMaxValue)?
|
|
272
|
+
* @default 4
|
|
273
|
+
*/
|
|
274
|
+
yAxisTickCount?: number;
|
|
275
|
+
/**
|
|
276
|
+
* defines the number of ticks on the x-axis. Tries to match the nearest interval satisfying the count.
|
|
277
|
+
* Does not work for string axis.
|
|
278
|
+
* @default 6
|
|
279
|
+
*/
|
|
280
|
+
xAxisTickCount?: number;
|
|
281
|
+
/**
|
|
282
|
+
* define the size of the tick lines on the x-axis
|
|
283
|
+
* @default 10
|
|
284
|
+
*/
|
|
285
|
+
xAxistickSize?: number;
|
|
286
|
+
/**
|
|
287
|
+
* defines the space between the tick line and the data label
|
|
288
|
+
* @default 10
|
|
289
|
+
*/
|
|
290
|
+
tickPadding?: number;
|
|
291
|
+
/**
|
|
292
|
+
* Url that the data-viz needs to redirect to upon clicking on it
|
|
293
|
+
*/
|
|
294
|
+
href?: string;
|
|
295
|
+
legendsOverflowText?: any;
|
|
296
|
+
/**
|
|
297
|
+
* Enable the legends to wrap lines if there is not enough space to show all legends on a single line
|
|
298
|
+
*/
|
|
299
|
+
enabledLegendsWrapLines?: boolean;
|
|
300
|
+
legendProps?: Partial<LegendsProps>;
|
|
301
|
+
/**
|
|
302
|
+
*@default false
|
|
303
|
+
*Used for to elipse x axis labes and show tooltip on x axis labels
|
|
304
|
+
*/
|
|
305
|
+
showXAxisLablesTooltip?: boolean;
|
|
306
|
+
/**
|
|
307
|
+
* @default 4
|
|
308
|
+
* Used for X axis labels
|
|
309
|
+
* While Giving showXAxisLablesTooltip prop, need to define after how many chars, we need to truncate the word.
|
|
310
|
+
*/
|
|
311
|
+
noOfCharsToTruncate?: number;
|
|
312
|
+
/**
|
|
313
|
+
* @default false
|
|
314
|
+
* Used to wrap x axis labels values (whole value)
|
|
315
|
+
*/
|
|
316
|
+
wrapXAxisLables?: boolean;
|
|
317
|
+
/**
|
|
318
|
+
* @default false
|
|
319
|
+
* Used to rotate x axis labels by 45 degrees
|
|
320
|
+
*/
|
|
321
|
+
rotateXAxisLables?: boolean;
|
|
322
|
+
/**
|
|
323
|
+
* The prop used to define the date time localization options
|
|
324
|
+
*/
|
|
325
|
+
dateLocalizeOptions?: Intl.DateTimeFormatOptions;
|
|
326
|
+
/**
|
|
327
|
+
* The prop used to define a custom locale for the date time format.
|
|
328
|
+
*/
|
|
329
|
+
timeFormatLocale?: TimeLocaleDefinition;
|
|
330
|
+
/**
|
|
331
|
+
* The prop used to define a custom datetime formatter for date axis.
|
|
332
|
+
*/
|
|
333
|
+
customDateTimeFormatter?: (dateTime: Date) => string;
|
|
334
|
+
/**
|
|
335
|
+
* Call to provide customized styling that will layer on top of the variant rules.
|
|
336
|
+
*/
|
|
337
|
+
styles?: CartesianChartStyles;
|
|
338
|
+
/**
|
|
339
|
+
* Callout customization props
|
|
340
|
+
*/
|
|
341
|
+
calloutProps?: Partial<ChartPopoverProps>;
|
|
342
|
+
/**
|
|
343
|
+
* props for the svg; use this to include aria-* or other attributes on the tag
|
|
344
|
+
*/
|
|
345
|
+
svgProps?: React_2.SVGProps<SVGSVGElement>;
|
|
346
|
+
/**
|
|
347
|
+
* Props related to reflow behavior of the chart
|
|
348
|
+
*/
|
|
349
|
+
reflowProps?: {
|
|
350
|
+
/**
|
|
351
|
+
* Determines the reflow behavior of the chart.
|
|
352
|
+
* When set to `'min-width'`, the chart will not shrink below a certain width and will enable scrolling if it overflows.
|
|
353
|
+
* @default 'none'
|
|
354
|
+
*/
|
|
355
|
+
mode: 'none' | 'min-width';
|
|
356
|
+
};
|
|
357
|
+
/**
|
|
358
|
+
* Prop to set the x axis title
|
|
359
|
+
* @default undefined
|
|
360
|
+
* Minimum bottom margin required for x axis title is 55px
|
|
361
|
+
*/
|
|
362
|
+
xAxisTitle?: string;
|
|
363
|
+
/**
|
|
364
|
+
* Prop to set the y axis title
|
|
365
|
+
* @default undefined
|
|
366
|
+
* Minimum left margin required for y axis title is 60px and for RTL is 40px
|
|
367
|
+
* Minimum right margin required for y axis title is 40px and for RTL is 60px
|
|
368
|
+
*/
|
|
369
|
+
yAxisTitle?: string;
|
|
370
|
+
/**
|
|
371
|
+
* Prop to set the secondary y axis title
|
|
372
|
+
* @default undefined
|
|
373
|
+
* If RTL is enabled, minimum left and right margins required for secondary y axis title is 60px
|
|
374
|
+
*/
|
|
375
|
+
secondaryYAxistitle?: string;
|
|
376
|
+
/**
|
|
377
|
+
* Whether to use UTC time for axis scale, ticks, and the time display in callouts.
|
|
378
|
+
* When set to `true`, time is displayed equally, regardless of the user's timezone settings.
|
|
379
|
+
* @default true
|
|
380
|
+
*/
|
|
381
|
+
useUTC?: string | boolean;
|
|
382
|
+
/**
|
|
383
|
+
* @default false
|
|
384
|
+
* The prop used to decide rounded ticks on y axis
|
|
385
|
+
*/
|
|
386
|
+
roundedTicks?: boolean;
|
|
387
|
+
/**
|
|
388
|
+
* Determines whether overlapping x-axis tick labels should be hidden.
|
|
389
|
+
* @default false
|
|
390
|
+
*/
|
|
391
|
+
hideTickOverlap?: boolean;
|
|
392
|
+
/**
|
|
393
|
+
* Define a custom callout props override
|
|
394
|
+
*/
|
|
395
|
+
calloutPropsPerDataPoint?: (dataPointCalloutProps: any) => ChartPopoverProps;
|
|
396
|
+
/**
|
|
397
|
+
* Optional callback to access the Chart interface. Use this instead of ref for accessing
|
|
398
|
+
* the public methods and properties of the component.
|
|
399
|
+
*/
|
|
400
|
+
componentRef?: React_2.RefObject<Chart>;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* Cartesian Chart style properties
|
|
405
|
+
* {@docCategory CartesianChart}
|
|
406
|
+
*/
|
|
407
|
+
export declare interface CartesianChartStyleProps {
|
|
408
|
+
/**
|
|
409
|
+
* Additional CSS class(es) to apply to the Chart.
|
|
410
|
+
*/
|
|
411
|
+
className?: string;
|
|
412
|
+
/**
|
|
413
|
+
* Width of the chart.
|
|
414
|
+
*/
|
|
415
|
+
width?: number;
|
|
416
|
+
/**
|
|
417
|
+
* Height of the chart.
|
|
418
|
+
*/
|
|
419
|
+
height?: number;
|
|
420
|
+
/**
|
|
421
|
+
* Color of the chart.
|
|
422
|
+
*/
|
|
423
|
+
color?: string;
|
|
424
|
+
/**
|
|
425
|
+
* Link to redirect if click action for graph
|
|
426
|
+
*/
|
|
427
|
+
href?: string;
|
|
428
|
+
/**
|
|
429
|
+
* prop to check if the chart is selected or hovered upon to determine opacity
|
|
430
|
+
*/
|
|
431
|
+
shouldHighlight?: boolean;
|
|
432
|
+
/**
|
|
433
|
+
* prop to check if the Page is in Rtl
|
|
434
|
+
*/
|
|
435
|
+
useRtl?: boolean;
|
|
436
|
+
/**
|
|
437
|
+
* color of the line
|
|
438
|
+
*/
|
|
439
|
+
lineColor?: string;
|
|
440
|
+
/**
|
|
441
|
+
* boolean flag which determines if shape is drawn in callout
|
|
442
|
+
*/
|
|
443
|
+
toDrawShape?: boolean;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* Cartesian Chart styles
|
|
448
|
+
* {@docCategory CartesianChart}
|
|
449
|
+
*/
|
|
450
|
+
export declare interface CartesianChartStyles {
|
|
451
|
+
/**
|
|
452
|
+
* Style for the root element.
|
|
453
|
+
*/
|
|
454
|
+
root?: string;
|
|
455
|
+
/**
|
|
456
|
+
* Style for the element containing the x-axis.
|
|
457
|
+
*/
|
|
458
|
+
xAxis?: string;
|
|
459
|
+
/**
|
|
460
|
+
* Style for the element containing the y-axis.
|
|
461
|
+
*/
|
|
462
|
+
yAxis?: string;
|
|
463
|
+
/**
|
|
464
|
+
* Style for legend container
|
|
465
|
+
*/
|
|
466
|
+
legendContainer?: string;
|
|
467
|
+
/**
|
|
468
|
+
* line hover box css
|
|
469
|
+
*/
|
|
470
|
+
hover?: string;
|
|
471
|
+
/**
|
|
472
|
+
* styles for callout root-content
|
|
473
|
+
*/
|
|
474
|
+
calloutContentRoot?: string;
|
|
475
|
+
/**
|
|
476
|
+
* styles for callout x-content
|
|
477
|
+
*/
|
|
478
|
+
calloutContentX?: string;
|
|
479
|
+
/**
|
|
480
|
+
* styles for callout y-content
|
|
481
|
+
*/
|
|
482
|
+
calloutContentY?: string;
|
|
483
|
+
/**
|
|
484
|
+
* styles for description message
|
|
485
|
+
*/
|
|
486
|
+
descriptionMessage?: string;
|
|
487
|
+
/**
|
|
488
|
+
* styles for callout Date time container
|
|
489
|
+
*/
|
|
490
|
+
calloutDateTimeContainer?: string;
|
|
491
|
+
/**
|
|
492
|
+
* styles for callout info container
|
|
493
|
+
*/
|
|
494
|
+
calloutInfoContainer?: string;
|
|
495
|
+
/**
|
|
496
|
+
* styles for callout block container
|
|
497
|
+
*/
|
|
498
|
+
calloutBlockContainer?: string;
|
|
499
|
+
/**
|
|
500
|
+
* Styles for callout block container when toDrawShape is false
|
|
501
|
+
*/
|
|
502
|
+
calloutBlockContainertoDrawShapefalse?: string;
|
|
503
|
+
/**
|
|
504
|
+
* Styles for callout block container when toDrawShape is true
|
|
505
|
+
*/
|
|
506
|
+
calloutBlockContainertoDrawShapetrue?: string;
|
|
507
|
+
/**
|
|
508
|
+
* styles for callout legend text
|
|
509
|
+
*/
|
|
510
|
+
calloutlegendText?: string;
|
|
511
|
+
/**
|
|
512
|
+
* styles for tooltip
|
|
513
|
+
*/
|
|
514
|
+
tooltip?: string;
|
|
515
|
+
/**
|
|
516
|
+
* styles for tooltip
|
|
517
|
+
*/
|
|
518
|
+
axisTitle?: string;
|
|
519
|
+
/**
|
|
520
|
+
* Style for the chart Title.
|
|
521
|
+
*/
|
|
522
|
+
chartTitle?: string;
|
|
523
|
+
/**
|
|
524
|
+
* Style to change the opacity of bars in dataviz when we hover on a single bar or legends
|
|
525
|
+
*/
|
|
526
|
+
opacityChangeOnHover?: string;
|
|
527
|
+
/**
|
|
528
|
+
* styles for the shape object in the callout
|
|
529
|
+
*/
|
|
530
|
+
shapeStyles?: string;
|
|
531
|
+
/**
|
|
532
|
+
* Styles for the chart wrapper div
|
|
533
|
+
*/
|
|
534
|
+
chartWrapper?: string;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* {@docCategory Chart}
|
|
539
|
+
*/
|
|
540
|
+
export declare interface Chart {
|
|
541
|
+
chartContainer: HTMLElement | null;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* Chart data mode for chart data text
|
|
546
|
+
* default: show the datapoint.x value
|
|
547
|
+
* fraction: show the fraction of datapoint.x/datapoint.y
|
|
548
|
+
* percentage: show the percentage of (datapoint.x/datapoint.y)%
|
|
549
|
+
* {@docCategory HorizontalBarChart}
|
|
550
|
+
*/
|
|
551
|
+
export declare type ChartDataMode = 'default' | 'fraction' | 'percentage';
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* {@docCategory ChartData}
|
|
555
|
+
*/
|
|
556
|
+
export declare interface ChartDataPoint {
|
|
557
|
+
/**
|
|
558
|
+
* Legend text for the datapoint in the chart
|
|
559
|
+
*/
|
|
560
|
+
legend?: string;
|
|
561
|
+
/**
|
|
562
|
+
* data the datapoint in the chart
|
|
563
|
+
*/
|
|
564
|
+
data?: number;
|
|
565
|
+
/**
|
|
566
|
+
* data the datapoint in the chart
|
|
567
|
+
*/
|
|
568
|
+
horizontalBarChartdata?: HorizontalDataPoint;
|
|
569
|
+
/**
|
|
570
|
+
* onClick action for each datapoint in the chart
|
|
571
|
+
*/
|
|
572
|
+
onClick?: VoidFunction;
|
|
573
|
+
/**
|
|
574
|
+
* Color for the legend in the chart. If not provided, it will fallback on the default color palette.
|
|
575
|
+
*/
|
|
576
|
+
color?: string;
|
|
577
|
+
/**
|
|
578
|
+
* placeholder data point
|
|
579
|
+
*/
|
|
580
|
+
placeHolder?: boolean;
|
|
581
|
+
/**
|
|
582
|
+
* Callout data for x axis
|
|
583
|
+
* This is an optional prop, If haven;t given legend will take
|
|
584
|
+
*/
|
|
585
|
+
xAxisCalloutData?: string;
|
|
586
|
+
/**
|
|
587
|
+
* Callout data for y axis
|
|
588
|
+
* This is an optional prop, If haven't given data will take
|
|
589
|
+
*/
|
|
590
|
+
yAxisCalloutData?: string;
|
|
591
|
+
/**
|
|
592
|
+
* Accessibility data for callout
|
|
593
|
+
*/
|
|
594
|
+
callOutAccessibilityData?: AccessibilityProps;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
export declare const ChartPopover: React_2.FunctionComponent<ChartPopoverProps>;
|
|
598
|
+
|
|
599
|
+
export declare interface ChartPopoverProps {
|
|
600
|
+
clickPosition?: {
|
|
601
|
+
x: number;
|
|
602
|
+
y: number;
|
|
603
|
+
};
|
|
604
|
+
isPopoverOpen?: boolean;
|
|
605
|
+
xCalloutValue?: string;
|
|
606
|
+
legend?: string | number | Date;
|
|
607
|
+
yCalloutValue?: string;
|
|
608
|
+
YValue?: string | number | Date;
|
|
609
|
+
XValue?: string;
|
|
610
|
+
color?: string;
|
|
611
|
+
culture?: string;
|
|
612
|
+
customCallout?: {
|
|
613
|
+
customizedCallout?: JSX.Element;
|
|
614
|
+
customCalloutProps?: ChartPopoverProps;
|
|
615
|
+
};
|
|
616
|
+
isCalloutForStack?: boolean;
|
|
617
|
+
xAxisCalloutAccessibilityData?: {
|
|
618
|
+
ariaLabel?: string;
|
|
619
|
+
data?: string;
|
|
620
|
+
};
|
|
621
|
+
hoverXValue?: string | number;
|
|
622
|
+
YValueHover?: YValueHover[];
|
|
623
|
+
descriptionMessage?: string;
|
|
624
|
+
ratio?: [number, number];
|
|
625
|
+
isCartesian?: boolean;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
/**
|
|
629
|
+
* {@docCategory ChartProps}
|
|
630
|
+
*/
|
|
631
|
+
export declare interface ChartProps {
|
|
632
|
+
/**
|
|
633
|
+
* chart title for the chart
|
|
634
|
+
*/
|
|
635
|
+
chartTitle?: string;
|
|
636
|
+
/**
|
|
637
|
+
* Accessibility data for chart title
|
|
638
|
+
*/
|
|
639
|
+
chartTitleAccessibilityData?: AccessibilityProps;
|
|
640
|
+
/**
|
|
641
|
+
* data for the points in the chart
|
|
642
|
+
*/
|
|
643
|
+
chartData?: ChartDataPoint[];
|
|
644
|
+
/**
|
|
645
|
+
* Accessibility data for chart data
|
|
646
|
+
*/
|
|
647
|
+
chartDataAccessibilityData?: AccessibilityProps;
|
|
648
|
+
/**
|
|
649
|
+
* data for the points in the line chart
|
|
650
|
+
*/
|
|
651
|
+
lineChartData?: LineChartPoints[];
|
|
652
|
+
/**
|
|
653
|
+
* data for the points in the line chart
|
|
654
|
+
*/
|
|
655
|
+
SankeyChartData?: SankeyChartData;
|
|
656
|
+
/**
|
|
657
|
+
* data for the points in the line chart
|
|
658
|
+
*/
|
|
659
|
+
pointOptions?: SVGProps<SVGCircleElement>;
|
|
660
|
+
/**
|
|
661
|
+
* data for the dotted line on hovering the point
|
|
662
|
+
*/
|
|
663
|
+
pointLineOptions?: SVGProps<SVGLineElement>;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
declare enum ChartTypes {
|
|
667
|
+
AreaChart = 0,
|
|
668
|
+
LineChart = 1,
|
|
669
|
+
VerticalBarChart = 2,
|
|
670
|
+
VerticalStackedBarChart = 3,
|
|
671
|
+
GroupedVerticalBarChart = 4,
|
|
672
|
+
HeatMapChart = 5,
|
|
673
|
+
HorizontalBarChartWithAxis = 6,
|
|
674
|
+
ScatterChart = 7
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
export declare interface ChildProps {
|
|
678
|
+
xScale?: any;
|
|
679
|
+
yScale?: any;
|
|
680
|
+
yScaleSecondary?: any;
|
|
681
|
+
containerHeight?: number;
|
|
682
|
+
containerWidth?: number;
|
|
683
|
+
optimizeLargeData?: boolean;
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* {@docCategory LineChart}
|
|
688
|
+
*/
|
|
689
|
+
export declare interface ColorFillBarData {
|
|
690
|
+
startX: number | Date;
|
|
691
|
+
endX: number | Date;
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
/**
|
|
695
|
+
* {@docCategory LineChart}
|
|
696
|
+
*/
|
|
697
|
+
export declare interface ColorFillBarsProps {
|
|
698
|
+
legend: string;
|
|
699
|
+
color: string;
|
|
700
|
+
data: ColorFillBarData[];
|
|
701
|
+
applyPattern?: boolean;
|
|
702
|
+
onLegendClick?: (selectedLegend: string | string[] | null) => void | undefined;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
/**
|
|
706
|
+
* Used for custom callout data interface. As Area chart callout data will be prepared from given props.data,
|
|
707
|
+
* Those required data passing to onRenderCalloutPerDataPoint and onRenderCalloutPerStack.
|
|
708
|
+
* {@docCategory ChartData}
|
|
709
|
+
*/
|
|
710
|
+
export declare interface CustomizedCalloutData {
|
|
711
|
+
x: number | string | Date;
|
|
712
|
+
values: CustomizedCalloutDataPoint[];
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* {@docCategory ChartData}
|
|
717
|
+
*/
|
|
718
|
+
export declare interface CustomizedCalloutDataPoint {
|
|
719
|
+
legend: string;
|
|
720
|
+
y: number;
|
|
721
|
+
color: string;
|
|
722
|
+
xAxisCalloutData?: string;
|
|
723
|
+
yAxisCalloutData?: string | {
|
|
724
|
+
[id: string]: number;
|
|
725
|
+
};
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
declare enum CustomPoints {
|
|
729
|
+
dottedLine = 0
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
/**
|
|
733
|
+
* {@docCategory ChartData}
|
|
734
|
+
*/
|
|
735
|
+
export declare interface DataPoint {
|
|
736
|
+
/**
|
|
737
|
+
* Independent value of the data point, rendered along the x-axis.
|
|
738
|
+
* If x is a number, then each y-coordinate is plotted at its x-coordinate.
|
|
739
|
+
* If x is a string, then the data is evenly spaced along the x-axis.
|
|
740
|
+
*/
|
|
741
|
+
x: number | string;
|
|
742
|
+
/**
|
|
743
|
+
* Dependent value of the data point, rendered along the y-axis.
|
|
744
|
+
*/
|
|
745
|
+
y: number;
|
|
746
|
+
/**
|
|
747
|
+
* onClick action for each datapoint in the chart
|
|
748
|
+
*/
|
|
749
|
+
onClick?: VoidFunction;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
export declare const DataVizPalette: {
|
|
753
|
+
color1: string;
|
|
754
|
+
color2: string;
|
|
755
|
+
color3: string;
|
|
756
|
+
color4: string;
|
|
757
|
+
color5: string;
|
|
758
|
+
color6: string;
|
|
759
|
+
color7: string;
|
|
760
|
+
color8: string;
|
|
761
|
+
color9: string;
|
|
762
|
+
color10: string;
|
|
763
|
+
color11: string;
|
|
764
|
+
color12: string;
|
|
765
|
+
color13: string;
|
|
766
|
+
color14: string;
|
|
767
|
+
color15: string;
|
|
768
|
+
color16: string;
|
|
769
|
+
color17: string;
|
|
770
|
+
color18: string;
|
|
771
|
+
color19: string;
|
|
772
|
+
color20: string;
|
|
773
|
+
color21: string;
|
|
774
|
+
color22: string;
|
|
775
|
+
color23: string;
|
|
776
|
+
color24: string;
|
|
777
|
+
color25: string;
|
|
778
|
+
color26: string;
|
|
779
|
+
color27: string;
|
|
780
|
+
color28: string;
|
|
781
|
+
color29: string;
|
|
782
|
+
color30: string;
|
|
783
|
+
color31: string;
|
|
784
|
+
color32: string;
|
|
785
|
+
color33: string;
|
|
786
|
+
color34: string;
|
|
787
|
+
color35: string;
|
|
788
|
+
color36: string;
|
|
789
|
+
color37: string;
|
|
790
|
+
color38: string;
|
|
791
|
+
color39: string;
|
|
792
|
+
color40: string;
|
|
793
|
+
info: string;
|
|
794
|
+
disabled: string;
|
|
795
|
+
highError: string;
|
|
796
|
+
error: string;
|
|
797
|
+
warning: string;
|
|
798
|
+
success: string;
|
|
799
|
+
highSuccess: string;
|
|
800
|
+
};
|
|
801
|
+
|
|
802
|
+
/**
|
|
803
|
+
* DeclarativeChart component.
|
|
804
|
+
* {@docCategory DeclarativeChart}
|
|
805
|
+
*/
|
|
806
|
+
export declare const DeclarativeChart: React_2.FunctionComponent<DeclarativeChartProps>;
|
|
807
|
+
|
|
808
|
+
/**
|
|
809
|
+
* DeclarativeChart props.
|
|
810
|
+
* {@docCategory DeclarativeChart}
|
|
811
|
+
*/
|
|
812
|
+
export declare interface DeclarativeChartProps extends React_2.RefAttributes<HTMLDivElement> {
|
|
813
|
+
/**
|
|
814
|
+
* The schema representing the chart data, layout and configuration
|
|
815
|
+
*/
|
|
816
|
+
chartSchema: Schema;
|
|
817
|
+
/**
|
|
818
|
+
* Callback when an event occurs
|
|
819
|
+
*/
|
|
820
|
+
onSchemaChange?: (eventData: Schema) => void;
|
|
821
|
+
/**
|
|
822
|
+
* Optional callback to access the IDeclarativeChart interface. Use this instead of ref for accessing
|
|
823
|
+
* the public methods and properties of the component.
|
|
824
|
+
*/
|
|
825
|
+
componentRef?: React_2.RefObject<IDeclarativeChart>;
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
/**
|
|
829
|
+
* Donutchart component.
|
|
830
|
+
* {@docCategory DonutChart}
|
|
831
|
+
*/
|
|
832
|
+
export declare const DonutChart: React_2.FunctionComponent<DonutChartProps>;
|
|
833
|
+
|
|
834
|
+
/**
|
|
835
|
+
* Donut Chart properties.
|
|
836
|
+
* {@docCategory DonutChart}
|
|
837
|
+
*/
|
|
838
|
+
export declare interface DonutChartProps {
|
|
839
|
+
/**
|
|
840
|
+
* Data to render in the chart.
|
|
841
|
+
*/
|
|
842
|
+
data?: ChartProps;
|
|
843
|
+
/**
|
|
844
|
+
* inner radius for donut size
|
|
845
|
+
*/
|
|
846
|
+
innerRadius?: number;
|
|
847
|
+
/**
|
|
848
|
+
* Call to provide customized styling that will layer on top of the variant rules.
|
|
849
|
+
*/
|
|
850
|
+
styles?: DonutChartStyles;
|
|
851
|
+
/**
|
|
852
|
+
* props for inside donut value
|
|
853
|
+
*/
|
|
854
|
+
valueInsideDonut?: string | number;
|
|
855
|
+
/**
|
|
856
|
+
* Define a custom callout renderer for a data point
|
|
857
|
+
*/
|
|
858
|
+
onRenderCalloutPerDataPoint?: (dataPointCalloutProps: ChartDataPoint) => JSX.Element | undefined;
|
|
859
|
+
/**
|
|
860
|
+
* Define a custom callout props override
|
|
861
|
+
*/
|
|
862
|
+
calloutPropsPerDataPoint?: (dataPointCalloutProps: ChartDataPoint) => ChartPopoverProps;
|
|
863
|
+
/**
|
|
864
|
+
* props for the callout in the chart
|
|
865
|
+
*/
|
|
866
|
+
calloutProps?: ChartPopoverProps;
|
|
867
|
+
/**
|
|
868
|
+
* The prop used to define the culture to localized the numbers
|
|
869
|
+
*/
|
|
870
|
+
culture?: string;
|
|
871
|
+
/**
|
|
872
|
+
* Prop to show the arc labels in percentage format
|
|
873
|
+
* @default false
|
|
874
|
+
*/
|
|
875
|
+
showLabelsInPercent?: boolean;
|
|
876
|
+
/**
|
|
877
|
+
* Prop to hide the arc labels
|
|
878
|
+
* @default true
|
|
879
|
+
*/
|
|
880
|
+
hideLabels?: boolean;
|
|
881
|
+
/**
|
|
882
|
+
* Below height used for resizing of the chart
|
|
883
|
+
* Wrap chart in your container and send the updated height and width to these props.
|
|
884
|
+
* These values decide wheather chart re render or not. Please check examples for reference
|
|
885
|
+
*/
|
|
886
|
+
height?: number;
|
|
887
|
+
/**
|
|
888
|
+
* Below width used for resizing of the chart
|
|
889
|
+
* Wrap chart in your container and send the updated height and width to these props.
|
|
890
|
+
* These values decide wheather chart re render or not. Please check examples for reference
|
|
891
|
+
*/
|
|
892
|
+
width?: number;
|
|
893
|
+
/**
|
|
894
|
+
* this prop takes its parent as a HTML element to define the width and height of the chart
|
|
895
|
+
*/
|
|
896
|
+
parentRef?: HTMLElement | null;
|
|
897
|
+
/**
|
|
898
|
+
* Additional CSS class(es) to apply to the Chart.
|
|
899
|
+
*/
|
|
900
|
+
className?: string;
|
|
901
|
+
legendsOverflowText?: any;
|
|
902
|
+
legendProps?: Partial<LegendsProps>;
|
|
903
|
+
/** decides wether to show/hide legends
|
|
904
|
+
* @defaultvalue false
|
|
905
|
+
*/
|
|
906
|
+
hideLegend?: boolean;
|
|
907
|
+
/**
|
|
908
|
+
* Url that the data-viz needs to redirect to upon clicking on it
|
|
909
|
+
*/
|
|
910
|
+
href?: string;
|
|
911
|
+
/**
|
|
912
|
+
* Do not show tooltips in chart
|
|
913
|
+
* @default false
|
|
914
|
+
*/
|
|
915
|
+
hideTooltip?: boolean;
|
|
916
|
+
/**
|
|
917
|
+
* Optional callback to access the Chart interface. Use this instead of ref for accessing
|
|
918
|
+
* the public methods and properties of the component.
|
|
919
|
+
*/
|
|
920
|
+
componentRef?: React_2.RefObject<Chart>;
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
/**
|
|
924
|
+
* Donut Chart style properties
|
|
925
|
+
* {@docCategory DonutChart}
|
|
926
|
+
*/
|
|
927
|
+
export declare interface DonutChartStyleProps extends CartesianChartStyleProps {
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
/**
|
|
931
|
+
* Donut Chart styles
|
|
932
|
+
* {@docCategory DonutChart}
|
|
933
|
+
*/
|
|
934
|
+
export declare interface DonutChartStyles {
|
|
935
|
+
/**
|
|
936
|
+
* Style for the root element.
|
|
937
|
+
*/
|
|
938
|
+
root?: string;
|
|
939
|
+
/**
|
|
940
|
+
* Style for the chart.
|
|
941
|
+
*/
|
|
942
|
+
chart?: string;
|
|
943
|
+
/**
|
|
944
|
+
* Style for the legend container.
|
|
945
|
+
*/
|
|
946
|
+
legendContainer: string;
|
|
947
|
+
/**
|
|
948
|
+
* Styles for the chart wrapper div
|
|
949
|
+
*/
|
|
950
|
+
chartWrapper?: string;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
export declare interface DPointType {
|
|
954
|
+
values: {
|
|
955
|
+
0: number;
|
|
956
|
+
1: number;
|
|
957
|
+
data: {};
|
|
958
|
+
};
|
|
959
|
+
xVal: number | Date;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
declare interface EventAnnotation {
|
|
963
|
+
date: Date;
|
|
964
|
+
event: string;
|
|
965
|
+
onRenderCard?: () => React_2.ReactNode;
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
/**
|
|
969
|
+
* {@docCategory LineChart}
|
|
970
|
+
*/
|
|
971
|
+
export declare interface EventsAnnotationProps {
|
|
972
|
+
events: EventAnnotation[];
|
|
973
|
+
strokeColor?: string;
|
|
974
|
+
labelColor?: string;
|
|
975
|
+
labelHeight?: number;
|
|
976
|
+
labelWidth?: number;
|
|
977
|
+
mergedLabel: (count: number) => string;
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
export declare interface ExtendedSegment extends GaugeChartSegment {
|
|
981
|
+
start: number;
|
|
982
|
+
end: number;
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
export declare const GaugeChart: React_2.FunctionComponent<GaugeChartProps>;
|
|
986
|
+
|
|
987
|
+
/**
|
|
988
|
+
* Gauge Chart properties
|
|
989
|
+
* {@docCategory GaugeChart}
|
|
990
|
+
*/
|
|
991
|
+
export declare interface GaugeChartProps {
|
|
992
|
+
/**
|
|
993
|
+
* Width of the chart
|
|
994
|
+
*/
|
|
995
|
+
width?: number;
|
|
996
|
+
/**
|
|
997
|
+
* Height of the chart
|
|
998
|
+
*/
|
|
999
|
+
height?: number;
|
|
1000
|
+
/**
|
|
1001
|
+
* Title of the chart
|
|
1002
|
+
*/
|
|
1003
|
+
chartTitle?: string;
|
|
1004
|
+
/**
|
|
1005
|
+
* Current value of the gauge
|
|
1006
|
+
*/
|
|
1007
|
+
chartValue: number;
|
|
1008
|
+
/**
|
|
1009
|
+
* Sections of the gauge
|
|
1010
|
+
*/
|
|
1011
|
+
segments: GaugeChartSegment[];
|
|
1012
|
+
/**
|
|
1013
|
+
* Minimum value of the gauge
|
|
1014
|
+
* @defaultvalue 0
|
|
1015
|
+
*/
|
|
1016
|
+
minValue?: number;
|
|
1017
|
+
/**
|
|
1018
|
+
* Maximum value of the gauge
|
|
1019
|
+
*/
|
|
1020
|
+
maxValue?: number;
|
|
1021
|
+
/**
|
|
1022
|
+
* Additional text to display below the chart value
|
|
1023
|
+
*/
|
|
1024
|
+
sublabel?: string;
|
|
1025
|
+
/**
|
|
1026
|
+
* Hide the min and max values of the gauge
|
|
1027
|
+
* @defaultvalue false
|
|
1028
|
+
*/
|
|
1029
|
+
hideMinMax?: boolean;
|
|
1030
|
+
/**
|
|
1031
|
+
* Format of the chart value
|
|
1032
|
+
* @defaultvalue GaugeValueFormat.Percentage
|
|
1033
|
+
*/
|
|
1034
|
+
chartValueFormat?: GaugeValueFormat | ((sweepFraction: [number, number]) => string);
|
|
1035
|
+
/**
|
|
1036
|
+
* Decides whether to show/hide legends
|
|
1037
|
+
* @defaultvalue false
|
|
1038
|
+
*/
|
|
1039
|
+
hideLegend?: boolean;
|
|
1040
|
+
legendProps?: Partial<LegendsProps>;
|
|
1041
|
+
/**
|
|
1042
|
+
* Do not show tooltips in chart
|
|
1043
|
+
* @defaultvalue false
|
|
1044
|
+
*/
|
|
1045
|
+
hideTooltip?: boolean;
|
|
1046
|
+
/**
|
|
1047
|
+
* Call to provide customized styling that will layer on top of the variant rules
|
|
1048
|
+
*/
|
|
1049
|
+
styles?: GaugeChartStyles;
|
|
1050
|
+
/**
|
|
1051
|
+
* Defines the culture to localize the numbers and dates
|
|
1052
|
+
*/
|
|
1053
|
+
culture?: string;
|
|
1054
|
+
/**
|
|
1055
|
+
* Props for the callout in the chart
|
|
1056
|
+
*/
|
|
1057
|
+
calloutProps?: Partial<ChartPopoverProps>;
|
|
1058
|
+
/**
|
|
1059
|
+
* Specifies the variant of GaugeChart to be rendered
|
|
1060
|
+
* @defaultvalue GaugeChartVariant.MultipleSegments
|
|
1061
|
+
*/
|
|
1062
|
+
variant?: GaugeChartVariant;
|
|
1063
|
+
/**
|
|
1064
|
+
* Prop to enable the gradient in the chart
|
|
1065
|
+
* @default false
|
|
1066
|
+
*/
|
|
1067
|
+
enableGradient?: boolean;
|
|
1068
|
+
/**
|
|
1069
|
+
* Prop to enable the round corners in the chart
|
|
1070
|
+
* @default false
|
|
1071
|
+
*/
|
|
1072
|
+
roundCorners?: boolean;
|
|
1073
|
+
/**
|
|
1074
|
+
* Optional callback to access the Chart interface. Use this instead of ref for accessing
|
|
1075
|
+
* the public methods and properties of the component.
|
|
1076
|
+
*/
|
|
1077
|
+
componentRef?: React.RefObject<Chart>;
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
/**
|
|
1081
|
+
* Gauge Chart segment interface.
|
|
1082
|
+
* {@docCategory GaugeChart}
|
|
1083
|
+
*/
|
|
1084
|
+
export declare interface GaugeChartSegment {
|
|
1085
|
+
/**
|
|
1086
|
+
* Legend text for a segment
|
|
1087
|
+
*/
|
|
1088
|
+
legend: string;
|
|
1089
|
+
/**
|
|
1090
|
+
* Size of the segment
|
|
1091
|
+
*/
|
|
1092
|
+
size: number;
|
|
1093
|
+
/**
|
|
1094
|
+
* Color of the segment
|
|
1095
|
+
*/
|
|
1096
|
+
color?: string;
|
|
1097
|
+
/**
|
|
1098
|
+
* Gradient color of the segment
|
|
1099
|
+
*/
|
|
1100
|
+
gradient?: [string, string];
|
|
1101
|
+
/**
|
|
1102
|
+
* Accessibility data for the segment
|
|
1103
|
+
*/
|
|
1104
|
+
accessibilityData?: AccessibilityProps;
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
/**
|
|
1108
|
+
* Gauge Chart styles
|
|
1109
|
+
* {@docCategory GaugeChart}
|
|
1110
|
+
*/
|
|
1111
|
+
export declare interface GaugeChartStyles {
|
|
1112
|
+
/**
|
|
1113
|
+
* Styles for the root element
|
|
1114
|
+
*/
|
|
1115
|
+
root?: string;
|
|
1116
|
+
/**
|
|
1117
|
+
* Styles for the chart
|
|
1118
|
+
*/
|
|
1119
|
+
chart?: string;
|
|
1120
|
+
/**
|
|
1121
|
+
* Styles for the min and max values
|
|
1122
|
+
*/
|
|
1123
|
+
limits?: string;
|
|
1124
|
+
/**
|
|
1125
|
+
* Styles for the chart value
|
|
1126
|
+
*/
|
|
1127
|
+
chartValue?: string;
|
|
1128
|
+
/**
|
|
1129
|
+
* Styles for the sublabel
|
|
1130
|
+
*/
|
|
1131
|
+
sublabel?: string;
|
|
1132
|
+
/**
|
|
1133
|
+
* Styles for the needle
|
|
1134
|
+
*/
|
|
1135
|
+
needle?: string;
|
|
1136
|
+
/**
|
|
1137
|
+
* Styles for the chart title
|
|
1138
|
+
*/
|
|
1139
|
+
chartTitle?: string;
|
|
1140
|
+
/**
|
|
1141
|
+
* Styles for the segments
|
|
1142
|
+
*/
|
|
1143
|
+
segment?: string;
|
|
1144
|
+
/**
|
|
1145
|
+
* Styles for gradient segments
|
|
1146
|
+
*/
|
|
1147
|
+
gradientSegment?: string;
|
|
1148
|
+
/**
|
|
1149
|
+
* Styles for the legends container
|
|
1150
|
+
*/
|
|
1151
|
+
legendsContainer?: string;
|
|
1152
|
+
/**
|
|
1153
|
+
* Styles for callout root-content
|
|
1154
|
+
*/
|
|
1155
|
+
calloutContentRoot?: string;
|
|
1156
|
+
/**
|
|
1157
|
+
* Styles for callout x-content
|
|
1158
|
+
*/
|
|
1159
|
+
calloutContentX?: string;
|
|
1160
|
+
/**
|
|
1161
|
+
* Styles for callout y-content
|
|
1162
|
+
*/
|
|
1163
|
+
calloutContentY?: string;
|
|
1164
|
+
/**
|
|
1165
|
+
* Styles for description message
|
|
1166
|
+
*/
|
|
1167
|
+
descriptionMessage?: string;
|
|
1168
|
+
/**
|
|
1169
|
+
* Styles for callout Date time container
|
|
1170
|
+
*/
|
|
1171
|
+
calloutDateTimeContainer?: string;
|
|
1172
|
+
/**
|
|
1173
|
+
* Styles for callout info container
|
|
1174
|
+
*/
|
|
1175
|
+
calloutInfoContainer?: string;
|
|
1176
|
+
/**
|
|
1177
|
+
* Styles for callout block container
|
|
1178
|
+
*/
|
|
1179
|
+
calloutBlockContainer?: string;
|
|
1180
|
+
/**
|
|
1181
|
+
* Styles for callout legend text
|
|
1182
|
+
*/
|
|
1183
|
+
calloutlegendText?: string;
|
|
1184
|
+
/**
|
|
1185
|
+
* Styles for the shape object in the callout
|
|
1186
|
+
*/
|
|
1187
|
+
shapeStyles?: string;
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
/**
|
|
1191
|
+
* {@docCategory GaugeChart}
|
|
1192
|
+
*/
|
|
1193
|
+
export declare type GaugeChartVariant = 'single-segment' | 'multiple-segments';
|
|
1194
|
+
|
|
1195
|
+
/**
|
|
1196
|
+
* {@docCategory GaugeChart}
|
|
1197
|
+
*/
|
|
1198
|
+
export declare type GaugeValueFormat = 'percentage' | 'fraction';
|
|
1199
|
+
|
|
1200
|
+
export declare const getChartValueLabel: (chartValue: number, minValue: number, maxValue: number, chartValueFormat?: GaugeValueFormat | ((sweepFraction: [number, number]) => string) | undefined, forCallout?: boolean) => string;
|
|
1201
|
+
|
|
1202
|
+
export declare const getColorContrast: (c1: string, c2: string) => number;
|
|
1203
|
+
|
|
1204
|
+
export declare const getColorFromToken: (token: string, isDarkTheme?: boolean) => string;
|
|
1205
|
+
|
|
1206
|
+
export declare const getNextColor: (index: number, offset?: number, isDarkTheme?: boolean) => string;
|
|
1207
|
+
|
|
1208
|
+
export declare const getSegmentLabel: (segment: ExtendedSegment, minValue: number, maxValue: number, variant?: GaugeChartVariant, isAriaLabel?: boolean) => string;
|
|
1209
|
+
|
|
1210
|
+
export declare const GroupedVerticalBarChart: React_2.FC<GroupedVerticalBarChartProps>;
|
|
1211
|
+
|
|
1212
|
+
/**
|
|
1213
|
+
* {@docCategory ChartData}
|
|
1214
|
+
*/
|
|
1215
|
+
export declare interface GroupedVerticalBarChartData {
|
|
1216
|
+
/**
|
|
1217
|
+
* Data for X axis label
|
|
1218
|
+
*/
|
|
1219
|
+
name: string;
|
|
1220
|
+
/**
|
|
1221
|
+
* Data points for Grouped vertical bar chart
|
|
1222
|
+
*/
|
|
1223
|
+
series: GVBarChartSeriesPoint[];
|
|
1224
|
+
/**
|
|
1225
|
+
* Accessibility data for Group Bars Stack Callout
|
|
1226
|
+
*/
|
|
1227
|
+
stackCallOutAccessibilityData?: AccessibilityProps;
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
/**
|
|
1231
|
+
* Vertical Bar Chart properties
|
|
1232
|
+
* {@docCategory VerticalBarChart}
|
|
1233
|
+
*/
|
|
1234
|
+
export declare interface GroupedVerticalBarChartProps extends CartesianChartProps {
|
|
1235
|
+
/**
|
|
1236
|
+
* Data to render in the chart.
|
|
1237
|
+
*/
|
|
1238
|
+
data?: GroupedVerticalBarChartData[];
|
|
1239
|
+
/**
|
|
1240
|
+
* Width of each bar in the chart. When set to `undefined` or `'default'`, the bar width defaults to 16px,
|
|
1241
|
+
* which may decrease to prevent overlap. When set to `'auto'`, the bar width is calculated from padding values.
|
|
1242
|
+
* @default 16
|
|
1243
|
+
*/
|
|
1244
|
+
barWidth?: number | 'default' | 'auto';
|
|
1245
|
+
/**
|
|
1246
|
+
* Colors from which to select the color of each bar.
|
|
1247
|
+
*/
|
|
1248
|
+
colors?: string[];
|
|
1249
|
+
/**
|
|
1250
|
+
* chart title for the chart
|
|
1251
|
+
*/
|
|
1252
|
+
chartTitle?: string;
|
|
1253
|
+
/**
|
|
1254
|
+
* This prop makes sure that all the bars are of same color.
|
|
1255
|
+
* it will take the first color from the array of colors in
|
|
1256
|
+
* prop `colors` or if `colors` prop is not given then default color is palette.blueLight
|
|
1257
|
+
* @default false
|
|
1258
|
+
*/
|
|
1259
|
+
useSingleColor?: boolean;
|
|
1260
|
+
/**
|
|
1261
|
+
* Call to provide customized styling that will layer on top of the variant rules.
|
|
1262
|
+
*/
|
|
1263
|
+
styles?: GroupedVerticalBarChartStyles;
|
|
1264
|
+
/**
|
|
1265
|
+
* The prop used to define the culture to localized the numbers
|
|
1266
|
+
*/
|
|
1267
|
+
culture?: string;
|
|
1268
|
+
/**
|
|
1269
|
+
* To display multi stack callout or single callout
|
|
1270
|
+
* @default false
|
|
1271
|
+
*/
|
|
1272
|
+
isCalloutForStack?: boolean;
|
|
1273
|
+
/**
|
|
1274
|
+
* Prop to hide the bar labels
|
|
1275
|
+
* @default false
|
|
1276
|
+
*/
|
|
1277
|
+
hideLabels?: boolean;
|
|
1278
|
+
/**
|
|
1279
|
+
* Maximum width of a bar, in pixels.
|
|
1280
|
+
* @default 24
|
|
1281
|
+
*/
|
|
1282
|
+
maxBarWidth?: number;
|
|
1283
|
+
/**
|
|
1284
|
+
* Padding between bars as a fraction of the [step](https://d3js.org/d3-scale/band#band_step).
|
|
1285
|
+
* Takes a number in the range [0, 1]. Only applicable to string x-axis.
|
|
1286
|
+
* @default 2/3
|
|
1287
|
+
*/
|
|
1288
|
+
xAxisInnerPadding?: number;
|
|
1289
|
+
/**
|
|
1290
|
+
* Padding before the first bar and after the last bar as a fraction of
|
|
1291
|
+
* the [step](https://d3js.org/d3-scale/band#band_step). Takes a number in the range [0, 1].
|
|
1292
|
+
* Only applicable to string x-axis.
|
|
1293
|
+
*/
|
|
1294
|
+
xAxisOuterPadding?: number;
|
|
1295
|
+
/**
|
|
1296
|
+
* Specifies the mode of the chart.
|
|
1297
|
+
* @default 'default'
|
|
1298
|
+
*/
|
|
1299
|
+
mode?: 'default' | 'plotly';
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
/**
|
|
1303
|
+
* Vertical Bar Chart style properties
|
|
1304
|
+
* {@docCategory VerticalBarChart}
|
|
1305
|
+
*/
|
|
1306
|
+
export declare interface GroupedVerticalBarChartStyleProps extends CartesianChartStyleProps {
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
/**
|
|
1310
|
+
* Vertical Bar Chart styles
|
|
1311
|
+
* {@docCategory VerticalBarChart}
|
|
1312
|
+
*/
|
|
1313
|
+
export declare interface GroupedVerticalBarChartStyles extends CartesianChartStyles {
|
|
1314
|
+
/**
|
|
1315
|
+
* Style for the bar labels
|
|
1316
|
+
*/
|
|
1317
|
+
barLabel: string;
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
/**
|
|
1321
|
+
* This is used to group nodes by column index.
|
|
1322
|
+
*/
|
|
1323
|
+
export declare function groupNodesByColumn(graph: SankeyChartData): NodesInColumns;
|
|
1324
|
+
|
|
1325
|
+
/**
|
|
1326
|
+
* {@docCategory ChartData}
|
|
1327
|
+
*/
|
|
1328
|
+
export declare interface GVBarChartSeriesPoint {
|
|
1329
|
+
/**
|
|
1330
|
+
* Text for // need to check use of this
|
|
1331
|
+
*/
|
|
1332
|
+
key: string;
|
|
1333
|
+
/**
|
|
1334
|
+
* Data for bar height of Grouped vertical bar chart
|
|
1335
|
+
*/
|
|
1336
|
+
data: number;
|
|
1337
|
+
/**
|
|
1338
|
+
* Color for the legend in the chart
|
|
1339
|
+
*/
|
|
1340
|
+
color: string;
|
|
1341
|
+
/**
|
|
1342
|
+
* Legend text in the chart
|
|
1343
|
+
*/
|
|
1344
|
+
legend: string;
|
|
1345
|
+
/**
|
|
1346
|
+
* Callout data for x axis
|
|
1347
|
+
* This is an optional prop, If haven;t given legend will take
|
|
1348
|
+
*/
|
|
1349
|
+
xAxisCalloutData?: string;
|
|
1350
|
+
/**
|
|
1351
|
+
* Callout data for y axis
|
|
1352
|
+
* This is an optional prop, If haven't given data will take
|
|
1353
|
+
*/
|
|
1354
|
+
yAxisCalloutData?: string;
|
|
1355
|
+
/**
|
|
1356
|
+
* onClick action for each datapoint in the chart
|
|
1357
|
+
*/
|
|
1358
|
+
onClick?: VoidFunction;
|
|
1359
|
+
/**
|
|
1360
|
+
* Accessibility data for callout
|
|
1361
|
+
*/
|
|
1362
|
+
callOutAccessibilityData?: AccessibilityProps;
|
|
1363
|
+
}
|
|
1364
|
+
|
|
1365
|
+
export declare interface GVDataPoint {
|
|
1366
|
+
/**
|
|
1367
|
+
* This interface used for - While forming datapoints from given prop "data" in code
|
|
1368
|
+
* datapoints are used for to draw graph
|
|
1369
|
+
*/
|
|
1370
|
+
[key: string]: number | string;
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
export declare interface GVForBarChart {
|
|
1374
|
+
/**
|
|
1375
|
+
* While forming datapoints from given prop "data"
|
|
1376
|
+
* These datapoints are used for to draw graph.
|
|
1377
|
+
*/
|
|
1378
|
+
[key: string]: GVBarChartSeriesPoint;
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1381
|
+
export declare interface GVSingleDataPoint {
|
|
1382
|
+
/**
|
|
1383
|
+
* While forming datapoints from given prop "data" in code.
|
|
1384
|
+
* These datapoints are used for to draw graph easily.
|
|
1385
|
+
*/
|
|
1386
|
+
[key: string]: GVDataPoint;
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
export declare const HeatMapChart: React_2.FunctionComponent<HeatMapChartProps>;
|
|
1390
|
+
|
|
1391
|
+
/**
|
|
1392
|
+
* {@docCategory ChartData}
|
|
1393
|
+
*/
|
|
1394
|
+
export declare interface HeatMapChartData {
|
|
1395
|
+
/**
|
|
1396
|
+
* name of the legend
|
|
1397
|
+
*/
|
|
1398
|
+
legend: string;
|
|
1399
|
+
data: HeatMapChartDataPoint[];
|
|
1400
|
+
/**
|
|
1401
|
+
* This number will be used to get the color for the legend
|
|
1402
|
+
*/
|
|
1403
|
+
value: number;
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
export declare interface HeatMapChartDataPoint {
|
|
1407
|
+
x: string | Date | number;
|
|
1408
|
+
y: string | Date | number;
|
|
1409
|
+
value: number;
|
|
1410
|
+
/**
|
|
1411
|
+
* The value/ text to be rendered in the rectange
|
|
1412
|
+
*/
|
|
1413
|
+
rectText?: string | number;
|
|
1414
|
+
/**
|
|
1415
|
+
* denomination to show in the callout
|
|
1416
|
+
*/
|
|
1417
|
+
ratio?: [number, number];
|
|
1418
|
+
/**
|
|
1419
|
+
* description message to the callout
|
|
1420
|
+
*/
|
|
1421
|
+
descriptionMessage?: string;
|
|
1422
|
+
/**
|
|
1423
|
+
* onClick action for each datapoint in the chart
|
|
1424
|
+
*/
|
|
1425
|
+
onClick?: VoidFunction;
|
|
1426
|
+
/**
|
|
1427
|
+
* Accessibility data for callout
|
|
1428
|
+
*/
|
|
1429
|
+
callOutAccessibilityData?: AccessibilityProps;
|
|
1430
|
+
}
|
|
1431
|
+
|
|
1432
|
+
/**
|
|
1433
|
+
* Heat Map Chart properties
|
|
1434
|
+
* {@docCategory HeatMapChart}
|
|
1435
|
+
*/
|
|
1436
|
+
export declare interface HeatMapChartProps extends CartesianChartProps {
|
|
1437
|
+
/**
|
|
1438
|
+
* chart title for the chart
|
|
1439
|
+
*/
|
|
1440
|
+
chartTitle?: string;
|
|
1441
|
+
/**
|
|
1442
|
+
* data to provide for Heat Map
|
|
1443
|
+
*/
|
|
1444
|
+
data: HeatMapChartData[];
|
|
1445
|
+
/**
|
|
1446
|
+
* The domain value for the color scale,
|
|
1447
|
+
*
|
|
1448
|
+
*/
|
|
1449
|
+
domainValuesForColorScale: number[];
|
|
1450
|
+
/**
|
|
1451
|
+
* The range values for the color scale,
|
|
1452
|
+
* fill the array with colors in hex format
|
|
1453
|
+
* note:- it should contain values exactly as many as values in the array
|
|
1454
|
+
* `domainValuesForColorScale`
|
|
1455
|
+
*/
|
|
1456
|
+
rangeValuesForColorScale: string[];
|
|
1457
|
+
/**
|
|
1458
|
+
* date formatter of x axis,
|
|
1459
|
+
* if the x-axis data point are of date type then user can use this
|
|
1460
|
+
* prop to format the date
|
|
1461
|
+
* refer to https://github.com/d3/d3-time-format for string values
|
|
1462
|
+
* @default '%b/%d'
|
|
1463
|
+
*/
|
|
1464
|
+
xAxisDateFormatString?: string;
|
|
1465
|
+
/**
|
|
1466
|
+
* date formatter of y axis,
|
|
1467
|
+
* if the y-axis data point are or date type then user can use this
|
|
1468
|
+
* prop to format the date
|
|
1469
|
+
* refer to https://github.com/d3/d3-time-format for string values
|
|
1470
|
+
* @default '%b/%d'
|
|
1471
|
+
*/
|
|
1472
|
+
yAxisDateFormatString?: string;
|
|
1473
|
+
/**
|
|
1474
|
+
* number formatter of x axis
|
|
1475
|
+
* if the x-axis data pints are of number type then user can
|
|
1476
|
+
* use this prop to format the number
|
|
1477
|
+
* refer to https://github.com/d3/d3-format for string values
|
|
1478
|
+
* @default '.2~s'
|
|
1479
|
+
*/
|
|
1480
|
+
xAxisNumberFormatString?: string;
|
|
1481
|
+
/**
|
|
1482
|
+
* number formatter of y axis
|
|
1483
|
+
* if the y-axis data pints are of number type then user can
|
|
1484
|
+
* use this prop to format the number
|
|
1485
|
+
* refer to https://github.com/d3/d3-format for string values
|
|
1486
|
+
* @default '.2~s'
|
|
1487
|
+
*/
|
|
1488
|
+
yAxisNumberFormatString?: string;
|
|
1489
|
+
/**
|
|
1490
|
+
* string formatter for x-axis.
|
|
1491
|
+
* This prop only applies if the x-axis is of string type
|
|
1492
|
+
*
|
|
1493
|
+
* For the accessiblity reason we sort the x-axis data point given by the consumer in ascending
|
|
1494
|
+
* order and then render in the x-axis. this behaviour would force the order of the data points.
|
|
1495
|
+
* to overcome , user can give x-axis point names as p1 p2...etc and map those p1 and p2 to custom name.
|
|
1496
|
+
* behind the scene the charting will actually sort the p1 and p2 and then we can attach the custom
|
|
1497
|
+
* name to that point by using this prop, hence giving the us the flexiblity of the order in which
|
|
1498
|
+
* label should render
|
|
1499
|
+
*
|
|
1500
|
+
* see the example file for the usage of the prop
|
|
1501
|
+
*/
|
|
1502
|
+
xAxisStringFormatter?: (point: string) => string;
|
|
1503
|
+
/**
|
|
1504
|
+
* string formatter for y-axis.
|
|
1505
|
+
* This prop only applies if the y-axis is of string type
|
|
1506
|
+
*
|
|
1507
|
+
* For the accessiblity reason we sort the x-axis data point given by the consumer in ascending
|
|
1508
|
+
* order and then render in the y-axis. this behaviour would force the order of the data points.
|
|
1509
|
+
* to overcome , user can give y-axis point names as p1 p2...etc and map those p1 and p2 to custom name.
|
|
1510
|
+
* behind the scene the charting will actually sort the p1 and p2 and then we can attach the custom
|
|
1511
|
+
* name to that point by using this prop, hence giving the us the flexiblity of the order in which
|
|
1512
|
+
* label should render
|
|
1513
|
+
*
|
|
1514
|
+
* see the exaple file for the usage of the prop
|
|
1515
|
+
*/
|
|
1516
|
+
yAxisStringFormatter?: (point: string) => string;
|
|
1517
|
+
/**
|
|
1518
|
+
* Call to provide customized styling that will layer on top of the variant rules.
|
|
1519
|
+
*/
|
|
1520
|
+
styles?: HeatMapChartStyles;
|
|
1521
|
+
/**
|
|
1522
|
+
* The prop used to define the culture to localized the numbers
|
|
1523
|
+
*/
|
|
1524
|
+
culture?: string;
|
|
1525
|
+
/**
|
|
1526
|
+
*@default false
|
|
1527
|
+
*Used for showing complete y axis lables */
|
|
1528
|
+
showYAxisLables?: boolean;
|
|
1529
|
+
/**
|
|
1530
|
+
* @default alphabetical
|
|
1531
|
+
* The prop used to decide order of string axis labels */
|
|
1532
|
+
sortOrder?: 'none' | 'alphabetical';
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1535
|
+
/**
|
|
1536
|
+
* Heat Map Chart styles
|
|
1537
|
+
* {@docCategory HeatMapChart}
|
|
1538
|
+
*/
|
|
1539
|
+
export declare interface HeatMapChartStyles extends CartesianChartStyles {
|
|
1540
|
+
root?: string;
|
|
1541
|
+
text?: string;
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
/**
|
|
1545
|
+
* HorizontalBarChart is the context wrapper and container for all HorizontalBarChart content/controls,
|
|
1546
|
+
* It has no direct style or slot opinions.
|
|
1547
|
+
*
|
|
1548
|
+
* HorizontalBarChart also provides API interfaces for callbacks that will occur on navigation events.
|
|
1549
|
+
*/
|
|
1550
|
+
export declare const HorizontalBarChart: React_2.FunctionComponent<HorizontalBarChartProps>;
|
|
1551
|
+
|
|
1552
|
+
/**
|
|
1553
|
+
* Horizontal Bar Chart properties
|
|
1554
|
+
* {@docCategory HorizontalBarChart}
|
|
1555
|
+
*/
|
|
1556
|
+
export declare interface HorizontalBarChartProps extends React_2.RefAttributes<HTMLDivElement> {
|
|
1557
|
+
/**
|
|
1558
|
+
* An array of chart data points for the Horizontal bar chart
|
|
1559
|
+
*/
|
|
1560
|
+
data?: ChartProps[];
|
|
1561
|
+
/**
|
|
1562
|
+
* Width of bar chart
|
|
1563
|
+
*/
|
|
1564
|
+
width?: number;
|
|
1565
|
+
/**
|
|
1566
|
+
* Height of bar chart
|
|
1567
|
+
* @default 15
|
|
1568
|
+
*/
|
|
1569
|
+
barHeight?: number;
|
|
1570
|
+
/**
|
|
1571
|
+
* Additional CSS class(es) to apply to the StackedBarChart.
|
|
1572
|
+
*/
|
|
1573
|
+
className?: string;
|
|
1574
|
+
/**
|
|
1575
|
+
* This property tells whether to show ratio on top of stacked bar chart or not.
|
|
1576
|
+
*/
|
|
1577
|
+
hideRatio?: boolean[];
|
|
1578
|
+
/**
|
|
1579
|
+
* Do not show tooltips in chart
|
|
1580
|
+
*
|
|
1581
|
+
* @default false
|
|
1582
|
+
*/
|
|
1583
|
+
hideTooltip?: boolean;
|
|
1584
|
+
/**
|
|
1585
|
+
* This property tells how to show data text on top right of bar chart.
|
|
1586
|
+
* If barChartCustomData props added, then this props will be overrided.
|
|
1587
|
+
* @default 'default'
|
|
1588
|
+
*/
|
|
1589
|
+
chartDataMode?: ChartDataMode;
|
|
1590
|
+
/**
|
|
1591
|
+
* Call to provide customized styling that will layer on top of the variant rules.
|
|
1592
|
+
*/
|
|
1593
|
+
styles?: HorizontalBarChartStyles;
|
|
1594
|
+
/**
|
|
1595
|
+
* Define a custom callout renderer for a horizontal bar
|
|
1596
|
+
*/
|
|
1597
|
+
/**
|
|
1598
|
+
* props for the callout in the chart
|
|
1599
|
+
*/
|
|
1600
|
+
calloutProps?: ChartPopoverProps;
|
|
1601
|
+
/**
|
|
1602
|
+
* Custom text to the chart (right side of the chart)
|
|
1603
|
+
* IChartProps will be available as props to the method prop.
|
|
1604
|
+
* If this method not given, default values (IHorizontalDataPoint \{x,y\})
|
|
1605
|
+
* will be used to display the data/text based on given chartModeData prop.
|
|
1606
|
+
*/
|
|
1607
|
+
/**
|
|
1608
|
+
* The prop used to define the culture to localized the numbers
|
|
1609
|
+
*/
|
|
1610
|
+
culture?: string;
|
|
1611
|
+
/**
|
|
1612
|
+
* Prop to define the variant of HorizontalBarChart to render
|
|
1613
|
+
* @default HorizontalBarChartVariant.PartToWhole
|
|
1614
|
+
*/
|
|
1615
|
+
variant?: HorizontalBarChartVariant;
|
|
1616
|
+
/**
|
|
1617
|
+
* Prop to hide the bar labels
|
|
1618
|
+
* @default false
|
|
1619
|
+
*/
|
|
1620
|
+
hideLabels?: boolean;
|
|
1621
|
+
/**
|
|
1622
|
+
* line color for callout
|
|
1623
|
+
*/
|
|
1624
|
+
color?: string;
|
|
1625
|
+
/**
|
|
1626
|
+
* prop to check if benchmark data is provided
|
|
1627
|
+
*/
|
|
1628
|
+
showTriangle?: boolean;
|
|
1629
|
+
legendsOverflowText?: any;
|
|
1630
|
+
legendProps?: Partial<LegendsProps>;
|
|
1631
|
+
/**
|
|
1632
|
+
* prop to render the custom callout
|
|
1633
|
+
*/
|
|
1634
|
+
onRenderCalloutPerHorizontalBar?: (props: ChartDataPoint) => JSX.Element | undefined;
|
|
1635
|
+
/**
|
|
1636
|
+
* Define a custom callout props override
|
|
1637
|
+
*/
|
|
1638
|
+
calloutPropsPerDataPoint?: (dataPointCalloutProps: ChartDataPoint) => ChartPopoverProps;
|
|
1639
|
+
}
|
|
1640
|
+
|
|
1641
|
+
/**
|
|
1642
|
+
* Horizontal Bar Chart styles
|
|
1643
|
+
* {@docCategory HorizontalBarChart}
|
|
1644
|
+
*/
|
|
1645
|
+
export declare interface HorizontalBarChartStyles {
|
|
1646
|
+
/**
|
|
1647
|
+
* Styling for the root container
|
|
1648
|
+
*/
|
|
1649
|
+
root: string;
|
|
1650
|
+
/**
|
|
1651
|
+
* Styling for each item in the container
|
|
1652
|
+
*/
|
|
1653
|
+
items: string;
|
|
1654
|
+
/**
|
|
1655
|
+
* Style for the chart.
|
|
1656
|
+
*/
|
|
1657
|
+
chart: string;
|
|
1658
|
+
/**
|
|
1659
|
+
* Style for the chart Title.
|
|
1660
|
+
*/
|
|
1661
|
+
chartTitle: string;
|
|
1662
|
+
/**
|
|
1663
|
+
* Style for the bars.
|
|
1664
|
+
*/
|
|
1665
|
+
barWrapper: string;
|
|
1666
|
+
/**
|
|
1667
|
+
* Style for left side text of the chart title
|
|
1668
|
+
*/
|
|
1669
|
+
chartTitleLeft: string;
|
|
1670
|
+
/**
|
|
1671
|
+
* Style for right side text of the chart title
|
|
1672
|
+
*/
|
|
1673
|
+
chartTitleRight: string;
|
|
1674
|
+
/**
|
|
1675
|
+
* Style for the chart data text denominator.
|
|
1676
|
+
*/
|
|
1677
|
+
chartDataTextDenominator: string;
|
|
1678
|
+
/**
|
|
1679
|
+
* Style for the benchmark container
|
|
1680
|
+
*/
|
|
1681
|
+
benchmarkContainer: string;
|
|
1682
|
+
/**
|
|
1683
|
+
* Style for the benchmark triangle
|
|
1684
|
+
*/
|
|
1685
|
+
triangle: string;
|
|
1686
|
+
/**
|
|
1687
|
+
* Style for the bar labels
|
|
1688
|
+
*/
|
|
1689
|
+
barLabel: string;
|
|
1690
|
+
/**
|
|
1691
|
+
* Style for the div containing the chart
|
|
1692
|
+
*/
|
|
1693
|
+
chartWrapper: string;
|
|
1694
|
+
/**
|
|
1695
|
+
* Style for the legend container.
|
|
1696
|
+
*/
|
|
1697
|
+
legendContainer: string;
|
|
1698
|
+
}
|
|
1699
|
+
|
|
1700
|
+
/**
|
|
1701
|
+
* {@docCategory HorizontalBarChart}
|
|
1702
|
+
*/
|
|
1703
|
+
export declare enum HorizontalBarChartVariant {
|
|
1704
|
+
PartToWhole = "part-to-whole",
|
|
1705
|
+
AbsoluteScale = "absolute-scale"
|
|
1706
|
+
}
|
|
1707
|
+
|
|
1708
|
+
export declare const HorizontalBarChartWithAxis: React_2.FunctionComponent<HorizontalBarChartWithAxisProps>;
|
|
1709
|
+
|
|
1710
|
+
/**
|
|
1711
|
+
* {@docCategory ChartData}
|
|
1712
|
+
*/
|
|
1713
|
+
export declare interface HorizontalBarChartWithAxisDataPoint {
|
|
1714
|
+
/**
|
|
1715
|
+
* Dependent value of the data point, rendered along the x-axis.
|
|
1716
|
+
*/
|
|
1717
|
+
x: number;
|
|
1718
|
+
/**
|
|
1719
|
+
* Independent value of the data point, rendered along the y-axis.
|
|
1720
|
+
* If y is a number, then each y-coordinate is plotted at its y-coordinate.
|
|
1721
|
+
* If y is a string, then the data is evenly spaced along the y-axis.
|
|
1722
|
+
*/
|
|
1723
|
+
y: number | string;
|
|
1724
|
+
/**
|
|
1725
|
+
* Legend text for the datapoint in the chart
|
|
1726
|
+
*/
|
|
1727
|
+
legend?: string;
|
|
1728
|
+
/**
|
|
1729
|
+
* color for the legend in the chart
|
|
1730
|
+
*/
|
|
1731
|
+
color?: string;
|
|
1732
|
+
/**
|
|
1733
|
+
* Callout data for x axis
|
|
1734
|
+
* This is an optional prop, If haven;t given legend will take
|
|
1735
|
+
*/
|
|
1736
|
+
xAxisCalloutData?: string;
|
|
1737
|
+
/**
|
|
1738
|
+
* Callout data for y axis
|
|
1739
|
+
* This is an optional prop, If haven't given data will take
|
|
1740
|
+
*/
|
|
1741
|
+
yAxisCalloutData?: string;
|
|
1742
|
+
/**
|
|
1743
|
+
* onClick action for each datapoint in the chart
|
|
1744
|
+
*/
|
|
1745
|
+
onClick?: VoidFunction;
|
|
1746
|
+
/**
|
|
1747
|
+
* Accessibility data for callout
|
|
1748
|
+
*/
|
|
1749
|
+
callOutAccessibilityData?: AccessibilityProps;
|
|
1750
|
+
}
|
|
1751
|
+
|
|
1752
|
+
/**
|
|
1753
|
+
* Horizontal Bar Chart with Axis properties
|
|
1754
|
+
* {@docCategory HorizontalBarChartWithAxis}
|
|
1755
|
+
*/
|
|
1756
|
+
export declare interface HorizontalBarChartWithAxisProps extends CartesianChartProps {
|
|
1757
|
+
/**
|
|
1758
|
+
* Data to render in the chart.
|
|
1759
|
+
*/
|
|
1760
|
+
data?: HorizontalBarChartWithAxisDataPoint[];
|
|
1761
|
+
/**
|
|
1762
|
+
* Define a custom callout renderer for a data point.
|
|
1763
|
+
*/
|
|
1764
|
+
onRenderCalloutPerDataPoint?: RenderFunction<HorizontalBarChartWithAxisDataPoint>;
|
|
1765
|
+
/**
|
|
1766
|
+
* Width of each bar in the chart.
|
|
1767
|
+
*/
|
|
1768
|
+
barHeight?: number;
|
|
1769
|
+
/**
|
|
1770
|
+
* Colors from which to select the color of each bar.
|
|
1771
|
+
*/
|
|
1772
|
+
colors?: string[];
|
|
1773
|
+
/**
|
|
1774
|
+
* chart title for the chart
|
|
1775
|
+
*/
|
|
1776
|
+
chartTitle?: string;
|
|
1777
|
+
/**
|
|
1778
|
+
* This prop makes sure that all the bars are of same color.
|
|
1779
|
+
* it will take the first color from the array of colors in
|
|
1780
|
+
* prop `colors` or if `colors` prop is not given then default color is palette.blueLight
|
|
1781
|
+
* @default false
|
|
1782
|
+
*/
|
|
1783
|
+
useSingleColor?: boolean;
|
|
1784
|
+
/**
|
|
1785
|
+
* Call to provide customized styling that will layer on top of the variant rules.
|
|
1786
|
+
*/
|
|
1787
|
+
styles?: HorizontalBarChartWithAxisStyles;
|
|
1788
|
+
/**
|
|
1789
|
+
* The prop used to define the culture to localized the numbers
|
|
1790
|
+
*/
|
|
1791
|
+
culture?: string;
|
|
1792
|
+
/**
|
|
1793
|
+
* it's padding between bar's or lines in the graph
|
|
1794
|
+
*/
|
|
1795
|
+
yAxisPadding?: number;
|
|
1796
|
+
/**
|
|
1797
|
+
*@default false
|
|
1798
|
+
*Used for to elipse y axis labes and show tooltip on x axis labels
|
|
1799
|
+
*/
|
|
1800
|
+
showYAxisLablesTooltip?: boolean;
|
|
1801
|
+
/**
|
|
1802
|
+
*@default false
|
|
1803
|
+
*Used for showing complete y axis lables */
|
|
1804
|
+
showYAxisLables?: boolean;
|
|
1805
|
+
/**
|
|
1806
|
+
* @default false
|
|
1807
|
+
* The prop used to enable gradient fill color for the chart.
|
|
1808
|
+
*/
|
|
1809
|
+
enableGradient?: boolean;
|
|
1810
|
+
/**
|
|
1811
|
+
* @default false
|
|
1812
|
+
* The prop used to enable rounded corners for the bars.
|
|
1813
|
+
*/
|
|
1814
|
+
roundCorners?: boolean;
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1817
|
+
/**
|
|
1818
|
+
* Horizontal Bar Chart with Axis style properties
|
|
1819
|
+
* {@docCategory HorizontalBarChartWithAxis}
|
|
1820
|
+
*/
|
|
1821
|
+
export declare interface HorizontalBarChartWithAxisStyleProps extends CartesianChartStyleProps {
|
|
1822
|
+
/**
|
|
1823
|
+
* color of the datapoint legend
|
|
1824
|
+
*/
|
|
1825
|
+
legendColor?: string;
|
|
1826
|
+
}
|
|
1827
|
+
|
|
1828
|
+
/**
|
|
1829
|
+
* Horizontal Bar Chart with Axis styles
|
|
1830
|
+
* {@docCategory HorizontalBarChartWithAxis}
|
|
1831
|
+
*/
|
|
1832
|
+
export declare interface HorizontalBarChartWithAxisStyles extends CartesianChartStyles {
|
|
1833
|
+
/**
|
|
1834
|
+
* Style for the chart label.
|
|
1835
|
+
*
|
|
1836
|
+
*/
|
|
1837
|
+
chartLabel?: string;
|
|
1838
|
+
/**
|
|
1839
|
+
* Style for the line representing the domain of the x-axis.
|
|
1840
|
+
*
|
|
1841
|
+
*/
|
|
1842
|
+
xAxisDomain?: string;
|
|
1843
|
+
/**
|
|
1844
|
+
* Style for the lines representing the ticks along the x-axis.
|
|
1845
|
+
*
|
|
1846
|
+
*/
|
|
1847
|
+
xAxisTicks?: string;
|
|
1848
|
+
/**
|
|
1849
|
+
* Style for the text labeling each tick along the x-axis.
|
|
1850
|
+
*
|
|
1851
|
+
*/
|
|
1852
|
+
xAxisText?: string;
|
|
1853
|
+
/**
|
|
1854
|
+
* Style for the line representing the domain of the y-axis.
|
|
1855
|
+
*
|
|
1856
|
+
*/
|
|
1857
|
+
yAxisDomain?: string;
|
|
1858
|
+
/**
|
|
1859
|
+
* Style for the lines representing the ticks along the y-axis.
|
|
1860
|
+
*
|
|
1861
|
+
*/
|
|
1862
|
+
yAxisTicks?: string;
|
|
1863
|
+
/**
|
|
1864
|
+
* Style for the text labeling each tick along the y-axis.
|
|
1865
|
+
*
|
|
1866
|
+
*/
|
|
1867
|
+
yAxisText?: string;
|
|
1868
|
+
/**
|
|
1869
|
+
* Style to change the opacity of bars in dataviz when we hover on a single bar or legends
|
|
1870
|
+
*/
|
|
1871
|
+
opacityChangeOnHover: string;
|
|
1872
|
+
}
|
|
1873
|
+
|
|
1874
|
+
/**
|
|
1875
|
+
* {@docCategory ChartData}
|
|
1876
|
+
*/
|
|
1877
|
+
export declare interface HorizontalDataPoint {
|
|
1878
|
+
/**
|
|
1879
|
+
* Independent value of the data point, rendered along the x-axis.
|
|
1880
|
+
* If x is a number, then each y-coordinate is plotted at its x-coordinate.
|
|
1881
|
+
* If x is a string, then the data is evenly spaced along the x-axis.
|
|
1882
|
+
*/
|
|
1883
|
+
x: number;
|
|
1884
|
+
/**
|
|
1885
|
+
* Total value of a single point bar chart.
|
|
1886
|
+
*/
|
|
1887
|
+
total?: number;
|
|
1888
|
+
}
|
|
1889
|
+
|
|
1890
|
+
/**
|
|
1891
|
+
* {@docCategory DeclarativeChart}
|
|
1892
|
+
*/
|
|
1893
|
+
export declare interface IDeclarativeChart {
|
|
1894
|
+
exportAsImage: (opts?: ImageExportOptions) => Promise<string>;
|
|
1895
|
+
}
|
|
1896
|
+
|
|
1897
|
+
/**
|
|
1898
|
+
* {@docCategory DeclarativeChart}
|
|
1899
|
+
*/
|
|
1900
|
+
export declare interface ImageExportOptions {
|
|
1901
|
+
width?: number;
|
|
1902
|
+
height?: number;
|
|
1903
|
+
scale?: number;
|
|
1904
|
+
background?: string;
|
|
1905
|
+
}
|
|
1906
|
+
|
|
1907
|
+
/**
|
|
1908
|
+
* @public
|
|
1909
|
+
* ILegend interface
|
|
1910
|
+
* {@docCategory Legends}
|
|
1911
|
+
*/
|
|
1912
|
+
export declare interface Legend {
|
|
1913
|
+
/**
|
|
1914
|
+
* Defines the title of the legend
|
|
1915
|
+
*/
|
|
1916
|
+
title: string;
|
|
1917
|
+
/**
|
|
1918
|
+
* Defines the function that is executed on clicking this legend
|
|
1919
|
+
*/
|
|
1920
|
+
action?: VoidFunction;
|
|
1921
|
+
/**
|
|
1922
|
+
* Defines the function that is executed upon hovering over the legend
|
|
1923
|
+
*/
|
|
1924
|
+
hoverAction?: VoidFunction;
|
|
1925
|
+
/**
|
|
1926
|
+
* Defines the function that is executed upon moving the mouse away from the legend
|
|
1927
|
+
*/
|
|
1928
|
+
onMouseOutAction?: (isLegendFocused?: boolean) => void;
|
|
1929
|
+
/**
|
|
1930
|
+
* The color for the legend
|
|
1931
|
+
*/
|
|
1932
|
+
color: string;
|
|
1933
|
+
/**
|
|
1934
|
+
* The opacity of the legend color
|
|
1935
|
+
*/
|
|
1936
|
+
opacity?: number;
|
|
1937
|
+
/**
|
|
1938
|
+
* The shape for the legend
|
|
1939
|
+
*/
|
|
1940
|
+
shape?: LegendShape;
|
|
1941
|
+
/**
|
|
1942
|
+
* Indicated whether or not to apply stripe pattern
|
|
1943
|
+
*/
|
|
1944
|
+
stripePattern?: boolean;
|
|
1945
|
+
/**
|
|
1946
|
+
* Indicates if the legend belongs to a line in the Bar Chart
|
|
1947
|
+
*/
|
|
1948
|
+
isLineLegendInBarChart?: boolean;
|
|
1949
|
+
nativeButtonProps?: React_2.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
1950
|
+
}
|
|
1951
|
+
|
|
1952
|
+
export declare interface LegendDataItem {
|
|
1953
|
+
/**
|
|
1954
|
+
* Text to be displayed for legend item.
|
|
1955
|
+
*/
|
|
1956
|
+
legendText: string | number;
|
|
1957
|
+
/**
|
|
1958
|
+
* Color for the specific legend
|
|
1959
|
+
*/
|
|
1960
|
+
legendColor: string;
|
|
1961
|
+
}
|
|
1962
|
+
|
|
1963
|
+
declare interface LegendMap {
|
|
1964
|
+
[key: string]: boolean;
|
|
1965
|
+
}
|
|
1966
|
+
|
|
1967
|
+
export declare const Legends: React_2.FunctionComponent<LegendsProps>;
|
|
1968
|
+
|
|
1969
|
+
/**
|
|
1970
|
+
* @public
|
|
1971
|
+
* The shape for the legend
|
|
1972
|
+
* default: show the rect legend
|
|
1973
|
+
* triangle: show the triangle legend
|
|
1974
|
+
* {@docCategory Legends}
|
|
1975
|
+
*/
|
|
1976
|
+
export declare type LegendShape = 'default' | 'triangle' | keyof typeof Points | keyof typeof CustomPoints;
|
|
1977
|
+
|
|
1978
|
+
/**
|
|
1979
|
+
* @public
|
|
1980
|
+
* Legend properties
|
|
1981
|
+
* {@docCategory Legends}
|
|
1982
|
+
*/
|
|
1983
|
+
export declare interface LegendsProps {
|
|
1984
|
+
/**
|
|
1985
|
+
* Prop that takes list of legends
|
|
1986
|
+
*/
|
|
1987
|
+
legends: Legend[];
|
|
1988
|
+
/**
|
|
1989
|
+
* Additional CSS class(es) to apply to the legneds component.
|
|
1990
|
+
*/
|
|
1991
|
+
className?: string;
|
|
1992
|
+
/**
|
|
1993
|
+
* Call to provide customized styling that will layer on top of the variant rules.
|
|
1994
|
+
*/
|
|
1995
|
+
styles?: LegendsStyles;
|
|
1996
|
+
/**
|
|
1997
|
+
* This prop makes the legends component align itself to the center in the container it is sitting in
|
|
1998
|
+
*/
|
|
1999
|
+
centerLegends?: boolean;
|
|
2000
|
+
/**
|
|
2001
|
+
* Enable the legends to wrap lines if there is not enough space to show all legends on a single line
|
|
2002
|
+
*/
|
|
2003
|
+
enabledWrapLines?: boolean;
|
|
2004
|
+
/**
|
|
2005
|
+
* style for the overflow component
|
|
2006
|
+
*/
|
|
2007
|
+
overflowStyles?: React_2.CSSProperties;
|
|
2008
|
+
/**
|
|
2009
|
+
* text for overflow legends string
|
|
2010
|
+
*/
|
|
2011
|
+
overflowText?: string;
|
|
2012
|
+
/**
|
|
2013
|
+
* prop that decides if legends are focusable
|
|
2014
|
+
* @default true
|
|
2015
|
+
*/
|
|
2016
|
+
allowFocusOnLegends?: boolean;
|
|
2017
|
+
/**
|
|
2018
|
+
* prop that decide if we can select multiple legends or single legend at a time
|
|
2019
|
+
* @default false
|
|
2020
|
+
*/
|
|
2021
|
+
canSelectMultipleLegends?: boolean;
|
|
2022
|
+
/**
|
|
2023
|
+
* Callback issued when the selected option changes.
|
|
2024
|
+
*/
|
|
2025
|
+
onChange?: (selectedLegends: string[], event: React_2.MouseEvent<HTMLButtonElement>, currentLegend?: Legend) => void;
|
|
2026
|
+
/**
|
|
2027
|
+
* Keys (title) that will be initially used to set selected items. This prop is used for multi-select scenarios when
|
|
2028
|
+
* canSelectMultipleLegends is true; for single-select, use defaultSelectedLegend.
|
|
2029
|
+
*
|
|
2030
|
+
* Updating this prop does not change the selection after the component has been initialized. For controlled
|
|
2031
|
+
* selections, use selectedLegends instead.
|
|
2032
|
+
*
|
|
2033
|
+
* @see selectedLegends for setting the selected legends in controlled mode.
|
|
2034
|
+
* @see defaultSelectedLegend for setting the initially selected legend when canSelectMultipleLegends is false.
|
|
2035
|
+
*/
|
|
2036
|
+
defaultSelectedLegends?: string[];
|
|
2037
|
+
/**
|
|
2038
|
+
* Key that will be initially used to set selected item. This prop is used for single-select scenarios when
|
|
2039
|
+
* canSelectMultipleLegends is false or unspecified; for multi-select, use defaultSelectedLegends.
|
|
2040
|
+
*
|
|
2041
|
+
* Updating this prop does not change the selection after the component has been initialized. For controlled
|
|
2042
|
+
* selections, use selectedLegend instead.
|
|
2043
|
+
*
|
|
2044
|
+
* @see selectedLegend for setting the selected legend in controlled mode.
|
|
2045
|
+
* @see defaultSelectedLegends for setting the initially selected legends when canSelectMultipleLegends is true.
|
|
2046
|
+
*/
|
|
2047
|
+
defaultSelectedLegend?: string;
|
|
2048
|
+
/**
|
|
2049
|
+
* Keys (title) that will be used to set selected items in multi-select scenarios when canSelectMultipleLegends is
|
|
2050
|
+
* true. For single-select, use selectedLegend.
|
|
2051
|
+
*
|
|
2052
|
+
* When this prop is provided, the component is controlled and does not automatically update the selection based on
|
|
2053
|
+
* user interactions; the parent component must update the value passed to this property by handling the onChange
|
|
2054
|
+
* event.
|
|
2055
|
+
*
|
|
2056
|
+
* @see defaultSelectedLegends for setting the initially-selected legends in uncontrolled mode.
|
|
2057
|
+
* @see selectedLegends for setting the selected legends when `canSelectMultipleLegends` is `true`.
|
|
2058
|
+
*/
|
|
2059
|
+
selectedLegends?: string[];
|
|
2060
|
+
/**
|
|
2061
|
+
* Key (title) that will be used to set the selected item in single-select scenarios when canSelectMultipleLegends is
|
|
2062
|
+
* false or unspecified. For multi-select, use selectedLegends.
|
|
2063
|
+
*
|
|
2064
|
+
* When this prop is provided, the component is controlled and does not automatically update the selection based on
|
|
2065
|
+
* user interactions; the parent component must update the value passed to this property by handling the onChange
|
|
2066
|
+
* event.
|
|
2067
|
+
*
|
|
2068
|
+
* @see defaultSelectedLegend for setting the initially-selected legend in uncontrolled mode.
|
|
2069
|
+
* @see selectedLegend for setting the selected legend when `canSelectMultipleLegends` is `false`.
|
|
2070
|
+
*/
|
|
2071
|
+
selectedLegend?: string;
|
|
2072
|
+
/**
|
|
2073
|
+
* The shape for the legend.
|
|
2074
|
+
*/
|
|
2075
|
+
shape?: LegendShape;
|
|
2076
|
+
}
|
|
2077
|
+
|
|
2078
|
+
/**
|
|
2079
|
+
* @public
|
|
2080
|
+
* Legends styles
|
|
2081
|
+
* {@docCategory Legends}
|
|
2082
|
+
*/
|
|
2083
|
+
export declare interface LegendsStyles {
|
|
2084
|
+
/**
|
|
2085
|
+
* Style set for the root of the legend component
|
|
2086
|
+
*/
|
|
2087
|
+
root?: string;
|
|
2088
|
+
/**
|
|
2089
|
+
* Style set for Legend. This is a wrapping class for text of legend and the rectange box that represents a legend
|
|
2090
|
+
*/
|
|
2091
|
+
legend?: string;
|
|
2092
|
+
/**
|
|
2093
|
+
* Style set for the rectangle that represents a legend
|
|
2094
|
+
*/
|
|
2095
|
+
rect?: string;
|
|
2096
|
+
/**
|
|
2097
|
+
* styles set for the shape that represents a legend
|
|
2098
|
+
*/
|
|
2099
|
+
shape?: string;
|
|
2100
|
+
/**
|
|
2101
|
+
* Style set for the triangle that represents a legend
|
|
2102
|
+
*/
|
|
2103
|
+
triangle?: string;
|
|
2104
|
+
/**
|
|
2105
|
+
* Style for the legend text
|
|
2106
|
+
*/
|
|
2107
|
+
text?: string;
|
|
2108
|
+
/**
|
|
2109
|
+
* Style for the legend text
|
|
2110
|
+
*/
|
|
2111
|
+
hoverChange?: string;
|
|
2112
|
+
/**
|
|
2113
|
+
* Style for the area that is resizable
|
|
2114
|
+
*/
|
|
2115
|
+
resizableArea?: string;
|
|
2116
|
+
}
|
|
2117
|
+
|
|
2118
|
+
export declare interface LegendState {
|
|
2119
|
+
activeLegend: string;
|
|
2120
|
+
/** Set of legends selected, both for multiple selection and single selection */
|
|
2121
|
+
selectedLegends: LegendMap;
|
|
2122
|
+
}
|
|
2123
|
+
|
|
2124
|
+
/**
|
|
2125
|
+
* @public
|
|
2126
|
+
* Legend style properties
|
|
2127
|
+
* {@docCategory Legends}
|
|
2128
|
+
*/
|
|
2129
|
+
export declare interface LegendStyleProps {
|
|
2130
|
+
className?: string;
|
|
2131
|
+
colorOnSelectedState?: string;
|
|
2132
|
+
borderColor?: string;
|
|
2133
|
+
opacity?: number;
|
|
2134
|
+
overflow?: boolean;
|
|
2135
|
+
stripePattern?: boolean;
|
|
2136
|
+
isLineLegendInBarChart?: boolean;
|
|
2137
|
+
}
|
|
2138
|
+
|
|
2139
|
+
/**
|
|
2140
|
+
* Linechart component
|
|
2141
|
+
* {@docCategory LineChart}
|
|
2142
|
+
*/
|
|
2143
|
+
export declare const LineChart: React_2.FunctionComponent<LineChartProps>;
|
|
2144
|
+
|
|
2145
|
+
/**
|
|
2146
|
+
* {@docCategory ChartData}
|
|
2147
|
+
*/
|
|
2148
|
+
export declare interface LineChartDataPoint extends BaseDataPoint {
|
|
2149
|
+
/**
|
|
2150
|
+
* Independent value of the data point, rendered along the x-axis.
|
|
2151
|
+
*/
|
|
2152
|
+
x: number | Date;
|
|
2153
|
+
/**
|
|
2154
|
+
* Dependent value of the data point, rendered along the y-axis.
|
|
2155
|
+
*/
|
|
2156
|
+
y: number;
|
|
2157
|
+
}
|
|
2158
|
+
|
|
2159
|
+
/**
|
|
2160
|
+
* {@docCategory ChartData}
|
|
2161
|
+
*/
|
|
2162
|
+
export declare interface LineChartGap {
|
|
2163
|
+
/**
|
|
2164
|
+
* Starting index of the gap.
|
|
2165
|
+
*/
|
|
2166
|
+
startIndex: number;
|
|
2167
|
+
/**
|
|
2168
|
+
* Ending index of the gap.
|
|
2169
|
+
*/
|
|
2170
|
+
endIndex: number;
|
|
2171
|
+
}
|
|
2172
|
+
|
|
2173
|
+
/**
|
|
2174
|
+
* {@docCategory ChartProps}
|
|
2175
|
+
*/
|
|
2176
|
+
export declare interface LineChartLineOptions extends SVGProps<SVGPathElement> {
|
|
2177
|
+
/**
|
|
2178
|
+
* Width of the line/stroke.
|
|
2179
|
+
* Overrides the strokeWidth set on ICartesianChartProps level.
|
|
2180
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-width
|
|
2181
|
+
*/
|
|
2182
|
+
strokeWidth?: number | string;
|
|
2183
|
+
/**
|
|
2184
|
+
* Pattern of dashes and gaps.
|
|
2185
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-dasharray
|
|
2186
|
+
*/
|
|
2187
|
+
strokeDasharray?: string | number;
|
|
2188
|
+
/**
|
|
2189
|
+
* Offset on rendering of stroke dash array.
|
|
2190
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-dashoffset
|
|
2191
|
+
*/
|
|
2192
|
+
strokeDashoffset?: string | number;
|
|
2193
|
+
/**
|
|
2194
|
+
* Shape at the end of a subpath.
|
|
2195
|
+
* Default round.
|
|
2196
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-linecap
|
|
2197
|
+
*/
|
|
2198
|
+
strokeLinecap?: 'butt' | 'round' | 'square' | 'inherit';
|
|
2199
|
+
/**
|
|
2200
|
+
* Width of border around the line. Default no border.
|
|
2201
|
+
*/
|
|
2202
|
+
lineBorderWidth?: string | number;
|
|
2203
|
+
/**
|
|
2204
|
+
* Color of border around the line. Default white.
|
|
2205
|
+
*/
|
|
2206
|
+
lineBorderColor?: string;
|
|
2207
|
+
/**
|
|
2208
|
+
* Defines the type of interpolation used to render the line.
|
|
2209
|
+
* @default 'linear'
|
|
2210
|
+
*/
|
|
2211
|
+
curve?: 'linear' | 'natural' | 'step' | 'stepAfter' | 'stepBefore' | CurveFactory;
|
|
2212
|
+
}
|
|
2213
|
+
|
|
2214
|
+
/**
|
|
2215
|
+
* {@docCategory ChartData}
|
|
2216
|
+
*/
|
|
2217
|
+
export declare interface LineChartPoints {
|
|
2218
|
+
/**
|
|
2219
|
+
* Legend text for the datapoint in the chart
|
|
2220
|
+
*/
|
|
2221
|
+
legend: string;
|
|
2222
|
+
/**
|
|
2223
|
+
* The shape for the legend
|
|
2224
|
+
* default: show the rect legend
|
|
2225
|
+
*/
|
|
2226
|
+
legendShape?: LegendShape;
|
|
2227
|
+
/**
|
|
2228
|
+
* dataPoints for the line chart
|
|
2229
|
+
*/
|
|
2230
|
+
data: LineChartDataPoint[] | ScatterChartDataPoint[];
|
|
2231
|
+
/**
|
|
2232
|
+
* gaps in the line chart where a line is not drawn
|
|
2233
|
+
*/
|
|
2234
|
+
gaps?: LineChartGap[];
|
|
2235
|
+
/**
|
|
2236
|
+
* color for the legend in the chart
|
|
2237
|
+
*/
|
|
2238
|
+
color?: string;
|
|
2239
|
+
/**
|
|
2240
|
+
* opacity for chart fill color
|
|
2241
|
+
*/
|
|
2242
|
+
opacity?: number;
|
|
2243
|
+
/**
|
|
2244
|
+
* options for the line drawn
|
|
2245
|
+
*/
|
|
2246
|
+
lineOptions?: LineChartLineOptions;
|
|
2247
|
+
/**
|
|
2248
|
+
* hide dots for points that are not active
|
|
2249
|
+
*/
|
|
2250
|
+
hideNonActiveDots?: boolean;
|
|
2251
|
+
/**
|
|
2252
|
+
* Defines the function that is executed on clicking this legend
|
|
2253
|
+
*/
|
|
2254
|
+
onLegendClick?: (selectedLegend: string | null | string[]) => void;
|
|
2255
|
+
/**
|
|
2256
|
+
* Defines the function that is executed on clicking line
|
|
2257
|
+
*/
|
|
2258
|
+
onLineClick?: () => void;
|
|
2259
|
+
}
|
|
2260
|
+
|
|
2261
|
+
/**
|
|
2262
|
+
* Line Chart properties
|
|
2263
|
+
* {@docCategory LineChart}
|
|
2264
|
+
*/
|
|
2265
|
+
export declare interface LineChartProps extends CartesianChartProps {
|
|
2266
|
+
/**
|
|
2267
|
+
* Data to render in the chart.
|
|
2268
|
+
*/
|
|
2269
|
+
data: ChartProps;
|
|
2270
|
+
/**
|
|
2271
|
+
* Call to provide customized styling that will layer on top of the variant rules.
|
|
2272
|
+
*/
|
|
2273
|
+
styles?: LineChartStyles;
|
|
2274
|
+
/**
|
|
2275
|
+
* Show event annotation
|
|
2276
|
+
*/
|
|
2277
|
+
eventAnnotationProps?: EventsAnnotationProps;
|
|
2278
|
+
/**
|
|
2279
|
+
* Define a custom callout renderer for a data point
|
|
2280
|
+
*/
|
|
2281
|
+
onRenderCalloutPerDataPoint?: RenderFunction<CustomizedCalloutData>;
|
|
2282
|
+
/**
|
|
2283
|
+
* Define a custom callout renderer for a stack; default is to render per data point
|
|
2284
|
+
*/
|
|
2285
|
+
onRenderCalloutPerStack?: RenderFunction<CustomizedCalloutData>;
|
|
2286
|
+
/**
|
|
2287
|
+
* Callback for getting callout description message
|
|
2288
|
+
*/
|
|
2289
|
+
getCalloutDescriptionMessage?: (calloutDataProps: CustomizedCalloutData) => string | undefined;
|
|
2290
|
+
colorFillBars?: ColorFillBarsProps[];
|
|
2291
|
+
/**
|
|
2292
|
+
* if this is set to true, then for each line there will be a unique shape assigned to the point,
|
|
2293
|
+
* there are total 8 shapes which are as follow circle, square, triangele, diamond, pyramid,
|
|
2294
|
+
* hexagon, pentagon and octagon, which will get assigned as respectively, if there are more
|
|
2295
|
+
* than 8 lines in the line chart then it will again start from cicle to octagon.
|
|
2296
|
+
* setting this flag to true will also change the behavior of the points, like for a
|
|
2297
|
+
* line, last point shape and first point shape will be visible all the times, and all
|
|
2298
|
+
* other points will get enlarge only when hovered over them
|
|
2299
|
+
* if set to false default shape will be circle, with the existing behavior
|
|
2300
|
+
* @default false
|
|
2301
|
+
*/
|
|
2302
|
+
allowMultipleShapesForPoints?: boolean;
|
|
2303
|
+
optimizeLargeData?: boolean;
|
|
2304
|
+
/**
|
|
2305
|
+
* The prop used to define the culture to localized the numbers
|
|
2306
|
+
*/
|
|
2307
|
+
culture?: string;
|
|
2308
|
+
/**
|
|
2309
|
+
* @default false
|
|
2310
|
+
* The prop used to enable the perf optimization
|
|
2311
|
+
*/
|
|
2312
|
+
enablePerfOptimization?: boolean;
|
|
2313
|
+
}
|
|
2314
|
+
|
|
2315
|
+
/**
|
|
2316
|
+
* Line Chart style properties
|
|
2317
|
+
* {@docCategory LineChart}
|
|
2318
|
+
*/
|
|
2319
|
+
export declare interface LineChartStyleProps extends CartesianChartStyleProps {
|
|
2320
|
+
}
|
|
2321
|
+
|
|
2322
|
+
/**
|
|
2323
|
+
* Line Chart styles
|
|
2324
|
+
* {@docCategory LineChart}
|
|
2325
|
+
*/
|
|
2326
|
+
export declare interface LineChartStyles extends CartesianChartStyles {
|
|
2327
|
+
}
|
|
2328
|
+
|
|
2329
|
+
/**
|
|
2330
|
+
* {@docCategory ChartData}
|
|
2331
|
+
*/
|
|
2332
|
+
export declare interface LineDataInVerticalBarChart {
|
|
2333
|
+
y: VerticalBarChartDataPoint['y'];
|
|
2334
|
+
yAxisCalloutData?: string | undefined;
|
|
2335
|
+
/**
|
|
2336
|
+
* onClick action for each datapoint in the chart
|
|
2337
|
+
*/
|
|
2338
|
+
onClick?: VoidFunction;
|
|
2339
|
+
/**
|
|
2340
|
+
* Whether to use the secondary y scale or not
|
|
2341
|
+
* False by default.
|
|
2342
|
+
*/
|
|
2343
|
+
useSecondaryYScale?: boolean;
|
|
2344
|
+
}
|
|
2345
|
+
|
|
2346
|
+
/**
|
|
2347
|
+
* {@docCategory ChartData}
|
|
2348
|
+
*/
|
|
2349
|
+
export declare interface LineDataInVerticalStackedBarChart {
|
|
2350
|
+
y: number;
|
|
2351
|
+
color: string;
|
|
2352
|
+
legend: string;
|
|
2353
|
+
/**
|
|
2354
|
+
* Data to show in callout
|
|
2355
|
+
*/
|
|
2356
|
+
data?: number;
|
|
2357
|
+
yAxisCalloutData?: string;
|
|
2358
|
+
/**
|
|
2359
|
+
* Whether to use the secondary y scale or not
|
|
2360
|
+
* False by default.
|
|
2361
|
+
*/
|
|
2362
|
+
useSecondaryYScale?: boolean;
|
|
2363
|
+
/**
|
|
2364
|
+
* options for the line drawn
|
|
2365
|
+
*/
|
|
2366
|
+
lineOptions?: LineChartLineOptions;
|
|
2367
|
+
}
|
|
2368
|
+
|
|
2369
|
+
export declare interface MapXToDataSet {
|
|
2370
|
+
[key: string]: LineChartDataPoint[];
|
|
2371
|
+
[key: number]: LineChartDataPoint[];
|
|
2372
|
+
}
|
|
2373
|
+
|
|
2374
|
+
/**
|
|
2375
|
+
* {@docCategory ChartProps}
|
|
2376
|
+
*/
|
|
2377
|
+
export declare interface Margins {
|
|
2378
|
+
/**
|
|
2379
|
+
* left margin for the chart.
|
|
2380
|
+
*/
|
|
2381
|
+
left?: number;
|
|
2382
|
+
/**
|
|
2383
|
+
* Right margin for the chart.
|
|
2384
|
+
*/
|
|
2385
|
+
right?: number;
|
|
2386
|
+
/**
|
|
2387
|
+
* Top margin for the chart.
|
|
2388
|
+
*/
|
|
2389
|
+
top?: number;
|
|
2390
|
+
/**
|
|
2391
|
+
* Bottom margin for the chart.
|
|
2392
|
+
*/
|
|
2393
|
+
bottom?: number;
|
|
2394
|
+
}
|
|
2395
|
+
|
|
2396
|
+
export declare interface ModifiedCartesianChartProps extends CartesianChartProps {
|
|
2397
|
+
/**
|
|
2398
|
+
* Define the chart title
|
|
2399
|
+
*/
|
|
2400
|
+
chartTitle?: string;
|
|
2401
|
+
/**
|
|
2402
|
+
* Only used for Area chart
|
|
2403
|
+
* Value used to draw y axis of that chart.
|
|
2404
|
+
*/
|
|
2405
|
+
maxOfYVal?: number;
|
|
2406
|
+
/**
|
|
2407
|
+
* Data of the chart
|
|
2408
|
+
*/
|
|
2409
|
+
points: any;
|
|
2410
|
+
/**
|
|
2411
|
+
* Define type of the chart
|
|
2412
|
+
*/
|
|
2413
|
+
chartType: ChartTypes;
|
|
2414
|
+
/** X axis type */
|
|
2415
|
+
xAxisType: XAxisTypes;
|
|
2416
|
+
/** Y axis type */
|
|
2417
|
+
yAxisType?: YAxisType;
|
|
2418
|
+
/**
|
|
2419
|
+
* Legends of the chart.
|
|
2420
|
+
*/
|
|
2421
|
+
legendBars: JSX.Element | null;
|
|
2422
|
+
/**
|
|
2423
|
+
* Callout props
|
|
2424
|
+
*/
|
|
2425
|
+
calloutProps?: ChartPopoverProps;
|
|
2426
|
+
/**
|
|
2427
|
+
* Callback method used for to get margins to the chart.
|
|
2428
|
+
*/
|
|
2429
|
+
getmargins?: (margins: Margins) => void;
|
|
2430
|
+
/**
|
|
2431
|
+
* This is a call back method to the chart from cartesian chart.
|
|
2432
|
+
* params are xScale, yScale, containerHeight, containerWidth. These values were used to draw the graph.
|
|
2433
|
+
* It also contians an optional param xAxisElement - defines as x axis scale element.
|
|
2434
|
+
* This param used to enable feature word wrap of Xaxis.
|
|
2435
|
+
*/
|
|
2436
|
+
getGraphData?: any;
|
|
2437
|
+
/**
|
|
2438
|
+
* Used for bar chart graphs.
|
|
2439
|
+
* To define width of the bar
|
|
2440
|
+
*/
|
|
2441
|
+
barwidth?: number;
|
|
2442
|
+
/**
|
|
2443
|
+
* Used for tick styles of the x axis of the chart
|
|
2444
|
+
* Tick params are applicable for date axis only.
|
|
2445
|
+
*/
|
|
2446
|
+
tickParams?: {
|
|
2447
|
+
tickValues?: number[] | Date[] | string[];
|
|
2448
|
+
tickFormat?: string;
|
|
2449
|
+
};
|
|
2450
|
+
/**
|
|
2451
|
+
* it's padding between bar's or lines in the graph
|
|
2452
|
+
*/
|
|
2453
|
+
xAxisPadding?: number;
|
|
2454
|
+
/**
|
|
2455
|
+
* it's padding between bar's or lines in the graph
|
|
2456
|
+
*/
|
|
2457
|
+
yAxisPadding?: number;
|
|
2458
|
+
/**
|
|
2459
|
+
* Children elements specific to derived chart types.
|
|
2460
|
+
*/
|
|
2461
|
+
children(props: ChildProps): React_2.ReactNode;
|
|
2462
|
+
/**
|
|
2463
|
+
* To enable callout for individual bar or complete stack. Using for only Vertical stacked bar chart.
|
|
2464
|
+
* @default false
|
|
2465
|
+
* @type \{boolean \}
|
|
2466
|
+
*/
|
|
2467
|
+
isCalloutForStack?: boolean;
|
|
2468
|
+
/** dataset values to find out domain of the String axis
|
|
2469
|
+
* Present using for only vertical stacked bar chart and grouped vertical bar chart
|
|
2470
|
+
*/
|
|
2471
|
+
datasetForXAxisDomain?: string[];
|
|
2472
|
+
/** Own callout design */
|
|
2473
|
+
customizedCallout?: any;
|
|
2474
|
+
/**
|
|
2475
|
+
* if the data points for the y-axis is of type string, then we need to give this
|
|
2476
|
+
* prop to construct the y-axis
|
|
2477
|
+
*/
|
|
2478
|
+
stringDatasetForYAxisDomain?: string[];
|
|
2479
|
+
/**
|
|
2480
|
+
* The prop used to define the culture to localize the numbers and date
|
|
2481
|
+
*/
|
|
2482
|
+
culture?: string;
|
|
2483
|
+
getAxisData?: any;
|
|
2484
|
+
/**
|
|
2485
|
+
* Callback method used when mouse leaves the chart boundary.
|
|
2486
|
+
*/
|
|
2487
|
+
onChartMouseLeave?: () => void;
|
|
2488
|
+
/** Callback method to get extra margins for domain */
|
|
2489
|
+
getDomainMargins?: (containerWidth: number) => Margins;
|
|
2490
|
+
/** Padding between each bar/line-point */
|
|
2491
|
+
xAxisInnerPadding?: number;
|
|
2492
|
+
/** Padding before first bar/line-point and after last bar/line-point */
|
|
2493
|
+
xAxisOuterPadding?: number;
|
|
2494
|
+
/**
|
|
2495
|
+
*@default false
|
|
2496
|
+
*Used for to elipse y axis labes and show tooltip on x axis labels
|
|
2497
|
+
*/
|
|
2498
|
+
showYAxisLablesTooltip?: boolean;
|
|
2499
|
+
/**
|
|
2500
|
+
*@default false
|
|
2501
|
+
*Used for showing complete y axis lables */
|
|
2502
|
+
showYAxisLables?: boolean;
|
|
2503
|
+
/**
|
|
2504
|
+
* @default false
|
|
2505
|
+
* Used to control the first render cycle Performance optimization code.
|
|
2506
|
+
*/
|
|
2507
|
+
enableFirstRenderOptimization?: boolean;
|
|
2508
|
+
}
|
|
2509
|
+
|
|
2510
|
+
declare type NodesInColumns = {
|
|
2511
|
+
[key: number]: SNode[];
|
|
2512
|
+
};
|
|
2513
|
+
|
|
2514
|
+
/**
|
|
2515
|
+
* we need to make sure that if we add any property to this, then
|
|
2516
|
+
* we need to also add that in pointTypes below and vise-versa
|
|
2517
|
+
*/
|
|
2518
|
+
declare enum Points {
|
|
2519
|
+
circle = 0,
|
|
2520
|
+
square = 1,
|
|
2521
|
+
triangle = 2,
|
|
2522
|
+
diamond = 3,
|
|
2523
|
+
pyramid = 4,
|
|
2524
|
+
hexagon = 5,
|
|
2525
|
+
pentagon = 6,
|
|
2526
|
+
octagon = 7
|
|
2527
|
+
}
|
|
2528
|
+
|
|
2529
|
+
export declare interface PopoverComponentStyles {
|
|
2530
|
+
calloutContentRoot: string;
|
|
2531
|
+
calloutDateTimeContainer: string;
|
|
2532
|
+
calloutContentX: string;
|
|
2533
|
+
calloutBlockContainer: string;
|
|
2534
|
+
calloutBlockContainertoDrawShapefalse: string;
|
|
2535
|
+
calloutBlockContainertoDrawShapetrue: string;
|
|
2536
|
+
shapeStyles: string;
|
|
2537
|
+
calloutlegendText: string;
|
|
2538
|
+
calloutContentY: string;
|
|
2539
|
+
descriptionMessage: string;
|
|
2540
|
+
ratio: string;
|
|
2541
|
+
numerator: string;
|
|
2542
|
+
denominator: string;
|
|
2543
|
+
calloutInfoContainer: string;
|
|
2544
|
+
calloutContainer: string;
|
|
2545
|
+
}
|
|
2546
|
+
|
|
2547
|
+
export declare function preRenderLayout(margins: Margins, containerWidth: number, containerHeight: number, isRtl: boolean): {
|
|
2548
|
+
sankey: SankeyLayoutGenerator;
|
|
2549
|
+
height: number;
|
|
2550
|
+
width: number;
|
|
2551
|
+
};
|
|
2552
|
+
|
|
2553
|
+
export declare interface RefArrayData {
|
|
2554
|
+
index?: string;
|
|
2555
|
+
refElement?: SVGGElement;
|
|
2556
|
+
}
|
|
2557
|
+
|
|
2558
|
+
/**
|
|
2559
|
+
* Render function interface for providing overrideable render callbacks.
|
|
2560
|
+
*
|
|
2561
|
+
* @public
|
|
2562
|
+
*/
|
|
2563
|
+
declare interface RenderFunction<P> {
|
|
2564
|
+
(props?: P, defaultRender?: (props?: P) => JSX.Element | null): JSX.Element | null;
|
|
2565
|
+
}
|
|
2566
|
+
|
|
2567
|
+
export declare const ResponsiveContainer: React_2.FC<ResponsiveContainerProps>;
|
|
2568
|
+
|
|
2569
|
+
declare interface ResponsiveContainerProps {
|
|
2570
|
+
children: React_2.ReactElement;
|
|
2571
|
+
onResize?: (width: number, height: number) => void;
|
|
2572
|
+
width?: number | string;
|
|
2573
|
+
height?: number | string;
|
|
2574
|
+
}
|
|
2575
|
+
|
|
2576
|
+
export declare const SankeyChart: React_2.FunctionComponent<SankeyChartProps>;
|
|
2577
|
+
|
|
2578
|
+
/**
|
|
2579
|
+
* Set of strings which are used when rendering accessibility information within the chart.
|
|
2580
|
+
*/
|
|
2581
|
+
export declare interface SankeyChartAccessibilityProps {
|
|
2582
|
+
/**
|
|
2583
|
+
* Aria label for when the chart is empty.
|
|
2584
|
+
*/
|
|
2585
|
+
emptyAriaLabel?: string;
|
|
2586
|
+
/**
|
|
2587
|
+
* A value similar to "node \{0\} with weight \{1\}".
|
|
2588
|
+
* \{0\} is the name of the node.
|
|
2589
|
+
* \{1\} is the weight of the node (as computed by the sankey layout engine via the links to or from this node).
|
|
2590
|
+
*/
|
|
2591
|
+
nodeAriaLabel?: string;
|
|
2592
|
+
/**
|
|
2593
|
+
* A value similar to "link from \{0\} to $\{1\} with weight $\{2\}".
|
|
2594
|
+
* \{0\} is the source node, \{1\} is the target node, and \{2\} is the value of the link.
|
|
2595
|
+
*/
|
|
2596
|
+
linkAriaLabel?: string;
|
|
2597
|
+
}
|
|
2598
|
+
|
|
2599
|
+
/**
|
|
2600
|
+
* {@docCategory ChartData}
|
|
2601
|
+
*/
|
|
2602
|
+
export declare interface SankeyChartData {
|
|
2603
|
+
nodes: SNode[];
|
|
2604
|
+
links: SLink[];
|
|
2605
|
+
}
|
|
2606
|
+
|
|
2607
|
+
/**
|
|
2608
|
+
* Sankey Chart properties
|
|
2609
|
+
* {@docCategory SankeyChart}
|
|
2610
|
+
*/
|
|
2611
|
+
export declare interface SankeyChartProps {
|
|
2612
|
+
/**
|
|
2613
|
+
* Data to render in the chart.
|
|
2614
|
+
*/
|
|
2615
|
+
data: ChartProps;
|
|
2616
|
+
/**
|
|
2617
|
+
* Width of the chart.
|
|
2618
|
+
*/
|
|
2619
|
+
width?: number;
|
|
2620
|
+
/**
|
|
2621
|
+
* Height of the chart.
|
|
2622
|
+
*/
|
|
2623
|
+
height?: number;
|
|
2624
|
+
/**
|
|
2625
|
+
* Additional CSS class(es) to apply to the SankeyChart.
|
|
2626
|
+
*/
|
|
2627
|
+
className?: string;
|
|
2628
|
+
/**
|
|
2629
|
+
* Call to provide customized styling that will layer on top of the variant rules.
|
|
2630
|
+
*/
|
|
2631
|
+
styles?: SankeyChartStyles;
|
|
2632
|
+
/**
|
|
2633
|
+
* this prop takes its parent as a HTML element to define the width and height of the Sankey chart
|
|
2634
|
+
*/
|
|
2635
|
+
parentRef?: HTMLElement | null;
|
|
2636
|
+
/**
|
|
2637
|
+
* should chart resize when parent resize.
|
|
2638
|
+
*/
|
|
2639
|
+
shouldResize?: number;
|
|
2640
|
+
/**
|
|
2641
|
+
* Color for path
|
|
2642
|
+
*/
|
|
2643
|
+
pathColor?: string;
|
|
2644
|
+
/**
|
|
2645
|
+
* Colors for nodes
|
|
2646
|
+
*/
|
|
2647
|
+
colorsForNodes?: string[];
|
|
2648
|
+
/**
|
|
2649
|
+
* Colors for nodes border
|
|
2650
|
+
*/
|
|
2651
|
+
borderColorsForNodes?: string[];
|
|
2652
|
+
/**
|
|
2653
|
+
* Localized strings to show in the UX.
|
|
2654
|
+
*/
|
|
2655
|
+
strings?: SankeyChartStrings;
|
|
2656
|
+
/**
|
|
2657
|
+
* Localized strings to use for the chart's accessibility features.
|
|
2658
|
+
*/
|
|
2659
|
+
accessibility?: SankeyChartAccessibilityProps;
|
|
2660
|
+
/**
|
|
2661
|
+
* Format node and link values.
|
|
2662
|
+
*/
|
|
2663
|
+
formatNumberOptions?: Intl.NumberFormatOptions;
|
|
2664
|
+
/**
|
|
2665
|
+
* Prop to disable shrinking of the chart beyond a certain limit and enable scrolling when the chart overflows
|
|
2666
|
+
* @default true
|
|
2667
|
+
*/
|
|
2668
|
+
enableReflow?: boolean;
|
|
2669
|
+
/**
|
|
2670
|
+
* Optional callback to access the Chart interface. Use this instead of ref for accessing
|
|
2671
|
+
* the public methods and properties of the component.
|
|
2672
|
+
*/
|
|
2673
|
+
componentRef?: RefObject<Chart>;
|
|
2674
|
+
/**
|
|
2675
|
+
* props for the callout in the chart
|
|
2676
|
+
*/
|
|
2677
|
+
calloutProps?: ChartPopoverProps;
|
|
2678
|
+
}
|
|
2679
|
+
|
|
2680
|
+
/**
|
|
2681
|
+
* Set of strings which are used when rendering the chart.
|
|
2682
|
+
*/
|
|
2683
|
+
export declare interface SankeyChartStrings {
|
|
2684
|
+
/**
|
|
2685
|
+
* A value similar to "from \{0\}" where \{0\} is the name of the source node for a link.
|
|
2686
|
+
* This is shown in the `ChartHoverCard` when the user hovers the mouse over a link.
|
|
2687
|
+
*/
|
|
2688
|
+
linkFrom?: string;
|
|
2689
|
+
}
|
|
2690
|
+
|
|
2691
|
+
/**
|
|
2692
|
+
* Sankey Chart styles
|
|
2693
|
+
* {@docCategory SankeyChart}
|
|
2694
|
+
*/
|
|
2695
|
+
export declare interface SankeyChartStyles {
|
|
2696
|
+
/**
|
|
2697
|
+
* Style for the root element.
|
|
2698
|
+
*/
|
|
2699
|
+
root?: string;
|
|
2700
|
+
/**
|
|
2701
|
+
* Style for the nodes.
|
|
2702
|
+
*/
|
|
2703
|
+
nodes?: string;
|
|
2704
|
+
/**
|
|
2705
|
+
* Style for the links.
|
|
2706
|
+
*/
|
|
2707
|
+
links?: string;
|
|
2708
|
+
/**
|
|
2709
|
+
* Style for the text inside node.
|
|
2710
|
+
*/
|
|
2711
|
+
nodeTextContainer?: string;
|
|
2712
|
+
/**
|
|
2713
|
+
* Style for the tooltip ,when user hover over the truncated node detail.
|
|
2714
|
+
*/
|
|
2715
|
+
toolTip?: string;
|
|
2716
|
+
/**
|
|
2717
|
+
* Styles for the chart wrapper div
|
|
2718
|
+
*/
|
|
2719
|
+
chartWrapper?: string;
|
|
2720
|
+
}
|
|
2721
|
+
|
|
2722
|
+
declare type SankeyLayoutGenerator = SankeyLayout<SankeyGraph<{}, {}>, {}, {}>;
|
|
2723
|
+
|
|
2724
|
+
/**
|
|
2725
|
+
* ScatterChart component
|
|
2726
|
+
* {@docCategory ScatterChart}
|
|
2727
|
+
*/
|
|
2728
|
+
export declare const ScatterChart: React_2.FunctionComponent<ScatterChartProps>;
|
|
2729
|
+
|
|
2730
|
+
/**
|
|
2731
|
+
* {@docCategory ChartData}
|
|
2732
|
+
* ScatterChartDataPoint interface.
|
|
2733
|
+
*/
|
|
2734
|
+
export declare interface ScatterChartDataPoint extends BaseDataPoint {
|
|
2735
|
+
/**
|
|
2736
|
+
* Independent value of the data point, rendered along the x-axis.
|
|
2737
|
+
*/
|
|
2738
|
+
x: number | Date | string;
|
|
2739
|
+
/**
|
|
2740
|
+
* Dependent value of the data point, rendered along the y-axis.
|
|
2741
|
+
*/
|
|
2742
|
+
y: number;
|
|
2743
|
+
/**
|
|
2744
|
+
* Marker size of the points
|
|
2745
|
+
*/
|
|
2746
|
+
markerSize?: number;
|
|
2747
|
+
}
|
|
2748
|
+
|
|
2749
|
+
/**
|
|
2750
|
+
* Line Chart properties
|
|
2751
|
+
* {@docCategory LineChart}
|
|
2752
|
+
*/
|
|
2753
|
+
export declare interface ScatterChartProps extends CartesianChartProps {
|
|
2754
|
+
/**
|
|
2755
|
+
* Data to render in the chart.
|
|
2756
|
+
*/
|
|
2757
|
+
data: ChartProps;
|
|
2758
|
+
/**
|
|
2759
|
+
* Call to provide customized styling that will layer on top of the variant rules.
|
|
2760
|
+
*/
|
|
2761
|
+
styles?: ScatterChartStyles;
|
|
2762
|
+
/**
|
|
2763
|
+
* Define a custom callout renderer for a data point
|
|
2764
|
+
*/
|
|
2765
|
+
onRenderCalloutPerDataPoint?: RenderFunction<CustomizedCalloutData>;
|
|
2766
|
+
/**
|
|
2767
|
+
* Callback for getting callout description message
|
|
2768
|
+
*/
|
|
2769
|
+
getCalloutDescriptionMessage?: (calloutDataProps: CustomizedCalloutData) => string | undefined;
|
|
2770
|
+
/**
|
|
2771
|
+
* The prop used to define the culture to localized the numbers
|
|
2772
|
+
*/
|
|
2773
|
+
culture?: string;
|
|
2774
|
+
}
|
|
2775
|
+
|
|
2776
|
+
/**
|
|
2777
|
+
* Scatter Chart style properties
|
|
2778
|
+
* {@docCategory ScatterChart}
|
|
2779
|
+
*/
|
|
2780
|
+
export declare interface ScatterChartStyleProps extends CartesianChartStyleProps {
|
|
2781
|
+
}
|
|
2782
|
+
|
|
2783
|
+
/**
|
|
2784
|
+
* Scatter Chart styles
|
|
2785
|
+
* {@docCategory ScatterChart}
|
|
2786
|
+
*/
|
|
2787
|
+
export declare interface ScatterChartStyles extends CartesianChartStyles {
|
|
2788
|
+
}
|
|
2789
|
+
|
|
2790
|
+
/**
|
|
2791
|
+
* DeclarativeChart schema.
|
|
2792
|
+
* {@docCategory DeclarativeChart}
|
|
2793
|
+
*/
|
|
2794
|
+
export declare interface Schema {
|
|
2795
|
+
/**
|
|
2796
|
+
* Plotly schema represented as JSON object
|
|
2797
|
+
*/
|
|
2798
|
+
plotlySchema: any;
|
|
2799
|
+
}
|
|
2800
|
+
|
|
2801
|
+
export declare const Shape: React_2.FunctionComponent<ShapeProps>;
|
|
2802
|
+
|
|
2803
|
+
export declare interface ShapeProps {
|
|
2804
|
+
svgProps: React_2.SVGAttributes<SVGElement>;
|
|
2805
|
+
pathProps: React_2.SVGAttributes<SVGPathElement>;
|
|
2806
|
+
shape: LegendShape;
|
|
2807
|
+
classNameForNonSvg?: string;
|
|
2808
|
+
style?: React_2.CSSProperties | undefined;
|
|
2809
|
+
}
|
|
2810
|
+
|
|
2811
|
+
export declare type SLink = SankeyLink<SNodeExtra, SLinkExtra>;
|
|
2812
|
+
|
|
2813
|
+
declare interface SLinkExtra {
|
|
2814
|
+
/**
|
|
2815
|
+
* The index within `ISankeyChartData.nodes` of the source node.
|
|
2816
|
+
*/
|
|
2817
|
+
source: number;
|
|
2818
|
+
/**
|
|
2819
|
+
* The index within `ISankeyChartData.nodes` of the target node.
|
|
2820
|
+
*/
|
|
2821
|
+
target: number;
|
|
2822
|
+
/**
|
|
2823
|
+
* The weight of this link between the two nodes.
|
|
2824
|
+
*/
|
|
2825
|
+
value: number;
|
|
2826
|
+
unnormalizedValue?: number;
|
|
2827
|
+
}
|
|
2828
|
+
|
|
2829
|
+
export declare type SNode = SankeyNode<SNodeExtra, SLinkExtra>;
|
|
2830
|
+
|
|
2831
|
+
declare interface SNodeExtra {
|
|
2832
|
+
/**
|
|
2833
|
+
* A unique identifier for this node.
|
|
2834
|
+
*/
|
|
2835
|
+
nodeId: number | string;
|
|
2836
|
+
/**
|
|
2837
|
+
* The display name for this node in the UX.
|
|
2838
|
+
*/
|
|
2839
|
+
name: string;
|
|
2840
|
+
color?: string;
|
|
2841
|
+
borderColor?: string;
|
|
2842
|
+
actualValue?: number;
|
|
2843
|
+
layer?: number;
|
|
2844
|
+
}
|
|
2845
|
+
|
|
2846
|
+
/**
|
|
2847
|
+
* Sparkline is the context wrapper and container for all Sparkline content/controls,
|
|
2848
|
+
* It has no direct style or slot opinions.
|
|
2849
|
+
*
|
|
2850
|
+
* Sparkline also provides API interfaces for callbacks that will occur on navigation events.
|
|
2851
|
+
*/
|
|
2852
|
+
export declare const Sparkline: React_2.FunctionComponent<SparklineProps>;
|
|
2853
|
+
|
|
2854
|
+
/**
|
|
2855
|
+
* Sparkline properties
|
|
2856
|
+
* {@docCategory SparklineChart}
|
|
2857
|
+
*/
|
|
2858
|
+
export declare interface SparklineProps extends React.RefAttributes<HTMLDivElement> {
|
|
2859
|
+
/**
|
|
2860
|
+
* An array of chart data points for the Sparkline chart
|
|
2861
|
+
*/
|
|
2862
|
+
data?: ChartProps;
|
|
2863
|
+
/**
|
|
2864
|
+
* Width of chart
|
|
2865
|
+
* * @default 80
|
|
2866
|
+
*/
|
|
2867
|
+
width?: number;
|
|
2868
|
+
/**
|
|
2869
|
+
* Height of chart
|
|
2870
|
+
* @default 20
|
|
2871
|
+
*/
|
|
2872
|
+
height?: number;
|
|
2873
|
+
/**
|
|
2874
|
+
* Width of value text
|
|
2875
|
+
* * @default 80
|
|
2876
|
+
*/
|
|
2877
|
+
valueTextWidth?: number;
|
|
2878
|
+
/**
|
|
2879
|
+
* Additional CSS class(es) to apply to the SparklineChart.
|
|
2880
|
+
*/
|
|
2881
|
+
className?: string;
|
|
2882
|
+
/**
|
|
2883
|
+
* The prop used to define the culture to localized the numbers
|
|
2884
|
+
*/
|
|
2885
|
+
culture?: string;
|
|
2886
|
+
/**
|
|
2887
|
+
* Prop used to determine whether to show the legend or not
|
|
2888
|
+
*/
|
|
2889
|
+
showLegend?: boolean;
|
|
2890
|
+
/**
|
|
2891
|
+
* Call to provide customized styling that will layer on top of the variant rules.
|
|
2892
|
+
*/
|
|
2893
|
+
styles?: SparklineStyles;
|
|
2894
|
+
}
|
|
2895
|
+
|
|
2896
|
+
export declare interface SparklineStyleProps extends CartesianChartStyleProps {
|
|
2897
|
+
}
|
|
2898
|
+
|
|
2899
|
+
/**
|
|
2900
|
+
* Sparkline styles
|
|
2901
|
+
* {@docCategory SparklineChart}
|
|
2902
|
+
*/
|
|
2903
|
+
export declare interface SparklineStyles {
|
|
2904
|
+
inlineBlock?: string;
|
|
2905
|
+
valueText?: string;
|
|
2906
|
+
}
|
|
2907
|
+
|
|
2908
|
+
export declare const Textbox: React_2.FunctionComponent<TextboxProps>;
|
|
2909
|
+
|
|
2910
|
+
declare interface TextboxProps {
|
|
2911
|
+
text: string;
|
|
2912
|
+
width: number;
|
|
2913
|
+
x: number;
|
|
2914
|
+
y: number;
|
|
2915
|
+
lineHeight: number;
|
|
2916
|
+
textAnchor?: 'start' | 'middle' | 'end';
|
|
2917
|
+
fontSize?: string;
|
|
2918
|
+
fill?: string;
|
|
2919
|
+
}
|
|
2920
|
+
|
|
2921
|
+
/**
|
|
2922
|
+
* VerticalBarchart component
|
|
2923
|
+
* {@docCategory VerticalBarChart}
|
|
2924
|
+
*/
|
|
2925
|
+
export declare const VerticalBarChart: React_2.FunctionComponent<VerticalBarChartProps>;
|
|
2926
|
+
|
|
2927
|
+
/**
|
|
2928
|
+
* {@docCategory ChartData}
|
|
2929
|
+
*/
|
|
2930
|
+
export declare interface VerticalBarChartDataPoint {
|
|
2931
|
+
/**
|
|
2932
|
+
* Independent value of the data point, rendered along the x-axis.
|
|
2933
|
+
* If x is a number, then each y-coordinate is plotted at its x-coordinate.
|
|
2934
|
+
* If x is a string, then the data is evenly spaced along the x-axis.
|
|
2935
|
+
*/
|
|
2936
|
+
x: number | string | Date;
|
|
2937
|
+
/**
|
|
2938
|
+
* Dependent value of the data point, rendered along the y-axis.
|
|
2939
|
+
*/
|
|
2940
|
+
y: number;
|
|
2941
|
+
/**
|
|
2942
|
+
* Legend text for the datapoint in the chart
|
|
2943
|
+
*/
|
|
2944
|
+
legend?: string;
|
|
2945
|
+
/**
|
|
2946
|
+
* color for the legend in the chart
|
|
2947
|
+
*/
|
|
2948
|
+
color?: string;
|
|
2949
|
+
/**
|
|
2950
|
+
* Callout data for x axis
|
|
2951
|
+
* This is an optional prop, If haven;t given legend will take
|
|
2952
|
+
*/
|
|
2953
|
+
xAxisCalloutData?: string;
|
|
2954
|
+
/**
|
|
2955
|
+
* Callout data for y axis
|
|
2956
|
+
* This is an optional prop, If haven't given data will take
|
|
2957
|
+
*/
|
|
2958
|
+
yAxisCalloutData?: string;
|
|
2959
|
+
/**
|
|
2960
|
+
* data to render the line along with bars
|
|
2961
|
+
*/
|
|
2962
|
+
lineData?: LineDataInVerticalBarChart;
|
|
2963
|
+
/**
|
|
2964
|
+
* onClick action for each datapoint in the chart
|
|
2965
|
+
*/
|
|
2966
|
+
onClick?: VoidFunction;
|
|
2967
|
+
/**
|
|
2968
|
+
* Accessibility data for callout
|
|
2969
|
+
*/
|
|
2970
|
+
callOutAccessibilityData?: AccessibilityProps;
|
|
2971
|
+
}
|
|
2972
|
+
|
|
2973
|
+
/**
|
|
2974
|
+
* Vertical Bar Chart properties
|
|
2975
|
+
* {@docCategory VerticalBarChart}
|
|
2976
|
+
*/
|
|
2977
|
+
export declare interface VerticalBarChartProps extends CartesianChartProps {
|
|
2978
|
+
/**
|
|
2979
|
+
* Data to render in the chart.
|
|
2980
|
+
*/
|
|
2981
|
+
data?: VerticalBarChartDataPoint[];
|
|
2982
|
+
/**
|
|
2983
|
+
* Define a custom callout renderer for a data point.
|
|
2984
|
+
*/
|
|
2985
|
+
onRenderCalloutPerDataPoint?: RenderFunction<VerticalBarChartDataPoint>;
|
|
2986
|
+
/**
|
|
2987
|
+
* Width of each bar in the chart. When set to `undefined` or `'default'`, the bar width defaults to 16px,
|
|
2988
|
+
* which may decrease to prevent overlap. When set to `'auto'`, the bar width is calculated from padding values.
|
|
2989
|
+
* @default 16
|
|
2990
|
+
*/
|
|
2991
|
+
barWidth?: number | 'default' | 'auto';
|
|
2992
|
+
/**
|
|
2993
|
+
* Colors from which to select the color of each bar.
|
|
2994
|
+
*/
|
|
2995
|
+
colors?: string[];
|
|
2996
|
+
/**
|
|
2997
|
+
* chart title for the chart
|
|
2998
|
+
*/
|
|
2999
|
+
chartTitle?: string;
|
|
3000
|
+
/**
|
|
3001
|
+
* Legend text for the line datapoint in the chart
|
|
3002
|
+
*/
|
|
3003
|
+
lineLegendText?: string;
|
|
3004
|
+
/**
|
|
3005
|
+
* color for the legend of the line in the chart
|
|
3006
|
+
* @default theme.yellow
|
|
3007
|
+
*/
|
|
3008
|
+
lineLegendColor?: string;
|
|
3009
|
+
/**
|
|
3010
|
+
* This prop makes sure that all the bars are of same color.
|
|
3011
|
+
* it will take the first color from the array of colors in
|
|
3012
|
+
* prop `colors` or if `colors` prop is not given then default color is palette.blueLight
|
|
3013
|
+
* @default false
|
|
3014
|
+
*/
|
|
3015
|
+
useSingleColor?: boolean;
|
|
3016
|
+
/**
|
|
3017
|
+
* Call to provide customized styling that will layer on top of the variant rules.
|
|
3018
|
+
*/
|
|
3019
|
+
styles?: VerticalBarChartStyles;
|
|
3020
|
+
/**
|
|
3021
|
+
* The prop used to define the culture to localized the numbers
|
|
3022
|
+
*/
|
|
3023
|
+
culture?: string;
|
|
3024
|
+
/**
|
|
3025
|
+
* it's padding between bar's or lines in the graph
|
|
3026
|
+
*/
|
|
3027
|
+
xAxisPadding?: number;
|
|
3028
|
+
/**
|
|
3029
|
+
* options for the line drawn
|
|
3030
|
+
*/
|
|
3031
|
+
lineOptions?: LineChartLineOptions;
|
|
3032
|
+
/**
|
|
3033
|
+
* Prop to hide the bar labels
|
|
3034
|
+
* @default false
|
|
3035
|
+
*/
|
|
3036
|
+
hideLabels?: boolean;
|
|
3037
|
+
/**
|
|
3038
|
+
* Maximum width of a bar, in pixels.
|
|
3039
|
+
* @default 24
|
|
3040
|
+
*/
|
|
3041
|
+
maxBarWidth?: number;
|
|
3042
|
+
/**
|
|
3043
|
+
* Padding between bars as a fraction of the [step](https://d3js.org/d3-scale/band#band_step).
|
|
3044
|
+
* Takes a number in the range [0, 1]. Only applicable to string x-axis.
|
|
3045
|
+
* @default 2/3
|
|
3046
|
+
*/
|
|
3047
|
+
xAxisInnerPadding?: number;
|
|
3048
|
+
/**
|
|
3049
|
+
* Padding before the first bar and after the last bar as a fraction of
|
|
3050
|
+
* the [step](https://d3js.org/d3-scale/band#band_step). Takes a number in the range [0, 1].
|
|
3051
|
+
* Only applicable to string x-axis.
|
|
3052
|
+
*/
|
|
3053
|
+
xAxisOuterPadding?: number;
|
|
3054
|
+
/**
|
|
3055
|
+
* @default false
|
|
3056
|
+
* The prop used to enable gradient fill color for the chart.
|
|
3057
|
+
*/
|
|
3058
|
+
enableGradient?: boolean;
|
|
3059
|
+
/**
|
|
3060
|
+
* @default false
|
|
3061
|
+
* The prop used to enable rounded corners for the chart.
|
|
3062
|
+
*/
|
|
3063
|
+
roundCorners?: boolean;
|
|
3064
|
+
/**
|
|
3065
|
+
* Specifies the mode of the chart.
|
|
3066
|
+
* @default 'default'
|
|
3067
|
+
*/
|
|
3068
|
+
mode?: 'default' | 'plotly';
|
|
3069
|
+
}
|
|
3070
|
+
|
|
3071
|
+
/**
|
|
3072
|
+
* Vertical Bar Chart style properties
|
|
3073
|
+
* {@docCategory VerticalBarChart}
|
|
3074
|
+
*/
|
|
3075
|
+
export declare interface VerticalBarChartStyleProps extends CartesianChartStyleProps {
|
|
3076
|
+
/**
|
|
3077
|
+
* color of the datapoint legend
|
|
3078
|
+
*/
|
|
3079
|
+
legendColor?: string;
|
|
3080
|
+
}
|
|
3081
|
+
|
|
3082
|
+
/**
|
|
3083
|
+
* Vertical Bar Chart styles
|
|
3084
|
+
* {@docCategory VerticalBarChart}
|
|
3085
|
+
*/
|
|
3086
|
+
export declare interface VerticalBarChartStyles extends CartesianChartStyles {
|
|
3087
|
+
/**
|
|
3088
|
+
* Style for the bar labels
|
|
3089
|
+
*/
|
|
3090
|
+
barLabel: string;
|
|
3091
|
+
}
|
|
3092
|
+
|
|
3093
|
+
export declare const VerticalStackedBarChart: React_2.FunctionComponent<VerticalStackedBarChartProps>;
|
|
3094
|
+
|
|
3095
|
+
/**
|
|
3096
|
+
* Vertical Stacked Bar Chart properties
|
|
3097
|
+
* {@docCategory VerticalStackedBarChart}
|
|
3098
|
+
*/
|
|
3099
|
+
export declare interface VerticalStackedBarChartProps extends CartesianChartProps {
|
|
3100
|
+
/**
|
|
3101
|
+
* Data to render in the chart.
|
|
3102
|
+
*/
|
|
3103
|
+
data: VerticalStackedChartProps[];
|
|
3104
|
+
/**
|
|
3105
|
+
* Width of each bar in the chart. When set to `undefined` or `'default'`, the bar width defaults to 16px,
|
|
3106
|
+
* which may decrease to prevent overlap. When set to `'auto'`, the bar width is calculated from padding values.
|
|
3107
|
+
*/
|
|
3108
|
+
barWidth?: number | 'default' | 'auto';
|
|
3109
|
+
/**
|
|
3110
|
+
* Gap (max) between bars in a stack. When non-zero, the bars in a stack will
|
|
3111
|
+
* be separated by gaps. The actual size of each gap is calculated as 20% of
|
|
3112
|
+
* the height of that stack, with a minimum size of 1px and a maximum given by
|
|
3113
|
+
* this prop.
|
|
3114
|
+
* @default 0
|
|
3115
|
+
*/
|
|
3116
|
+
barGapMax?: number;
|
|
3117
|
+
/**
|
|
3118
|
+
* Corner radius of the bars
|
|
3119
|
+
* @default 0
|
|
3120
|
+
*/
|
|
3121
|
+
barCornerRadius?: number;
|
|
3122
|
+
/**
|
|
3123
|
+
* The minimum height of a bar; bars below this height will be displayed at
|
|
3124
|
+
* this height. Note that this setting will result in the height of these data
|
|
3125
|
+
* points not being to scale.
|
|
3126
|
+
* @default 0
|
|
3127
|
+
*/
|
|
3128
|
+
barMinimumHeight?: number;
|
|
3129
|
+
/**
|
|
3130
|
+
* chart title for the chart
|
|
3131
|
+
*/
|
|
3132
|
+
chartTitle?: string;
|
|
3133
|
+
/**
|
|
3134
|
+
* To display multi stack callout or single callout
|
|
3135
|
+
* @default flase
|
|
3136
|
+
*/
|
|
3137
|
+
isCalloutForStack?: boolean;
|
|
3138
|
+
/**
|
|
3139
|
+
* Call to provide customized styling that will layer on top of the variant rules.
|
|
3140
|
+
*/
|
|
3141
|
+
styles?: VerticalStackedBarChartStyles;
|
|
3142
|
+
/**
|
|
3143
|
+
* Define a custom callout renderer for a stack; default is to render per data point
|
|
3144
|
+
*/
|
|
3145
|
+
onRenderCalloutPerStack?: RenderFunction<VerticalStackedChartProps>;
|
|
3146
|
+
/**
|
|
3147
|
+
* Define a custom callout renderer for a data point
|
|
3148
|
+
*/
|
|
3149
|
+
onRenderCalloutPerDataPoint?: RenderFunction<VSChartDataPoint>;
|
|
3150
|
+
/**
|
|
3151
|
+
* yMinValue is not supported for bar charts, so only allow "undefined"
|
|
3152
|
+
*/
|
|
3153
|
+
yMinValue?: undefined;
|
|
3154
|
+
/**
|
|
3155
|
+
* Allow hover actions on the legend
|
|
3156
|
+
* @default true
|
|
3157
|
+
*/
|
|
3158
|
+
allowHoverOnLegend?: boolean;
|
|
3159
|
+
/**
|
|
3160
|
+
* Click handler for bars; type of data is dependant on isCalloutForStack
|
|
3161
|
+
*/
|
|
3162
|
+
onBarClick?: (event: React_2.MouseEvent<SVGElement>, data: VerticalStackedChartProps | VSChartDataPoint) => void;
|
|
3163
|
+
/**
|
|
3164
|
+
* The prop used to define the culture to localized the numbers
|
|
3165
|
+
*/
|
|
3166
|
+
culture?: string;
|
|
3167
|
+
/**
|
|
3168
|
+
* it's padding between bar's or lines in the graph
|
|
3169
|
+
*/
|
|
3170
|
+
xAxisPadding?: number;
|
|
3171
|
+
/**
|
|
3172
|
+
* options for the line drawn
|
|
3173
|
+
*/
|
|
3174
|
+
lineOptions?: LineChartLineOptions;
|
|
3175
|
+
/**
|
|
3176
|
+
* Prop to hide the bar labels
|
|
3177
|
+
* @default false
|
|
3178
|
+
*/
|
|
3179
|
+
hideLabels?: boolean;
|
|
3180
|
+
/**
|
|
3181
|
+
* Maximum width of a bar, in pixels.
|
|
3182
|
+
* @default 24
|
|
3183
|
+
*/
|
|
3184
|
+
maxBarWidth?: number;
|
|
3185
|
+
/**
|
|
3186
|
+
* Padding between bars as a fraction of the [step](https://d3js.org/d3-scale/band#band_step).
|
|
3187
|
+
* Takes a number in the range [0, 1]. Only applicable to string x-axis.
|
|
3188
|
+
* @default 2/3
|
|
3189
|
+
*/
|
|
3190
|
+
xAxisInnerPadding?: number;
|
|
3191
|
+
/**
|
|
3192
|
+
* Padding before the first bar and after the last bar as a fraction of
|
|
3193
|
+
* the [step](https://d3js.org/d3-scale/band#band_step). Takes a number in the range [0, 1].
|
|
3194
|
+
* Only applicable to string x-axis.
|
|
3195
|
+
*/
|
|
3196
|
+
xAxisOuterPadding?: number;
|
|
3197
|
+
/**
|
|
3198
|
+
* @default false
|
|
3199
|
+
* The prop used to enable gradient fill color for the chart.
|
|
3200
|
+
*/
|
|
3201
|
+
enableGradient?: boolean;
|
|
3202
|
+
/**
|
|
3203
|
+
* @default false
|
|
3204
|
+
* The prop used to enable rounded corners for the chart.
|
|
3205
|
+
*/
|
|
3206
|
+
roundCorners?: boolean;
|
|
3207
|
+
/**
|
|
3208
|
+
* Specifies the mode of the chart.
|
|
3209
|
+
* @default 'default'
|
|
3210
|
+
*/
|
|
3211
|
+
mode?: 'default' | 'plotly';
|
|
3212
|
+
}
|
|
3213
|
+
|
|
3214
|
+
/**
|
|
3215
|
+
* Vertical Stacked Bar Chart style properties
|
|
3216
|
+
* {@docCategory VerticalStackedBarChart}
|
|
3217
|
+
*/
|
|
3218
|
+
export declare interface VerticalStackedBarChartStyleProps extends CartesianChartStyleProps {
|
|
3219
|
+
}
|
|
3220
|
+
|
|
3221
|
+
/**
|
|
3222
|
+
* Vertical Stacked Bar Chart styles
|
|
3223
|
+
* {@docCategory VerticalStackedBarChart}
|
|
3224
|
+
*/
|
|
3225
|
+
export declare interface VerticalStackedBarChartStyles extends CartesianChartStyles {
|
|
3226
|
+
/**
|
|
3227
|
+
* Style to change the opacity of bars in dataviz when we hover on a single bar or legends
|
|
3228
|
+
*/
|
|
3229
|
+
opacityChangeOnHover?: string;
|
|
3230
|
+
/**
|
|
3231
|
+
* Style for the bar labels
|
|
3232
|
+
*/
|
|
3233
|
+
barLabel: string;
|
|
3234
|
+
}
|
|
3235
|
+
|
|
3236
|
+
/**
|
|
3237
|
+
* {@docCategory ChartData}
|
|
3238
|
+
*/
|
|
3239
|
+
export declare interface VerticalStackedBarDataPoint extends Omit<DataPoint, 'x'> {
|
|
3240
|
+
/**
|
|
3241
|
+
* Independent value of the data point, rendered along the x-axis.
|
|
3242
|
+
* If x is a number, then each y-coordinate is plotted at its x-coordinate.
|
|
3243
|
+
* If x is a string, then the data is evenly spaced along the x-axis.
|
|
3244
|
+
* If data type on x is Date, then the data is spaced evenly by d3-scale.
|
|
3245
|
+
*/
|
|
3246
|
+
x: number | string | Date;
|
|
3247
|
+
}
|
|
3248
|
+
|
|
3249
|
+
/**
|
|
3250
|
+
* {@docCategory ChartProps}
|
|
3251
|
+
*/
|
|
3252
|
+
export declare interface VerticalStackedChartProps {
|
|
3253
|
+
/**
|
|
3254
|
+
* data for the points in the chart
|
|
3255
|
+
*/
|
|
3256
|
+
chartData: VSChartDataPoint[];
|
|
3257
|
+
/**
|
|
3258
|
+
* Data for x axis label for multistacked Vertical bar chart
|
|
3259
|
+
*/
|
|
3260
|
+
xAxisPoint: number | string | Date;
|
|
3261
|
+
/**
|
|
3262
|
+
* Callout data for x axis
|
|
3263
|
+
* This is an optional prop, If haven't given, legend will take
|
|
3264
|
+
*/
|
|
3265
|
+
xAxisCalloutData?: string;
|
|
3266
|
+
/**
|
|
3267
|
+
* line data to render lines on stacked bar chart
|
|
3268
|
+
*/
|
|
3269
|
+
lineData?: LineDataInVerticalStackedBarChart[];
|
|
3270
|
+
/**
|
|
3271
|
+
* Accessibility data for Whole stack callout
|
|
3272
|
+
*/
|
|
3273
|
+
stackCallOutAccessibilityData?: AccessibilityProps;
|
|
3274
|
+
}
|
|
3275
|
+
|
|
3276
|
+
/**
|
|
3277
|
+
* {@docCategory ChartData}
|
|
3278
|
+
*/
|
|
3279
|
+
export declare interface VSChartDataPoint {
|
|
3280
|
+
/**
|
|
3281
|
+
* data the datapoint in the chart
|
|
3282
|
+
*/
|
|
3283
|
+
data: number;
|
|
3284
|
+
/**
|
|
3285
|
+
* Legend text for the datapoint in the chart
|
|
3286
|
+
*/
|
|
3287
|
+
legend: string;
|
|
3288
|
+
/**
|
|
3289
|
+
* color for the legend in the chart
|
|
3290
|
+
*/
|
|
3291
|
+
color?: string;
|
|
3292
|
+
/**
|
|
3293
|
+
* Callout data for x axis
|
|
3294
|
+
* This is an optional prop, If haven;t given legend will take
|
|
3295
|
+
*/
|
|
3296
|
+
xAxisCalloutData?: string;
|
|
3297
|
+
/**
|
|
3298
|
+
* Callout data for y axis
|
|
3299
|
+
* This is an optional prop, If haven't given data will take
|
|
3300
|
+
*/
|
|
3301
|
+
yAxisCalloutData?: string;
|
|
3302
|
+
/**
|
|
3303
|
+
* Accessibility data for callout
|
|
3304
|
+
*/
|
|
3305
|
+
callOutAccessibilityData?: AccessibilityProps;
|
|
3306
|
+
/**
|
|
3307
|
+
* The prop used to define the culture to localized the numbers
|
|
3308
|
+
*/
|
|
3309
|
+
culture?: string;
|
|
3310
|
+
}
|
|
3311
|
+
|
|
3312
|
+
declare enum XAxisTypes {
|
|
3313
|
+
NumericAxis = 0,
|
|
3314
|
+
DateAxis = 1,
|
|
3315
|
+
StringAxis = 2
|
|
3316
|
+
}
|
|
3317
|
+
|
|
3318
|
+
declare enum YAxisType {
|
|
3319
|
+
NumericAxis = 0,
|
|
3320
|
+
DateAxis = 1,
|
|
3321
|
+
StringAxis = 2
|
|
3322
|
+
}
|
|
3323
|
+
|
|
3324
|
+
export declare interface YValueHover {
|
|
3325
|
+
legend?: string;
|
|
3326
|
+
y?: number;
|
|
3327
|
+
color?: string;
|
|
3328
|
+
data?: string | number;
|
|
3329
|
+
shouldDrawBorderBottom?: boolean;
|
|
3330
|
+
yAxisCalloutData?: string | {
|
|
3331
|
+
[id: string]: number;
|
|
3332
|
+
};
|
|
3333
|
+
index?: number;
|
|
3334
|
+
callOutAccessibilityData?: AccessibilityProps;
|
|
3335
|
+
}
|
|
3336
|
+
|
|
3337
|
+
export { }
|