@splunk/visualizations 28.2.3 → 28.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Area/Area.d.ts.map +1 -0
- package/Area/areaUtils.d.ts.map +1 -0
- package/Area/config.d.ts.map +1 -0
- package/Area/index.d.ts.map +1 -0
- package/Area.config.js +0 -1
- package/Area.config.js.map +2 -2
- package/Area.js +711 -184
- package/Area.js.map +4 -4
- package/Bar/Bar.d.ts.map +1 -0
- package/Bar/barUtils.d.ts.map +1 -0
- package/Bar/config.d.ts.map +1 -0
- package/Bar/index.d.ts.map +1 -0
- package/Bar.config.js +0 -1
- package/Bar.config.js.map +2 -2
- package/Bar.js +721 -184
- package/Bar.js.map +4 -4
- package/Bubble/Bubble.d.ts.map +1 -0
- package/Bubble/bubbleUtils.d.ts.map +1 -0
- package/Bubble/config.d.ts.map +1 -0
- package/Bubble/index.d.ts.map +1 -0
- package/Bubble.config.js +0 -1
- package/Bubble.config.js.map +2 -2
- package/Bubble.js +706 -167
- package/Bubble.js.map +4 -4
- package/CHANGELOG.external.md +99 -2
- package/{dist/types/ChoroplethSvg → ChoroplethSvg}/ChoroplethSvg.d.ts +4 -3
- package/ChoroplethSvg/ChoroplethSvg.d.ts.map +1 -0
- package/ChoroplethSvg/ErrorMessage/ErrorMessage.d.ts.map +1 -0
- package/ChoroplethSvg/PureChoroplethSvg/PureChoroplethSvg.d.ts.map +1 -0
- package/ChoroplethSvg/PureChoroplethSvg/SvgChoroplethDynamic.d.ts.map +1 -0
- package/ChoroplethSvg/PureChoroplethSvg/SvgMutator.d.ts.map +1 -0
- package/ChoroplethSvg/config.d.ts.map +1 -0
- package/ChoroplethSvg/index.d.ts.map +1 -0
- package/ChoroplethSvg.config.js +1 -3
- package/ChoroplethSvg.config.js.map +2 -2
- package/ChoroplethSvg.js +661 -109
- package/ChoroplethSvg.js.map +4 -4
- package/Column/Column.d.ts.map +1 -0
- package/Column/columnUtils.d.ts.map +1 -0
- package/Column/config.d.ts.map +1 -0
- package/Column/index.d.ts.map +1 -0
- package/Column.config.js +0 -1
- package/Column.config.js.map +2 -2
- package/Column.js +711 -184
- package/Column.js.map +4 -4
- package/Ellipse/Ellipse.d.ts.map +1 -0
- package/Ellipse/config.d.ts.map +1 -0
- package/Ellipse/index.d.ts.map +1 -0
- package/Ellipse.js +649 -107
- package/Ellipse.js.map +4 -4
- package/Events/EventUtils.d.ts.map +1 -0
- package/Events/Events.d.ts.map +1 -0
- package/Events/PureEvents/FieldSummaryTooltip.d.ts.map +1 -0
- package/Events/PureEvents/PureEvents.d.ts.map +1 -0
- package/Events/PureEvents/TimeControlsPopover.d.ts.map +1 -0
- package/Events/config.d.ts.map +1 -0
- package/Events/index.d.ts.map +1 -0
- package/Events.js +780 -193
- package/Events.js.map +4 -4
- package/FillerGauge/FillerGauge.d.ts.map +1 -0
- package/FillerGauge/PureFillerGauge/FillerGauge.d.ts.map +1 -0
- package/FillerGauge/config.d.ts.map +1 -0
- package/FillerGauge/index.d.ts.map +1 -0
- package/FillerGauge.js +656 -143
- package/FillerGauge.js.map +4 -4
- package/Image/Image.d.ts.map +1 -0
- package/Image/ImageApi.d.ts.map +1 -0
- package/Image/config.d.ts.map +1 -0
- package/Image/index.d.ts.map +1 -0
- package/Image.js +687 -113
- package/Image.js.map +4 -4
- package/LICENSE.md +0 -1
- package/Line/Line.d.ts.map +1 -0
- package/Line/config.d.ts.map +1 -0
- package/Line/index.d.ts.map +1 -0
- package/Line/lineUtils.d.ts.map +1 -0
- package/{dist/types/Line → Line}/mockdata/LineData.d.ts +59 -0
- package/Line/mockdata/LineData.d.ts.map +1 -0
- package/Line.config.js +0 -1
- package/Line.config.js.map +2 -2
- package/Line.js +817 -185
- package/Line.js.map +4 -4
- package/LinkGraph/ESTestDataSources.d.ts.map +1 -0
- package/LinkGraph/ESTestTemplate.d.ts.map +1 -0
- package/LinkGraph/LinkGraph.d.ts.map +1 -0
- package/{dist/types/LinkGraph → LinkGraph}/PureLinkGraph/PureLinkGraph.d.ts +5 -0
- package/LinkGraph/PureLinkGraph/PureLinkGraph.d.ts.map +1 -0
- package/LinkGraph/PureLinkGraph/PureLinkGraphUtils.d.ts.map +1 -0
- package/LinkGraph/PureLinkGraph/components/Edges.d.ts.map +1 -0
- package/LinkGraph/PureLinkGraph/components/Field.d.ts.map +1 -0
- package/LinkGraph/PureLinkGraph/components/FieldStyles.d.ts.map +1 -0
- package/{dist/types/LinkGraph → LinkGraph}/PureLinkGraph/components/Graph.d.ts +9 -1
- package/LinkGraph/PureLinkGraph/components/Graph.d.ts.map +1 -0
- package/LinkGraph/PureLinkGraph/components/GraphStyles.d.ts.map +1 -0
- package/{dist/types/LinkGraph → LinkGraph}/PureLinkGraph/components/Node.d.ts +1 -0
- package/LinkGraph/PureLinkGraph/components/Node.d.ts.map +1 -0
- package/{dist/types/LinkGraph → LinkGraph}/PureLinkGraph/components/Nodes.d.ts +1 -0
- package/LinkGraph/PureLinkGraph/components/Nodes.d.ts.map +1 -0
- package/LinkGraph/PureLinkGraph/measurementUtils.d.ts +16 -0
- package/LinkGraph/PureLinkGraph/measurementUtils.d.ts.map +1 -0
- package/{dist/types/LinkGraph → LinkGraph}/PureLinkGraph/utils/iconLoader.d.ts.map +1 -1
- package/LinkGraph/config.d.ts.map +1 -0
- package/LinkGraph/index.d.ts.map +1 -0
- package/LinkGraph.config.js +15 -1
- package/LinkGraph.config.js.map +2 -2
- package/LinkGraph.js +1476 -657
- package/LinkGraph.js.map +4 -4
- package/{dist/types/Map → Map}/Map.d.ts +2 -2
- package/Map/Map.d.ts.map +1 -0
- package/{dist/types/Map → Map}/PureMap/BubbleLayer.d.ts +5 -0
- package/Map/PureMap/BubbleLayer.d.ts.map +1 -0
- package/Map/PureMap/ChoroplethLayer.d.ts.map +1 -0
- package/Map/PureMap/ClusterLayer.d.ts.map +1 -0
- package/Map/PureMap/LocalChoroplethLayer.d.ts.map +1 -0
- package/{dist/types/Map → Map}/PureMap/MapUtils.d.ts +10 -6
- package/Map/PureMap/MapUtils.d.ts.map +1 -0
- package/Map/PureMap/MarkerLayer.d.ts.map +1 -0
- package/Map/PureMap/MarkerWrapper.d.ts.map +1 -0
- package/Map/PureMap/PureMap.d.ts.map +1 -0
- package/Map/PureMap/PureMapContainer.d.ts.map +1 -0
- package/Map/PureMap/Tooltip.d.ts.map +1 -0
- package/{dist/types/Map → Map}/PureMap/mockdata/data.d.ts +21 -17
- package/Map/PureMap/mockdata/data.d.ts.map +1 -0
- package/Map/config.d.ts.map +1 -0
- package/Map/index.d.ts.map +1 -0
- package/Map.config.js +0 -1
- package/Map.config.js.map +2 -2
- package/Map.js +1002 -319
- package/Map.js.map +4 -4
- package/Markdown/Markdown.d.ts.map +1 -0
- package/Markdown/config.d.ts.map +1 -0
- package/Markdown/index.d.ts.map +1 -0
- package/Markdown.js +669 -98
- package/Markdown.js.map +4 -4
- package/{dist/types/MarkerGauge → MarkerGauge}/MarkerGauge.d.ts +5 -1
- package/MarkerGauge/MarkerGauge.d.ts.map +1 -0
- package/{dist/types/MarkerGauge → MarkerGauge}/PureMarkerGauge/MarkerGauge.d.ts +4 -0
- package/MarkerGauge/PureMarkerGauge/MarkerGauge.d.ts.map +1 -0
- package/MarkerGauge/config.d.ts.map +1 -0
- package/MarkerGauge/index.d.ts.map +1 -0
- package/MarkerGauge.config.js +121 -3
- package/MarkerGauge.config.js.map +3 -3
- package/MarkerGauge.js +1439 -145
- package/MarkerGauge.js.map +4 -4
- package/NetworkGraph/NetworkGraph.d.ts +22 -0
- package/NetworkGraph/NetworkGraph.d.ts.map +1 -0
- package/NetworkGraph/PureNetworkGraph/PureNetworkGraph.d.ts +60 -0
- package/NetworkGraph/PureNetworkGraph/PureNetworkGraph.d.ts.map +1 -0
- package/NetworkGraph/PureNetworkGraph/components/Link.d.ts +19 -0
- package/NetworkGraph/PureNetworkGraph/components/Link.d.ts.map +1 -0
- package/NetworkGraph/PureNetworkGraph/components/NetworkGraphSvg.d.ts +29 -0
- package/NetworkGraph/PureNetworkGraph/components/NetworkGraphSvg.d.ts.map +1 -0
- package/NetworkGraph/PureNetworkGraph/components/Node.d.ts +27 -0
- package/NetworkGraph/PureNetworkGraph/components/Node.d.ts.map +1 -0
- package/NetworkGraph/PureNetworkGraph/components/Tooltip.d.ts +12 -0
- package/NetworkGraph/PureNetworkGraph/components/Tooltip.d.ts.map +1 -0
- package/NetworkGraph/PureNetworkGraph/components/ZoomControls.d.ts +13 -0
- package/NetworkGraph/PureNetworkGraph/components/ZoomControls.d.ts.map +1 -0
- package/NetworkGraph/PureNetworkGraph/mockdata/data.d.ts +140 -0
- package/NetworkGraph/PureNetworkGraph/mockdata/data.d.ts.map +1 -0
- package/NetworkGraph/PureNetworkGraph/mockdata/datasource.d.ts +89 -0
- package/NetworkGraph/PureNetworkGraph/mockdata/datasource.d.ts.map +1 -0
- package/NetworkGraph/PureNetworkGraph/utils/forceLayout.d.ts +47 -0
- package/NetworkGraph/PureNetworkGraph/utils/forceLayout.d.ts.map +1 -0
- package/NetworkGraph/PureNetworkGraph/utils/iconLoader.d.ts +78 -0
- package/NetworkGraph/PureNetworkGraph/utils/iconLoader.d.ts.map +1 -0
- package/NetworkGraph/PureNetworkGraph/utils/networkGraphShared.d.ts +111 -0
- package/NetworkGraph/PureNetworkGraph/utils/networkGraphShared.d.ts.map +1 -0
- package/NetworkGraph/PureNetworkGraph/utils/networkGraphUtils.d.ts +123 -0
- package/NetworkGraph/PureNetworkGraph/utils/networkGraphUtils.d.ts.map +1 -0
- package/NetworkGraph/config.d.ts.map +1 -0
- package/NetworkGraph/index.d.ts +3 -0
- package/NetworkGraph/index.d.ts.map +1 -0
- package/NetworkGraph.config.js +938 -0
- package/NetworkGraph.config.js.map +7 -0
- package/NetworkGraph.js +6793 -0
- package/NetworkGraph.js.map +7 -0
- package/ParallelCoordinates/ParallelCoordinates.d.ts.map +1 -0
- package/ParallelCoordinates/PureParallelCoordinates/PureParallelCoordinates.d.ts.map +1 -0
- package/ParallelCoordinates/PureParallelCoordinates/src/ParallelCoordinatesCanvas.d.ts.map +1 -0
- package/ParallelCoordinates/PureParallelCoordinates/src/ParallelCoordinatesChart.d.ts.map +1 -0
- package/ParallelCoordinates/PureParallelCoordinates/src/ParallelCoordinatesPrompt.d.ts.map +1 -0
- package/ParallelCoordinates/config.d.ts.map +1 -0
- package/ParallelCoordinates/index.d.ts.map +1 -0
- package/ParallelCoordinates/mockdata/arrayValueData.d.ts.map +1 -0
- package/ParallelCoordinates/mockdata/sampleCarData.d.ts.map +1 -0
- package/ParallelCoordinates/mockdata/sampleCarNumericalData.d.ts.map +1 -0
- package/ParallelCoordinates/mockdata/sampleFoodData.d.ts.map +1 -0
- package/ParallelCoordinates/mockdata/sampleStringNumericalData.d.ts.map +1 -0
- package/ParallelCoordinates.js +666 -99
- package/ParallelCoordinates.js.map +4 -4
- package/Pie/Pie.d.ts.map +1 -0
- package/Pie/config.d.ts.map +1 -0
- package/Pie/index.d.ts.map +1 -0
- package/Pie/pieUtils.d.ts.map +1 -0
- package/Pie.config.js +13 -0
- package/Pie.config.js.map +2 -2
- package/Pie.js +744 -188
- package/Pie.js.map +4 -4
- package/Punchcard/Punchcard.d.ts.map +1 -0
- package/Punchcard/PurePunchcard/Punchcard.d.ts.map +1 -0
- package/Punchcard/PurePunchcard/src/PunchcardAxis.d.ts.map +1 -0
- package/Punchcard/PurePunchcard/src/PunchcardBubble.d.ts.map +1 -0
- package/Punchcard/PurePunchcard/src/PunchcardChartArea.d.ts.map +1 -0
- package/Punchcard/PurePunchcard/src/PunchcardGridLines.d.ts.map +1 -0
- package/Punchcard/PurePunchcard/src/PunchcardLegend.d.ts.map +1 -0
- package/Punchcard/PurePunchcard/src/PunchcardRow.d.ts.map +1 -0
- package/Punchcard/PurePunchcard/src/utils/punchcardUtils.d.ts.map +1 -0
- package/Punchcard/config.d.ts.map +1 -0
- package/Punchcard/index.d.ts.map +1 -0
- package/Punchcard/punchcardUtils.d.ts.map +1 -0
- package/Punchcard.js +663 -109
- package/Punchcard.js.map +4 -4
- package/README.md +1 -1
- package/Rectangle/Rectangle.d.ts.map +1 -0
- package/Rectangle/config.d.ts.map +1 -0
- package/Rectangle/index.d.ts.map +1 -0
- package/Rectangle.config.js +13 -22
- package/Rectangle.config.js.map +4 -4
- package/Rectangle.js +671 -138
- package/Rectangle.js.map +4 -4
- package/Sankey/PureSankey/PureSankey.d.ts.map +1 -0
- package/Sankey/PureSankey/SankeyLink.d.ts.map +1 -0
- package/Sankey/PureSankey/SankeyModels.d.ts.map +1 -0
- package/Sankey/PureSankey/SankeyNode.d.ts.map +1 -0
- package/Sankey/PureSankey/SankeyTooltip.d.ts.map +1 -0
- package/Sankey/PureSankey/SankeyUtils.d.ts.map +1 -0
- package/Sankey/PureSankey/mockdata/data.d.ts.map +1 -0
- package/Sankey/Sankey.d.ts.map +1 -0
- package/Sankey/config.d.ts.map +1 -0
- package/Sankey/index.d.ts.map +1 -0
- package/Sankey.js +683 -114
- package/Sankey.js.map +4 -4
- package/Scatter/Scatter.d.ts.map +1 -0
- package/Scatter/config.d.ts.map +1 -0
- package/Scatter/index.d.ts.map +1 -0
- package/Scatter/mockdata/data.d.ts.map +1 -0
- package/Scatter/scatterUtils.d.ts.map +1 -0
- package/Scatter.config.js +0 -1
- package/Scatter.config.js.map +2 -2
- package/Scatter.js +721 -184
- package/Scatter.js.map +4 -4
- package/SingleValue/SingleValue.d.ts.map +1 -0
- package/SingleValue/config.d.ts.map +1 -0
- package/SingleValue/index.d.ts.map +1 -0
- package/SingleValue.config.js +15 -2
- package/SingleValue.config.js.map +2 -2
- package/SingleValue.js +864 -226
- package/SingleValue.js.map +3 -3
- package/SingleValueBasic/index.d.ts.map +1 -0
- package/SingleValueBasic.js +22 -13
- package/SingleValueBasic.js.map +2 -2
- package/SingleValueIcon/SingleValueIcon.d.ts.map +1 -0
- package/SingleValueIcon/config.d.ts.map +1 -0
- package/SingleValueIcon/index.d.ts.map +1 -0
- package/SingleValueIcon.config.js +0 -1
- package/SingleValueIcon.config.js.map +2 -2
- package/SingleValueIcon.js +661 -142
- package/SingleValueIcon.js.map +3 -3
- package/SingleValueRadial/PureSingleValueRadial/GaugeGraph.d.ts.map +1 -0
- package/{dist/types/SingleValueRadial → SingleValueRadial}/PureSingleValueRadial/utils/gaugeUtils.d.ts +0 -8
- package/SingleValueRadial/PureSingleValueRadial/utils/gaugeUtils.d.ts.map +1 -0
- package/SingleValueRadial/SingleValueRadial.d.ts.map +1 -0
- package/SingleValueRadial/config.d.ts.map +1 -0
- package/SingleValueRadial/index.d.ts.map +1 -0
- package/SingleValueRadial.config.js +0 -1
- package/SingleValueRadial.config.js.map +2 -2
- package/SingleValueRadial.js +660 -140
- package/SingleValueRadial.js.map +4 -4
- package/SparkLine/index.d.ts.map +1 -0
- package/SparkLine.js +111 -45
- package/SparkLine.js.map +2 -2
- package/{dist/types/Table → Table}/PureTable.d.ts +10 -0
- package/Table/PureTable.d.ts.map +1 -0
- package/Table/Table.d.ts +18 -0
- package/Table/Table.d.ts.map +1 -0
- package/Table/cells/ArrayCell.d.ts.map +1 -0
- package/Table/cells/SparklineCell.d.ts.map +1 -0
- package/Table/cells/SwitchTableCell.d.ts.map +1 -0
- package/Table/cells/TextCell.d.ts.map +1 -0
- package/Table/cells/index.d.ts.map +1 -0
- package/Table/config.d.ts.map +1 -0
- package/{dist/types/Table → Table}/hooks.d.ts +5 -5
- package/Table/hooks.d.ts.map +1 -0
- package/Table/index.d.ts.map +1 -0
- package/Table.config.js +1 -1
- package/Table.config.js.map +2 -2
- package/Table.js +1115 -375
- package/Table.js.map +4 -4
- package/Timeline/PureTimeline/PureTimeline.d.ts.map +1 -0
- package/Timeline/PureTimeline/src/CursorPlugin.d.ts.map +1 -0
- package/Timeline/PureTimeline/src/TimelineLegend.d.ts.map +1 -0
- package/{dist/types/Timeline → Timeline}/PureTimeline/src/TimelinePlugin.d.ts +3 -1
- package/Timeline/PureTimeline/src/TimelinePlugin.d.ts.map +1 -0
- package/Timeline/PureTimeline/src/TimelineTooltip.d.ts.map +1 -0
- package/Timeline/PureTimeline/src/TimelineUplot.d.ts.map +1 -0
- package/Timeline/PureTimeline/src/TimelineYAxis.d.ts.map +1 -0
- package/{dist/types/Timeline → Timeline}/PureTimeline/src/XAxisPlugin.d.ts +2 -1
- package/Timeline/PureTimeline/src/XAxisPlugin.d.ts.map +1 -0
- package/{dist/types/Timeline → Timeline}/PureTimeline/src/utils/timelineUtils.d.ts +26 -2
- package/Timeline/PureTimeline/src/utils/timelineUtils.d.ts.map +1 -0
- package/Timeline/Timeline.d.ts.map +1 -0
- package/Timeline/config.d.ts +4 -0
- package/Timeline/config.d.ts.map +1 -0
- package/Timeline/index.d.ts.map +1 -0
- package/Timeline/mockdata/basicTimelineData.d.ts.map +1 -0
- package/Timeline/mockdata/categoricalTimelineData.d.ts.map +1 -0
- package/Timeline/mockdata/timelineDataSource.d.ts.map +1 -0
- package/Timeline.config.js +30 -21
- package/Timeline.config.js.map +4 -4
- package/Timeline.js +1287 -467
- package/Timeline.js.map +4 -4
- package/{dist/types/common → common}/Charting.d.ts +7 -0
- package/common/Charting.d.ts.map +1 -0
- package/common/Charting.js +59 -34
- package/common/Charting.js.map +4 -4
- package/common/ChartingApi.d.ts.map +1 -0
- package/common/DocExampleWithVizSandbox.d.ts.map +1 -0
- package/common/DocExampleWithVizSandbox.js.map +1 -1
- package/common/OptionsDoc.js.map +1 -1
- package/common/OverviewDoc.d.ts.map +1 -0
- package/common/OverviewDoc.js.map +1 -1
- package/common/SplunkVisualization.d.ts.map +1 -0
- package/common/SplunkVisualizationApi.d.ts.map +1 -0
- package/common/ThemedDefaults.d.ts.map +1 -0
- package/common/ThemesDoc.js +0 -1
- package/common/ThemesDoc.js.map +2 -2
- package/common/TimeSeriesChartWrapper.d.ts +31 -0
- package/common/TimeSeriesChartWrapper.d.ts.map +1 -0
- package/common/TimeSeriesChartWrapper.js +693 -74
- package/common/TimeSeriesChartWrapper.js.map +4 -4
- package/{dist/types/common → common}/chartingUtils.d.ts +55 -5
- package/common/chartingUtils.d.ts.map +1 -0
- package/common/chartingUtils.js +120 -9
- package/common/chartingUtils.js.map +3 -3
- package/common/components/IconPlaceholder.d.ts.map +1 -0
- package/common/components/MissingPropsMessage.d.ts.map +1 -0
- package/common/components/TrellisTitle.d.ts.map +1 -0
- package/common/configContext/singleValueContext.d.ts.map +1 -0
- package/common/docUtils.d.ts.map +1 -0
- package/common/docUtils.js +1 -1
- package/common/docUtils.js.map +2 -2
- package/common/editorConfig/AxesChartColorAndStyle.d.ts.map +1 -0
- package/common/editorConfig/AxesChartDataConfig.d.ts.map +1 -0
- package/common/editorConfig/AxesChartDataDisplay.d.ts.map +1 -0
- package/common/editorConfig/AxesChartLegend.d.ts.map +1 -0
- package/common/editorConfig/AxesChartXGridAndLabels.d.ts.map +1 -0
- package/common/editorConfig/AxesChartY2GridAndLabels.d.ts.map +1 -0
- package/common/editorConfig/AxesChartYGridAndLabels.d.ts.map +1 -0
- package/common/editorConfig/BackgroundColor.d.ts.map +1 -0
- package/common/editorConfig/DynamicFillColorEditor.d.ts.map +1 -0
- package/common/editorConfig/DynamicGaugeColorEditor.d.ts.map +1 -0
- package/common/editorConfig/DynamicStrokeColorEditor.d.ts.map +1 -0
- package/common/editorConfig/Gauge.d.ts.map +1 -0
- package/common/editorConfig/Legend.d.ts.map +1 -0
- package/common/editorConfig/RadialBackgroundColor.d.ts.map +1 -0
- package/common/editorConfig/StaticFillColorEditor.d.ts.map +1 -0
- package/common/editorConfig/StaticGaugeColorEditor.d.ts.map +1 -0
- package/common/editorConfig/StaticStrokeColorEditor.d.ts.map +1 -0
- package/common/editorConfig/TrellisEditors.d.ts.map +1 -0
- package/common/gaugeUtils.d.ts.map +1 -0
- package/common/hocs/FixedSizeContainer.d.ts.map +1 -0
- package/common/hocs/mockdata/trellisData.d.ts.map +1 -0
- package/common/hocs/withEditModeCover.d.ts.map +1 -0
- package/common/hocs/withPlaceholder.d.ts.map +1 -0
- package/common/hocs/withTrellis.d.ts.map +1 -0
- package/common/hooks/useDeepMemo.d.ts.map +1 -0
- package/common/hooks/useDownsampleDataSources.d.ts.map +1 -0
- package/common/hooks/useEventCallback.d.ts.map +1 -0
- package/common/hooks/useGetXAndYFields.d.ts.map +1 -0
- package/common/hooks/usePagination.d.ts.map +1 -0
- package/common/hooks/usePrevious.d.ts.map +1 -0
- package/common/hooks/useSorting.d.ts.map +1 -0
- package/common/hooks/useTrellisEnabled.d.ts.map +1 -0
- package/common/interfaces/ChartEvent.d.ts.map +1 -0
- package/{dist/types/common → common}/interfaces/DashboardVizProps.d.ts +0 -3
- package/common/interfaces/DashboardVizProps.d.ts.map +1 -0
- package/common/interfaces/DataContract.d.ts.map +1 -0
- package/{dist/types/common → common}/interfaces/DataSource.d.ts +1 -1
- package/common/interfaces/DataSource.d.ts.map +1 -0
- package/common/interfaces/DefaultContext.d.ts.map +1 -0
- package/common/interfaces/Editor.d.ts.map +1 -0
- package/common/interfaces/ExtendedDashViz.d.ts.map +1 -0
- package/common/interfaces/Object.d.ts.map +1 -0
- package/common/interfaces/Overview.d.ts.map +1 -0
- package/common/interfaces/ThemedDefaults.d.ts.map +1 -0
- package/common/interfaces/VizActionHandler.d.ts.map +1 -0
- package/common/interfaces/VizBehavior.d.ts.map +1 -0
- package/common/interfaces/VizCategory.d.ts.map +1 -0
- package/common/interfaces/VizConfig.d.ts.map +1 -0
- package/common/interfaces/VizEvent.d.ts.map +1 -0
- package/common/interfaces/VizProps.d.ts.map +1 -0
- package/common/interfaces/VizRegistry.d.ts.map +1 -0
- package/common/interfaces/VizSize.d.ts.map +1 -0
- package/common/interfaces/VizStatus.d.ts.map +1 -0
- package/common/interfaces/index.d.ts.map +1 -0
- package/common/shapeUtils.d.ts.map +1 -0
- package/common/shapeUtils.js +5 -20
- package/common/shapeUtils.js.map +2 -2
- package/common/utils/configUtils.d.ts.map +1 -0
- package/common/utils/dataUtils.d.ts.map +1 -0
- package/common/utils/dataUtils.js +5 -4
- package/common/utils/dataUtils.js.map +2 -2
- package/common/utils/featureFlagUtils.d.ts +4 -0
- package/common/utils/featureFlagUtils.d.ts.map +1 -0
- package/common/utils/featureFlagUtils.js.map +2 -2
- package/common/utils/hocUtils.d.ts.map +1 -0
- package/common/utils/mapUtils.d.ts.map +1 -0
- package/common/utils/mapUtils.js +16 -9
- package/common/utils/mapUtils.js.map +2 -2
- package/common/utils/singleValueUtils.js +17 -18
- package/common/utils/singleValueUtils.js.map +2 -2
- package/common/utils/tableUtils.d.ts +10 -0
- package/common/utils/tableUtils.d.ts.map +1 -0
- package/common/utils/tableUtils.js +20 -8
- package/common/utils/tableUtils.js.map +2 -2
- package/common/utils/textUtils.d.ts +20 -0
- package/common/utils/textUtils.d.ts.map +1 -0
- package/common/utils/textUtils.js +76 -0
- package/common/utils/textUtils.js.map +7 -0
- package/common/utils/trellisUtils.d.ts.map +1 -0
- package/common/utils/trellisUtils.js +12 -14
- package/common/utils/trellisUtils.js.map +2 -2
- package/common/utils/urlUtils.d.ts.map +1 -0
- package/{dist/types/common → common}/withDashboardViz.d.ts +7 -0
- package/common/withDashboardViz.d.ts.map +1 -0
- package/common/withDashboardViz.js +665 -87
- package/common/withDashboardViz.js.map +4 -4
- package/package.json +35 -29
- package/common/utils/styleUtils.js +0 -30
- package/common/utils/styleUtils.js.map +0 -7
- package/dist/types/Area/Area.d.ts.map +0 -1
- package/dist/types/Area/areaUtils.d.ts.map +0 -1
- package/dist/types/Area/config.d.ts.map +0 -1
- package/dist/types/Area/index.d.ts.map +0 -1
- package/dist/types/Bar/Bar.d.ts.map +0 -1
- package/dist/types/Bar/barUtils.d.ts.map +0 -1
- package/dist/types/Bar/config.d.ts.map +0 -1
- package/dist/types/Bar/index.d.ts.map +0 -1
- package/dist/types/Bubble/Bubble.d.ts.map +0 -1
- package/dist/types/Bubble/bubbleUtils.d.ts.map +0 -1
- package/dist/types/Bubble/config.d.ts.map +0 -1
- package/dist/types/Bubble/index.d.ts.map +0 -1
- package/dist/types/ChoroplethSvg/ChoroplethSvg.d.ts.map +0 -1
- package/dist/types/ChoroplethSvg/ErrorMessage/ErrorMessage.d.ts.map +0 -1
- package/dist/types/ChoroplethSvg/PureChoroplethSvg/PureChoroplethSvg.d.ts.map +0 -1
- package/dist/types/ChoroplethSvg/PureChoroplethSvg/SvgChoroplethDynamic.d.ts.map +0 -1
- package/dist/types/ChoroplethSvg/PureChoroplethSvg/SvgMutator.d.ts.map +0 -1
- package/dist/types/ChoroplethSvg/config.d.ts.map +0 -1
- package/dist/types/ChoroplethSvg/index.d.ts.map +0 -1
- package/dist/types/Column/Column.d.ts.map +0 -1
- package/dist/types/Column/columnUtils.d.ts.map +0 -1
- package/dist/types/Column/config.d.ts.map +0 -1
- package/dist/types/Column/index.d.ts.map +0 -1
- package/dist/types/Ellipse/Ellipse.d.ts.map +0 -1
- package/dist/types/Ellipse/config.d.ts.map +0 -1
- package/dist/types/Ellipse/index.d.ts.map +0 -1
- package/dist/types/Events/EventUtils.d.ts.map +0 -1
- package/dist/types/Events/Events.d.ts.map +0 -1
- package/dist/types/Events/PureEvents/FieldSummaryTooltip.d.ts.map +0 -1
- package/dist/types/Events/PureEvents/PureEvents.d.ts.map +0 -1
- package/dist/types/Events/PureEvents/TimeControlsPopover.d.ts.map +0 -1
- package/dist/types/Events/config.d.ts.map +0 -1
- package/dist/types/Events/index.d.ts.map +0 -1
- package/dist/types/FillerGauge/FillerGauge.d.ts.map +0 -1
- package/dist/types/FillerGauge/PureFillerGauge/FillerGauge.d.ts.map +0 -1
- package/dist/types/FillerGauge/config.d.ts.map +0 -1
- package/dist/types/FillerGauge/index.d.ts.map +0 -1
- package/dist/types/Image/Image.d.ts.map +0 -1
- package/dist/types/Image/ImageApi.d.ts.map +0 -1
- package/dist/types/Image/config.d.ts.map +0 -1
- package/dist/types/Image/index.d.ts.map +0 -1
- package/dist/types/Line/Line.d.ts.map +0 -1
- package/dist/types/Line/config.d.ts.map +0 -1
- package/dist/types/Line/index.d.ts.map +0 -1
- package/dist/types/Line/lineUtils.d.ts.map +0 -1
- package/dist/types/Line/mockdata/LineData.d.ts.map +0 -1
- package/dist/types/LinkGraph/ESTestDataSources.d.ts.map +0 -1
- package/dist/types/LinkGraph/ESTestTemplate.d.ts.map +0 -1
- package/dist/types/LinkGraph/LinkGraph.d.ts.map +0 -1
- package/dist/types/LinkGraph/PureLinkGraph/PureLinkGraph.d.ts.map +0 -1
- package/dist/types/LinkGraph/PureLinkGraph/PureLinkGraphUtils.d.ts.map +0 -1
- package/dist/types/LinkGraph/PureLinkGraph/components/Edges.d.ts.map +0 -1
- package/dist/types/LinkGraph/PureLinkGraph/components/Field.d.ts.map +0 -1
- package/dist/types/LinkGraph/PureLinkGraph/components/FieldStyles.d.ts.map +0 -1
- package/dist/types/LinkGraph/PureLinkGraph/components/Graph.d.ts.map +0 -1
- package/dist/types/LinkGraph/PureLinkGraph/components/GraphStyles.d.ts.map +0 -1
- package/dist/types/LinkGraph/PureLinkGraph/components/Node.d.ts.map +0 -1
- package/dist/types/LinkGraph/PureLinkGraph/components/Nodes.d.ts.map +0 -1
- package/dist/types/LinkGraph/config.d.ts.map +0 -1
- package/dist/types/LinkGraph/index.d.ts.map +0 -1
- package/dist/types/Map/Map.d.ts.map +0 -1
- package/dist/types/Map/MapContextDefault.d.ts +0 -39
- package/dist/types/Map/MapContextDefault.d.ts.map +0 -1
- package/dist/types/Map/PureMap/BubbleLayer.d.ts.map +0 -1
- package/dist/types/Map/PureMap/ChoroplethLayer.d.ts.map +0 -1
- package/dist/types/Map/PureMap/ClusterLayer.d.ts.map +0 -1
- package/dist/types/Map/PureMap/LocalChoroplethLayer.d.ts.map +0 -1
- package/dist/types/Map/PureMap/MapUtils.d.ts.map +0 -1
- package/dist/types/Map/PureMap/MarkerLayer.d.ts.map +0 -1
- package/dist/types/Map/PureMap/MarkerWrapper.d.ts.map +0 -1
- package/dist/types/Map/PureMap/PureMap.d.ts.map +0 -1
- package/dist/types/Map/PureMap/PureMapContainer.d.ts.map +0 -1
- package/dist/types/Map/PureMap/Tooltip.d.ts.map +0 -1
- package/dist/types/Map/PureMap/mockdata/data.d.ts.map +0 -1
- package/dist/types/Map/config.d.ts.map +0 -1
- package/dist/types/Map/index.d.ts.map +0 -1
- package/dist/types/Markdown/Markdown.d.ts.map +0 -1
- package/dist/types/Markdown/config.d.ts.map +0 -1
- package/dist/types/Markdown/index.d.ts.map +0 -1
- package/dist/types/MarkerGauge/MarkerGauge.d.ts.map +0 -1
- package/dist/types/MarkerGauge/PureMarkerGauge/MarkerGauge.d.ts.map +0 -1
- package/dist/types/MarkerGauge/config.d.ts.map +0 -1
- package/dist/types/MarkerGauge/index.d.ts.map +0 -1
- package/dist/types/ParallelCoordinates/ParallelCoordinates.d.ts.map +0 -1
- package/dist/types/ParallelCoordinates/PureParallelCoordinates/PureParallelCoordinates.d.ts.map +0 -1
- package/dist/types/ParallelCoordinates/PureParallelCoordinates/src/ParallelCoordinatesCanvas.d.ts.map +0 -1
- package/dist/types/ParallelCoordinates/PureParallelCoordinates/src/ParallelCoordinatesChart.d.ts.map +0 -1
- package/dist/types/ParallelCoordinates/PureParallelCoordinates/src/ParallelCoordinatesPrompt.d.ts.map +0 -1
- package/dist/types/ParallelCoordinates/config.d.ts.map +0 -1
- package/dist/types/ParallelCoordinates/index.d.ts.map +0 -1
- package/dist/types/ParallelCoordinates/mockdata/arrayValueData.d.ts.map +0 -1
- package/dist/types/ParallelCoordinates/mockdata/sampleCarData.d.ts.map +0 -1
- package/dist/types/ParallelCoordinates/mockdata/sampleCarNumericalData.d.ts.map +0 -1
- package/dist/types/ParallelCoordinates/mockdata/sampleFoodData.d.ts.map +0 -1
- package/dist/types/ParallelCoordinates/mockdata/sampleStringNumericalData.d.ts.map +0 -1
- package/dist/types/Pie/Pie.d.ts.map +0 -1
- package/dist/types/Pie/config.d.ts.map +0 -1
- package/dist/types/Pie/index.d.ts.map +0 -1
- package/dist/types/Pie/pieUtils.d.ts.map +0 -1
- package/dist/types/Punchcard/Punchcard.d.ts.map +0 -1
- package/dist/types/Punchcard/PurePunchcard/Punchcard.d.ts.map +0 -1
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardAxis.d.ts.map +0 -1
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardBubble.d.ts.map +0 -1
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardChartArea.d.ts.map +0 -1
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardGridLines.d.ts.map +0 -1
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardLegend.d.ts.map +0 -1
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardRow.d.ts.map +0 -1
- package/dist/types/Punchcard/PurePunchcard/src/utils/punchcardUtils.d.ts.map +0 -1
- package/dist/types/Punchcard/config.d.ts.map +0 -1
- package/dist/types/Punchcard/index.d.ts.map +0 -1
- package/dist/types/Punchcard/punchcardUtils.d.ts.map +0 -1
- package/dist/types/Rectangle/Rectangle.d.ts.map +0 -1
- package/dist/types/Rectangle/config.d.ts.map +0 -1
- package/dist/types/Rectangle/index.d.ts.map +0 -1
- package/dist/types/Sankey/PureSankey/PureSankey.d.ts.map +0 -1
- package/dist/types/Sankey/PureSankey/SankeyLink.d.ts.map +0 -1
- package/dist/types/Sankey/PureSankey/SankeyModels.d.ts.map +0 -1
- package/dist/types/Sankey/PureSankey/SankeyNode.d.ts.map +0 -1
- package/dist/types/Sankey/PureSankey/SankeyTooltip.d.ts.map +0 -1
- package/dist/types/Sankey/PureSankey/SankeyUtils.d.ts.map +0 -1
- package/dist/types/Sankey/PureSankey/mockdata/data.d.ts.map +0 -1
- package/dist/types/Sankey/Sankey.d.ts.map +0 -1
- package/dist/types/Sankey/config.d.ts.map +0 -1
- package/dist/types/Sankey/index.d.ts.map +0 -1
- package/dist/types/Scatter/Scatter.d.ts.map +0 -1
- package/dist/types/Scatter/config.d.ts.map +0 -1
- package/dist/types/Scatter/index.d.ts.map +0 -1
- package/dist/types/Scatter/mockdata/data.d.ts.map +0 -1
- package/dist/types/Scatter/scatterUtils.d.ts.map +0 -1
- package/dist/types/SingleValue/SingleValue.d.ts.map +0 -1
- package/dist/types/SingleValue/config.d.ts.map +0 -1
- package/dist/types/SingleValue/index.d.ts.map +0 -1
- package/dist/types/SingleValueBasic/index.d.ts.map +0 -1
- package/dist/types/SingleValueIcon/SingleValueIcon.d.ts.map +0 -1
- package/dist/types/SingleValueIcon/config.d.ts.map +0 -1
- package/dist/types/SingleValueIcon/index.d.ts.map +0 -1
- package/dist/types/SingleValueRadial/PureSingleValueRadial/GaugeGraph.d.ts.map +0 -1
- package/dist/types/SingleValueRadial/PureSingleValueRadial/utils/gaugeUtils.d.ts.map +0 -1
- package/dist/types/SingleValueRadial/SingleValueRadial.d.ts.map +0 -1
- package/dist/types/SingleValueRadial/config.d.ts.map +0 -1
- package/dist/types/SingleValueRadial/index.d.ts.map +0 -1
- package/dist/types/SparkLine/index.d.ts.map +0 -1
- package/dist/types/Table/PureTable.d.ts.map +0 -1
- package/dist/types/Table/Table.d.ts +0 -10
- package/dist/types/Table/Table.d.ts.map +0 -1
- package/dist/types/Table/cells/ArrayCell.d.ts.map +0 -1
- package/dist/types/Table/cells/SparklineCell.d.ts.map +0 -1
- package/dist/types/Table/cells/SwitchTableCell.d.ts.map +0 -1
- package/dist/types/Table/cells/TextCell.d.ts.map +0 -1
- package/dist/types/Table/cells/index.d.ts.map +0 -1
- package/dist/types/Table/config.d.ts.map +0 -1
- package/dist/types/Table/hooks.d.ts.map +0 -1
- package/dist/types/Table/index.d.ts.map +0 -1
- package/dist/types/Timeline/PureTimeline/PureTimeline.d.ts.map +0 -1
- package/dist/types/Timeline/PureTimeline/src/CursorPlugin.d.ts.map +0 -1
- package/dist/types/Timeline/PureTimeline/src/TimelineLegend.d.ts.map +0 -1
- package/dist/types/Timeline/PureTimeline/src/TimelinePlugin.d.ts.map +0 -1
- package/dist/types/Timeline/PureTimeline/src/TimelineTooltip.d.ts.map +0 -1
- package/dist/types/Timeline/PureTimeline/src/TimelineUplot.d.ts.map +0 -1
- package/dist/types/Timeline/PureTimeline/src/TimelineYAxis.d.ts.map +0 -1
- package/dist/types/Timeline/PureTimeline/src/XAxisPlugin.d.ts.map +0 -1
- package/dist/types/Timeline/PureTimeline/src/utils/timelineUtils.d.ts.map +0 -1
- package/dist/types/Timeline/Timeline.d.ts.map +0 -1
- package/dist/types/Timeline/config.d.ts.map +0 -1
- package/dist/types/Timeline/index.d.ts.map +0 -1
- package/dist/types/Timeline/mockdata/basicTimelineData.d.ts.map +0 -1
- package/dist/types/Timeline/mockdata/categoricalTimelineData.d.ts.map +0 -1
- package/dist/types/Timeline/mockdata/timelineDataSource.d.ts.map +0 -1
- package/dist/types/common/Charting.d.ts.map +0 -1
- package/dist/types/common/ChartingApi.d.ts.map +0 -1
- package/dist/types/common/DocExampleWithVizSandbox.d.ts.map +0 -1
- package/dist/types/common/OverviewDoc.d.ts.map +0 -1
- package/dist/types/common/SplunkVisualization.d.ts.map +0 -1
- package/dist/types/common/SplunkVisualizationApi.d.ts.map +0 -1
- package/dist/types/common/ThemedDefaults.d.ts.map +0 -1
- package/dist/types/common/TimeSeriesChartWrapper.d.ts +0 -7
- package/dist/types/common/TimeSeriesChartWrapper.d.ts.map +0 -1
- package/dist/types/common/chartingUtils.d.ts.map +0 -1
- package/dist/types/common/components/IconPlaceholder.d.ts.map +0 -1
- package/dist/types/common/components/MissingPropsMessage.d.ts.map +0 -1
- package/dist/types/common/components/TrellisTitle.d.ts.map +0 -1
- package/dist/types/common/configContext/singleValueContext.d.ts.map +0 -1
- package/dist/types/common/docUtils.d.ts.map +0 -1
- package/dist/types/common/editorConfig/AxesChartColorAndStyle.d.ts.map +0 -1
- package/dist/types/common/editorConfig/AxesChartDataConfig.d.ts.map +0 -1
- package/dist/types/common/editorConfig/AxesChartDataDisplay.d.ts.map +0 -1
- package/dist/types/common/editorConfig/AxesChartLegend.d.ts.map +0 -1
- package/dist/types/common/editorConfig/AxesChartXGridAndLabels.d.ts.map +0 -1
- package/dist/types/common/editorConfig/AxesChartY2GridAndLabels.d.ts.map +0 -1
- package/dist/types/common/editorConfig/AxesChartYGridAndLabels.d.ts.map +0 -1
- package/dist/types/common/editorConfig/BackgroundColor.d.ts.map +0 -1
- package/dist/types/common/editorConfig/DynamicFillColorEditor.d.ts.map +0 -1
- package/dist/types/common/editorConfig/DynamicGaugeColorEditor.d.ts.map +0 -1
- package/dist/types/common/editorConfig/DynamicStrokeColorEditor.d.ts.map +0 -1
- package/dist/types/common/editorConfig/Gauge.d.ts.map +0 -1
- package/dist/types/common/editorConfig/Legend.d.ts.map +0 -1
- package/dist/types/common/editorConfig/RadialBackgroundColor.d.ts.map +0 -1
- package/dist/types/common/editorConfig/StaticFillColorEditor.d.ts.map +0 -1
- package/dist/types/common/editorConfig/StaticGaugeColorEditor.d.ts.map +0 -1
- package/dist/types/common/editorConfig/StaticStrokeColorEditor.d.ts.map +0 -1
- package/dist/types/common/editorConfig/TrellisEditors.d.ts.map +0 -1
- package/dist/types/common/gaugeUtils.d.ts.map +0 -1
- package/dist/types/common/hocs/FixedSizeContainer.d.ts.map +0 -1
- package/dist/types/common/hocs/mockdata/trellisData.d.ts.map +0 -1
- package/dist/types/common/hocs/withEditModeCover.d.ts.map +0 -1
- package/dist/types/common/hocs/withPlaceholder.d.ts.map +0 -1
- package/dist/types/common/hocs/withTrellis.d.ts.map +0 -1
- package/dist/types/common/hooks/useDeepMemo.d.ts.map +0 -1
- package/dist/types/common/hooks/useDownsampleDataSources.d.ts.map +0 -1
- package/dist/types/common/hooks/useEventCallback.d.ts.map +0 -1
- package/dist/types/common/hooks/useGetXAndYFields.d.ts.map +0 -1
- package/dist/types/common/hooks/usePagination.d.ts.map +0 -1
- package/dist/types/common/hooks/usePrevious.d.ts.map +0 -1
- package/dist/types/common/hooks/useSorting.d.ts.map +0 -1
- package/dist/types/common/hooks/useTrellisEnabled.d.ts.map +0 -1
- package/dist/types/common/interfaces/ChartEvent.d.ts.map +0 -1
- package/dist/types/common/interfaces/DashboardVizProps.d.ts.map +0 -1
- package/dist/types/common/interfaces/DataContract.d.ts.map +0 -1
- package/dist/types/common/interfaces/DataSource.d.ts.map +0 -1
- package/dist/types/common/interfaces/DefaultContext.d.ts.map +0 -1
- package/dist/types/common/interfaces/Editor.d.ts.map +0 -1
- package/dist/types/common/interfaces/ExtendedDashViz.d.ts.map +0 -1
- package/dist/types/common/interfaces/Object.d.ts.map +0 -1
- package/dist/types/common/interfaces/Overview.d.ts.map +0 -1
- package/dist/types/common/interfaces/ThemedDefaults.d.ts.map +0 -1
- package/dist/types/common/interfaces/VizActionHandler.d.ts.map +0 -1
- package/dist/types/common/interfaces/VizBehavior.d.ts.map +0 -1
- package/dist/types/common/interfaces/VizCategory.d.ts.map +0 -1
- package/dist/types/common/interfaces/VizConfig.d.ts.map +0 -1
- package/dist/types/common/interfaces/VizEvent.d.ts.map +0 -1
- package/dist/types/common/interfaces/VizProps.d.ts.map +0 -1
- package/dist/types/common/interfaces/VizRegistry.d.ts.map +0 -1
- package/dist/types/common/interfaces/VizSize.d.ts.map +0 -1
- package/dist/types/common/interfaces/VizStatus.d.ts.map +0 -1
- package/dist/types/common/interfaces/index.d.ts.map +0 -1
- package/dist/types/common/shapeUtils.d.ts.map +0 -1
- package/dist/types/common/utils/configUtils.d.ts.map +0 -1
- package/dist/types/common/utils/dataUtils.d.ts.map +0 -1
- package/dist/types/common/utils/featureFlagUtils.d.ts +0 -3
- package/dist/types/common/utils/featureFlagUtils.d.ts.map +0 -1
- package/dist/types/common/utils/hocUtils.d.ts.map +0 -1
- package/dist/types/common/utils/mapUtils.d.ts.map +0 -1
- package/dist/types/common/utils/styleUtils.d.ts +0 -2
- package/dist/types/common/utils/styleUtils.d.ts.map +0 -1
- package/dist/types/common/utils/tableUtils.d.ts +0 -3
- package/dist/types/common/utils/tableUtils.d.ts.map +0 -1
- package/dist/types/common/utils/trellisUtils.d.ts.map +0 -1
- package/dist/types/common/utils/urlUtils.d.ts.map +0 -1
- package/dist/types/common/withDashboardViz.d.ts.map +0 -1
- /package/{dist/types/Area → Area}/Area.d.ts +0 -0
- /package/{dist/types/Area → Area}/areaUtils.d.ts +0 -0
- /package/{dist/types/Area → Area}/config.d.ts +0 -0
- /package/{dist/types/Area → Area}/index.d.ts +0 -0
- /package/{dist/types/Bar → Bar}/Bar.d.ts +0 -0
- /package/{dist/types/Bar → Bar}/barUtils.d.ts +0 -0
- /package/{dist/types/Bar → Bar}/config.d.ts +0 -0
- /package/{dist/types/Bar → Bar}/index.d.ts +0 -0
- /package/{dist/types/Bubble → Bubble}/Bubble.d.ts +0 -0
- /package/{dist/types/Bubble → Bubble}/bubbleUtils.d.ts +0 -0
- /package/{dist/types/Bubble → Bubble}/config.d.ts +0 -0
- /package/{dist/types/Bubble → Bubble}/index.d.ts +0 -0
- /package/{dist/types/ChoroplethSvg → ChoroplethSvg}/ErrorMessage/ErrorMessage.d.ts +0 -0
- /package/{dist/types/ChoroplethSvg → ChoroplethSvg}/PureChoroplethSvg/PureChoroplethSvg.d.ts +0 -0
- /package/{dist/types/ChoroplethSvg → ChoroplethSvg}/PureChoroplethSvg/SvgChoroplethDynamic.d.ts +0 -0
- /package/{dist/types/ChoroplethSvg → ChoroplethSvg}/PureChoroplethSvg/SvgMutator.d.ts +0 -0
- /package/{dist/types/ChoroplethSvg → ChoroplethSvg}/config.d.ts +0 -0
- /package/{dist/types/ChoroplethSvg → ChoroplethSvg}/index.d.ts +0 -0
- /package/{dist/types/Column → Column}/Column.d.ts +0 -0
- /package/{dist/types/Column → Column}/columnUtils.d.ts +0 -0
- /package/{dist/types/Column → Column}/config.d.ts +0 -0
- /package/{dist/types/Column → Column}/index.d.ts +0 -0
- /package/{dist/types/Ellipse → Ellipse}/Ellipse.d.ts +0 -0
- /package/{dist/types/Ellipse → Ellipse}/config.d.ts +0 -0
- /package/{dist/types/Ellipse → Ellipse}/index.d.ts +0 -0
- /package/{dist/types/Events → Events}/EventUtils.d.ts +0 -0
- /package/{dist/types/Events → Events}/Events.d.ts +0 -0
- /package/{dist/types/Events → Events}/PureEvents/FieldSummaryTooltip.d.ts +0 -0
- /package/{dist/types/Events → Events}/PureEvents/PureEvents.d.ts +0 -0
- /package/{dist/types/Events → Events}/PureEvents/TimeControlsPopover.d.ts +0 -0
- /package/{dist/types/Events → Events}/config.d.ts +0 -0
- /package/{dist/types/Events → Events}/index.d.ts +0 -0
- /package/{dist/types/FillerGauge → FillerGauge}/FillerGauge.d.ts +0 -0
- /package/{dist/types/FillerGauge → FillerGauge}/PureFillerGauge/FillerGauge.d.ts +0 -0
- /package/{dist/types/FillerGauge → FillerGauge}/config.d.ts +0 -0
- /package/{dist/types/FillerGauge → FillerGauge}/index.d.ts +0 -0
- /package/{dist/types/Image → Image}/Image.d.ts +0 -0
- /package/{dist/types/Image → Image}/ImageApi.d.ts +0 -0
- /package/{dist/types/Image → Image}/config.d.ts +0 -0
- /package/{dist/types/Image → Image}/index.d.ts +0 -0
- /package/{dist/types/Line → Line}/Line.d.ts +0 -0
- /package/{dist/types/Line → Line}/config.d.ts +0 -0
- /package/{dist/types/Line → Line}/index.d.ts +0 -0
- /package/{dist/types/Line → Line}/lineUtils.d.ts +0 -0
- /package/{dist/types/LinkGraph → LinkGraph}/ESTestDataSources.d.ts +0 -0
- /package/{dist/types/LinkGraph → LinkGraph}/ESTestTemplate.d.ts +0 -0
- /package/{dist/types/LinkGraph → LinkGraph}/LinkGraph.d.ts +0 -0
- /package/{dist/types/LinkGraph → LinkGraph}/PureLinkGraph/PureLinkGraphUtils.d.ts +0 -0
- /package/{dist/types/LinkGraph → LinkGraph}/PureLinkGraph/components/Edges.d.ts +0 -0
- /package/{dist/types/LinkGraph → LinkGraph}/PureLinkGraph/components/Field.d.ts +0 -0
- /package/{dist/types/LinkGraph → LinkGraph}/PureLinkGraph/components/FieldStyles.d.ts +0 -0
- /package/{dist/types/LinkGraph → LinkGraph}/PureLinkGraph/components/GraphStyles.d.ts +0 -0
- /package/{dist/types/LinkGraph → LinkGraph}/PureLinkGraph/utils/iconLoader.d.ts +0 -0
- /package/{dist/types/LinkGraph → LinkGraph}/config.d.ts +0 -0
- /package/{dist/types/LinkGraph → LinkGraph}/index.d.ts +0 -0
- /package/{dist/types/Map → Map}/PureMap/ChoroplethLayer.d.ts +0 -0
- /package/{dist/types/Map → Map}/PureMap/ClusterLayer.d.ts +0 -0
- /package/{dist/types/Map → Map}/PureMap/LocalChoroplethLayer.d.ts +0 -0
- /package/{dist/types/Map → Map}/PureMap/MarkerLayer.d.ts +0 -0
- /package/{dist/types/Map → Map}/PureMap/MarkerWrapper.d.ts +0 -0
- /package/{dist/types/Map → Map}/PureMap/PureMap.d.ts +0 -0
- /package/{dist/types/Map → Map}/PureMap/PureMapContainer.d.ts +0 -0
- /package/{dist/types/Map → Map}/PureMap/Tooltip.d.ts +0 -0
- /package/{dist/types/Map → Map}/config.d.ts +0 -0
- /package/{dist/types/Map → Map}/index.d.ts +0 -0
- /package/{dist/types/Markdown → Markdown}/Markdown.d.ts +0 -0
- /package/{dist/types/Markdown → Markdown}/config.d.ts +0 -0
- /package/{dist/types/Markdown → Markdown}/index.d.ts +0 -0
- /package/{dist/types/MarkerGauge → MarkerGauge}/config.d.ts +0 -0
- /package/{dist/types/MarkerGauge → MarkerGauge}/index.d.ts +0 -0
- /package/{dist/types/ParallelCoordinates → NetworkGraph}/config.d.ts +0 -0
- /package/{dist/types/ParallelCoordinates → ParallelCoordinates}/ParallelCoordinates.d.ts +0 -0
- /package/{dist/types/ParallelCoordinates → ParallelCoordinates}/PureParallelCoordinates/PureParallelCoordinates.d.ts +0 -0
- /package/{dist/types/ParallelCoordinates → ParallelCoordinates}/PureParallelCoordinates/src/ParallelCoordinatesCanvas.d.ts +0 -0
- /package/{dist/types/ParallelCoordinates → ParallelCoordinates}/PureParallelCoordinates/src/ParallelCoordinatesChart.d.ts +0 -0
- /package/{dist/types/ParallelCoordinates → ParallelCoordinates}/PureParallelCoordinates/src/ParallelCoordinatesPrompt.d.ts +0 -0
- /package/{dist/types/Pie → ParallelCoordinates}/config.d.ts +0 -0
- /package/{dist/types/ParallelCoordinates → ParallelCoordinates}/index.d.ts +0 -0
- /package/{dist/types/ParallelCoordinates → ParallelCoordinates}/mockdata/arrayValueData.d.ts +0 -0
- /package/{dist/types/ParallelCoordinates → ParallelCoordinates}/mockdata/sampleCarData.d.ts +0 -0
- /package/{dist/types/ParallelCoordinates → ParallelCoordinates}/mockdata/sampleCarNumericalData.d.ts +0 -0
- /package/{dist/types/ParallelCoordinates → ParallelCoordinates}/mockdata/sampleFoodData.d.ts +0 -0
- /package/{dist/types/ParallelCoordinates → ParallelCoordinates}/mockdata/sampleStringNumericalData.d.ts +0 -0
- /package/{dist/types/Pie → Pie}/Pie.d.ts +0 -0
- /package/{dist/types/Punchcard → Pie}/config.d.ts +0 -0
- /package/{dist/types/Pie → Pie}/index.d.ts +0 -0
- /package/{dist/types/Pie → Pie}/pieUtils.d.ts +0 -0
- /package/{dist/types/Punchcard → Punchcard}/Punchcard.d.ts +0 -0
- /package/{dist/types/Punchcard → Punchcard}/PurePunchcard/Punchcard.d.ts +0 -0
- /package/{dist/types/Punchcard → Punchcard}/PurePunchcard/src/PunchcardAxis.d.ts +0 -0
- /package/{dist/types/Punchcard → Punchcard}/PurePunchcard/src/PunchcardBubble.d.ts +0 -0
- /package/{dist/types/Punchcard → Punchcard}/PurePunchcard/src/PunchcardChartArea.d.ts +0 -0
- /package/{dist/types/Punchcard → Punchcard}/PurePunchcard/src/PunchcardGridLines.d.ts +0 -0
- /package/{dist/types/Punchcard → Punchcard}/PurePunchcard/src/PunchcardLegend.d.ts +0 -0
- /package/{dist/types/Punchcard → Punchcard}/PurePunchcard/src/PunchcardRow.d.ts +0 -0
- /package/{dist/types/Punchcard → Punchcard}/PurePunchcard/src/utils/punchcardUtils.d.ts +0 -0
- /package/{dist/types/Rectangle → Punchcard}/config.d.ts +0 -0
- /package/{dist/types/Punchcard → Punchcard}/index.d.ts +0 -0
- /package/{dist/types/Punchcard → Punchcard}/punchcardUtils.d.ts +0 -0
- /package/{dist/types/Rectangle → Rectangle}/Rectangle.d.ts +0 -0
- /package/{dist/types/Sankey → Rectangle}/config.d.ts +0 -0
- /package/{dist/types/Rectangle → Rectangle}/index.d.ts +0 -0
- /package/{dist/types/Sankey → Sankey}/PureSankey/PureSankey.d.ts +0 -0
- /package/{dist/types/Sankey → Sankey}/PureSankey/SankeyLink.d.ts +0 -0
- /package/{dist/types/Sankey → Sankey}/PureSankey/SankeyModels.d.ts +0 -0
- /package/{dist/types/Sankey → Sankey}/PureSankey/SankeyNode.d.ts +0 -0
- /package/{dist/types/Sankey → Sankey}/PureSankey/SankeyTooltip.d.ts +0 -0
- /package/{dist/types/Sankey → Sankey}/PureSankey/SankeyUtils.d.ts +0 -0
- /package/{dist/types/Sankey → Sankey}/PureSankey/mockdata/data.d.ts +0 -0
- /package/{dist/types/Sankey → Sankey}/Sankey.d.ts +0 -0
- /package/{dist/types/Scatter → Sankey}/config.d.ts +0 -0
- /package/{dist/types/Sankey → Sankey}/index.d.ts +0 -0
- /package/{dist/types/Scatter → Scatter}/Scatter.d.ts +0 -0
- /package/{dist/types/SingleValue → Scatter}/config.d.ts +0 -0
- /package/{dist/types/Scatter → Scatter}/index.d.ts +0 -0
- /package/{dist/types/Scatter → Scatter}/mockdata/data.d.ts +0 -0
- /package/{dist/types/Scatter → Scatter}/scatterUtils.d.ts +0 -0
- /package/{dist/types/SingleValue → SingleValue}/SingleValue.d.ts +0 -0
- /package/{dist/types/SingleValueIcon → SingleValue}/config.d.ts +0 -0
- /package/{dist/types/SingleValue → SingleValue}/index.d.ts +0 -0
- /package/{dist/types/SingleValueBasic → SingleValueBasic}/index.d.ts +0 -0
- /package/{dist/types/SingleValueIcon → SingleValueIcon}/SingleValueIcon.d.ts +0 -0
- /package/{dist/types/SingleValueRadial → SingleValueIcon}/config.d.ts +0 -0
- /package/{dist/types/SingleValueIcon → SingleValueIcon}/index.d.ts +0 -0
- /package/{dist/types/SingleValueRadial → SingleValueRadial}/PureSingleValueRadial/GaugeGraph.d.ts +0 -0
- /package/{dist/types/SingleValueRadial → SingleValueRadial}/SingleValueRadial.d.ts +0 -0
- /package/{dist/types/Table → SingleValueRadial}/config.d.ts +0 -0
- /package/{dist/types/SingleValueRadial → SingleValueRadial}/index.d.ts +0 -0
- /package/{dist/types/SparkLine → SparkLine}/index.d.ts +0 -0
- /package/{dist/types/Table → Table}/cells/ArrayCell.d.ts +0 -0
- /package/{dist/types/Table → Table}/cells/SparklineCell.d.ts +0 -0
- /package/{dist/types/Table → Table}/cells/SwitchTableCell.d.ts +0 -0
- /package/{dist/types/Table → Table}/cells/TextCell.d.ts +0 -0
- /package/{dist/types/Table → Table}/cells/index.d.ts +0 -0
- /package/{dist/types/Timeline → Table}/config.d.ts +0 -0
- /package/{dist/types/Table → Table}/index.d.ts +0 -0
- /package/{dist/types/Timeline → Timeline}/PureTimeline/PureTimeline.d.ts +0 -0
- /package/{dist/types/Timeline → Timeline}/PureTimeline/src/CursorPlugin.d.ts +0 -0
- /package/{dist/types/Timeline → Timeline}/PureTimeline/src/TimelineLegend.d.ts +0 -0
- /package/{dist/types/Timeline → Timeline}/PureTimeline/src/TimelineTooltip.d.ts +0 -0
- /package/{dist/types/Timeline → Timeline}/PureTimeline/src/TimelineUplot.d.ts +0 -0
- /package/{dist/types/Timeline → Timeline}/PureTimeline/src/TimelineYAxis.d.ts +0 -0
- /package/{dist/types/Timeline → Timeline}/Timeline.d.ts +0 -0
- /package/{dist/types/Timeline → Timeline}/index.d.ts +0 -0
- /package/{dist/types/Timeline → Timeline}/mockdata/basicTimelineData.d.ts +0 -0
- /package/{dist/types/Timeline → Timeline}/mockdata/categoricalTimelineData.d.ts +0 -0
- /package/{dist/types/Timeline → Timeline}/mockdata/timelineDataSource.d.ts +0 -0
- /package/{dist/types/common → common}/ChartingApi.d.ts +0 -0
- /package/{dist/types/common → common}/DocExampleWithVizSandbox.d.ts +0 -0
- /package/{dist/types/common → common}/OverviewDoc.d.ts +0 -0
- /package/{dist/types/common → common}/SplunkVisualization.d.ts +0 -0
- /package/{dist/types/common → common}/SplunkVisualizationApi.d.ts +0 -0
- /package/{dist/types/common → common}/ThemedDefaults.d.ts +0 -0
- /package/{dist/types/common → common}/components/IconPlaceholder.d.ts +0 -0
- /package/{dist/types/common → common}/components/MissingPropsMessage.d.ts +0 -0
- /package/{dist/types/common → common}/components/TrellisTitle.d.ts +0 -0
- /package/{dist/types/common → common}/configContext/singleValueContext.d.ts +0 -0
- /package/{dist/types/common → common}/docUtils.d.ts +0 -0
- /package/{dist/types/common → common}/editorConfig/AxesChartColorAndStyle.d.ts +0 -0
- /package/{dist/types/common → common}/editorConfig/AxesChartDataConfig.d.ts +0 -0
- /package/{dist/types/common → common}/editorConfig/AxesChartDataDisplay.d.ts +0 -0
- /package/{dist/types/common → common}/editorConfig/AxesChartLegend.d.ts +0 -0
- /package/{dist/types/common → common}/editorConfig/AxesChartXGridAndLabels.d.ts +0 -0
- /package/{dist/types/common → common}/editorConfig/AxesChartY2GridAndLabels.d.ts +0 -0
- /package/{dist/types/common → common}/editorConfig/AxesChartYGridAndLabels.d.ts +0 -0
- /package/{dist/types/common → common}/editorConfig/BackgroundColor.d.ts +0 -0
- /package/{dist/types/common → common}/editorConfig/DynamicFillColorEditor.d.ts +0 -0
- /package/{dist/types/common → common}/editorConfig/DynamicGaugeColorEditor.d.ts +0 -0
- /package/{dist/types/common → common}/editorConfig/DynamicStrokeColorEditor.d.ts +0 -0
- /package/{dist/types/common → common}/editorConfig/Gauge.d.ts +0 -0
- /package/{dist/types/common → common}/editorConfig/Legend.d.ts +0 -0
- /package/{dist/types/common → common}/editorConfig/RadialBackgroundColor.d.ts +0 -0
- /package/{dist/types/common → common}/editorConfig/StaticFillColorEditor.d.ts +0 -0
- /package/{dist/types/common → common}/editorConfig/StaticGaugeColorEditor.d.ts +0 -0
- /package/{dist/types/common → common}/editorConfig/StaticStrokeColorEditor.d.ts +0 -0
- /package/{dist/types/common → common}/editorConfig/TrellisEditors.d.ts +0 -0
- /package/{dist/types/common → common}/gaugeUtils.d.ts +0 -0
- /package/{dist/types/common → common}/hocs/FixedSizeContainer.d.ts +0 -0
- /package/{dist/types/common → common}/hocs/mockdata/trellisData.d.ts +0 -0
- /package/{dist/types/common → common}/hocs/withEditModeCover.d.ts +0 -0
- /package/{dist/types/common → common}/hocs/withPlaceholder.d.ts +0 -0
- /package/{dist/types/common → common}/hocs/withTrellis.d.ts +0 -0
- /package/{dist/types/common → common}/hooks/useDeepMemo.d.ts +0 -0
- /package/{dist/types/common → common}/hooks/useDownsampleDataSources.d.ts +0 -0
- /package/{dist/types/common → common}/hooks/useEventCallback.d.ts +0 -0
- /package/{dist/types/common → common}/hooks/useGetXAndYFields.d.ts +0 -0
- /package/{dist/types/common → common}/hooks/usePagination.d.ts +0 -0
- /package/{dist/types/common → common}/hooks/usePrevious.d.ts +0 -0
- /package/{dist/types/common → common}/hooks/useSorting.d.ts +0 -0
- /package/{dist/types/common → common}/hooks/useTrellisEnabled.d.ts +0 -0
- /package/{dist/types/common → common}/interfaces/ChartEvent.d.ts +0 -0
- /package/{dist/types/common → common}/interfaces/DataContract.d.ts +0 -0
- /package/{dist/types/common → common}/interfaces/DefaultContext.d.ts +0 -0
- /package/{dist/types/common → common}/interfaces/Editor.d.ts +0 -0
- /package/{dist/types/common → common}/interfaces/ExtendedDashViz.d.ts +0 -0
- /package/{dist/types/common → common}/interfaces/Object.d.ts +0 -0
- /package/{dist/types/common → common}/interfaces/Overview.d.ts +0 -0
- /package/{dist/types/common → common}/interfaces/ThemedDefaults.d.ts +0 -0
- /package/{dist/types/common → common}/interfaces/VizActionHandler.d.ts +0 -0
- /package/{dist/types/common → common}/interfaces/VizBehavior.d.ts +0 -0
- /package/{dist/types/common → common}/interfaces/VizCategory.d.ts +0 -0
- /package/{dist/types/common → common}/interfaces/VizConfig.d.ts +0 -0
- /package/{dist/types/common → common}/interfaces/VizEvent.d.ts +0 -0
- /package/{dist/types/common → common}/interfaces/VizProps.d.ts +0 -0
- /package/{dist/types/common → common}/interfaces/VizRegistry.d.ts +0 -0
- /package/{dist/types/common → common}/interfaces/VizSize.d.ts +0 -0
- /package/{dist/types/common → common}/interfaces/VizStatus.d.ts +0 -0
- /package/{dist/types/common → common}/interfaces/index.d.ts +0 -0
- /package/{dist/types/common → common}/shapeUtils.d.ts +0 -0
- /package/{dist/types/common → common}/utils/configUtils.d.ts +0 -0
- /package/{dist/types/common → common}/utils/dataUtils.d.ts +0 -0
- /package/{dist/types/common → common}/utils/hocUtils.d.ts +0 -0
- /package/{dist/types/common → common}/utils/mapUtils.d.ts +0 -0
- /package/{dist/types/common → common}/utils/trellisUtils.d.ts +0 -0
- /package/{dist/types/common → common}/utils/urlUtils.d.ts +0 -0
package/ParallelCoordinates.js
CHANGED
|
@@ -451,7 +451,7 @@ var ParallelCoordinatesChart = (_a) => {
|
|
|
451
451
|
nullAxisScale.domain(currentDimensions).range([0, width - 2 * axisPadding * xPositionScale.step()]);
|
|
452
452
|
const position = (d) => {
|
|
453
453
|
const v = dragging[d];
|
|
454
|
-
return v
|
|
454
|
+
return v != null ? v : xPositionScale(d);
|
|
455
455
|
};
|
|
456
456
|
const transition = (g) => g.transition().duration(500);
|
|
457
457
|
const clearAllFilters = () => {
|
|
@@ -501,9 +501,19 @@ var ParallelCoordinatesChart = (_a) => {
|
|
|
501
501
|
const strokeStyle = `rgba(${rgba[0]}, ${rgba[1]}, ${rgba[2]}, 0.8)`;
|
|
502
502
|
g.append("g").attr("class", "axis vertical-axis").each((d, i, nodes) => {
|
|
503
503
|
if (yPositionScale[d].ticks) {
|
|
504
|
-
(0, d3_selection_exports.select)(nodes[i]).call((0, d3_axis_exports.axisLeft)(yPositionScale[d])).selectAll("text").append("title").text((datum) =>
|
|
504
|
+
(0, d3_selection_exports.select)(nodes[i]).call((0, d3_axis_exports.axisLeft)(yPositionScale[d])).selectAll("text").append("title").text((datum) => {
|
|
505
|
+
if (datum == null) return "";
|
|
506
|
+
if (Array.isArray(datum)) return datum.join(", ");
|
|
507
|
+
if (typeof datum === "object") return JSON.stringify(datum);
|
|
508
|
+
return JSON.stringify(datum);
|
|
509
|
+
});
|
|
505
510
|
} else {
|
|
506
|
-
(0, d3_selection_exports.select)(nodes[i]).call((0, d3_axis_exports.axisLeft)(yPositionScale[d]).tickFormat((p) => truncate(p, maxStrLength))).selectAll("text").append("title").text((datum) =>
|
|
511
|
+
(0, d3_selection_exports.select)(nodes[i]).call((0, d3_axis_exports.axisLeft)(yPositionScale[d]).tickFormat((p) => truncate(p, maxStrLength))).selectAll("text").append("title").text((datum) => {
|
|
512
|
+
if (datum == null) return "";
|
|
513
|
+
if (Array.isArray(datum)) return datum.join(", ");
|
|
514
|
+
if (typeof datum === "object") return JSON.stringify(datum);
|
|
515
|
+
return JSON.stringify(datum);
|
|
516
|
+
});
|
|
507
517
|
}
|
|
508
518
|
}).selectAll("text").attr("fill", axisLabelColor).clone(true).lower().attr("fill", "none").attr("stroke-width", 2).attr("stroke-linejoin", "round").attr("stroke", strokeStyle);
|
|
509
519
|
g.append("text").attr("class", "axisTitle").attr("fill", axisTitleColor).attr("font-size", "12px").attr("text-anchor", "middle").attr("y", -9).text((d) => d);
|
|
@@ -1147,7 +1157,7 @@ var Cover = styled_components_default.div`
|
|
|
1147
1157
|
bottom: 0;
|
|
1148
1158
|
`;
|
|
1149
1159
|
var Blocker = styled_components_default.div.attrs({
|
|
1150
|
-
"data-splunk-visualization-version": "28.
|
|
1160
|
+
"data-splunk-visualization-version": "28.4.0 - 002bd482f"
|
|
1151
1161
|
})`
|
|
1152
1162
|
position: relative;
|
|
1153
1163
|
width: 100%;
|
|
@@ -1237,7 +1247,7 @@ var withFixedSizeContainer = (Viz) => {
|
|
|
1237
1247
|
FixSizeItem,
|
|
1238
1248
|
{
|
|
1239
1249
|
"data-test": "fix-size-item",
|
|
1240
|
-
"data-splunk-visualization-version": "28.
|
|
1250
|
+
"data-splunk-visualization-version": "28.4.0 - 002bd482f",
|
|
1241
1251
|
width,
|
|
1242
1252
|
height,
|
|
1243
1253
|
backgroundColor
|
|
@@ -1333,6 +1343,7 @@ __reExport(numberUtils_exports, require("@splunk/visualizations-shared/numberUti
|
|
|
1333
1343
|
var numberUtils_default = "default" in defaultImport28 ? defaultImport28.default : defaultImport28;
|
|
1334
1344
|
|
|
1335
1345
|
// src/common/utils/dataUtils.ts
|
|
1346
|
+
var getFieldName = (field) => typeof field === "string" ? field : field.name;
|
|
1336
1347
|
var largestTriangleThreeBuckets = (data, threshold, preferredDownsampleIndices) => {
|
|
1337
1348
|
const dataLength = data.length;
|
|
1338
1349
|
const downsampledIndices = [];
|
|
@@ -1449,9 +1460,9 @@ var tryToCoerceAllDisplayedFields = (ds, xField, yFields, fieldTypes, options) =
|
|
|
1449
1460
|
let xColumn = [];
|
|
1450
1461
|
const yColumns = [];
|
|
1451
1462
|
const canDownsample = !ds.data.fields.some((field, index) => {
|
|
1452
|
-
var _a
|
|
1453
|
-
const fieldName = (
|
|
1454
|
-
const fieldType = (
|
|
1463
|
+
var _a;
|
|
1464
|
+
const fieldName = getFieldName(field);
|
|
1465
|
+
const fieldType = (_a = fieldTypes[index]) != null ? _a : "unknown";
|
|
1455
1466
|
const column = ds.data.columns[index];
|
|
1456
1467
|
let hasDisplayedColumnThatCantBeDownsampled = false;
|
|
1457
1468
|
if (fieldName === xField) {
|
|
@@ -1791,14 +1802,29 @@ var getAnnotationsForCanvas = ({
|
|
|
1791
1802
|
var StyledTriangle = styled_components_default(Triangle_default)`
|
|
1792
1803
|
color: ${(props) => props.eventColor || variables_default.severityColorNotice(props)};
|
|
1793
1804
|
`;
|
|
1794
|
-
var triangleEventAnnotationRenderer = ({
|
|
1805
|
+
var triangleEventAnnotationRenderer = ({
|
|
1806
|
+
event,
|
|
1807
|
+
dimensions
|
|
1808
|
+
}) => {
|
|
1795
1809
|
const eventWithColor = event;
|
|
1796
1810
|
return react_default.createElement(StyledTriangle, {
|
|
1811
|
+
width: `${dimensions.width}px`,
|
|
1812
|
+
height: `${dimensions.height}px`,
|
|
1797
1813
|
viewBox: "0 0 24 24",
|
|
1798
1814
|
variant: "filled",
|
|
1799
1815
|
eventColor: eventWithColor.color
|
|
1800
1816
|
});
|
|
1801
1817
|
};
|
|
1818
|
+
var shouldEnableSearchZoom = (eventHandlers = [], xField = "") => {
|
|
1819
|
+
const rangeSelectEventHandler = eventHandlers.find(
|
|
1820
|
+
(eventHandler) => {
|
|
1821
|
+
var _a;
|
|
1822
|
+
return (_a = eventHandler.options.events) == null ? void 0 : _a.includes("range.select");
|
|
1823
|
+
}
|
|
1824
|
+
);
|
|
1825
|
+
const xAxisIsTime = xField === "_time";
|
|
1826
|
+
return !!rangeSelectEventHandler && xAxisIsTime;
|
|
1827
|
+
};
|
|
1802
1828
|
var canvasSupportedTimeSeriesCharts = ["splunk.line"];
|
|
1803
1829
|
var isTimeSeriesCanvasRenderSupported = (vizConfigKey) => {
|
|
1804
1830
|
return canvasSupportedTimeSeriesCharts.indexOf(vizConfigKey) > -1;
|
|
@@ -1819,16 +1845,31 @@ var filterChartDataFromInternalFields = (chartData) => {
|
|
|
1819
1845
|
var convert2DArrayToNumbers = (arr) => {
|
|
1820
1846
|
return arr.map((subArray) => subArray.map((element) => parseFloat(element)));
|
|
1821
1847
|
};
|
|
1848
|
+
var parseAxisValue = (val) => {
|
|
1849
|
+
if (val === void 0 || val === null || val === "auto" || val === "") {
|
|
1850
|
+
return void 0;
|
|
1851
|
+
}
|
|
1852
|
+
const num = typeof val === "number" ? val : Number.parseFloat(val);
|
|
1853
|
+
return Number.isNaN(num) ? void 0 : num;
|
|
1854
|
+
};
|
|
1822
1855
|
var SideLegendWidth = 75;
|
|
1823
|
-
var
|
|
1856
|
+
var SeriesCompareLegendWidth = 200;
|
|
1824
1857
|
var getLegend = (props) => {
|
|
1825
1858
|
const legendPlacement = props == null ? void 0 : props.legendDisplay;
|
|
1859
|
+
const { isSeriesCompare } = props;
|
|
1860
|
+
const commonLegendProps = {
|
|
1861
|
+
center: true,
|
|
1862
|
+
fontSize: 12,
|
|
1863
|
+
largerTiles: true,
|
|
1864
|
+
hideSeriesValue: !isSeriesCompare
|
|
1865
|
+
// Show values if in seriesCompare mode
|
|
1866
|
+
};
|
|
1826
1867
|
switch (legendPlacement) {
|
|
1827
1868
|
case "off":
|
|
1828
1869
|
return false;
|
|
1829
1870
|
case "left":
|
|
1830
1871
|
return (0, visualization_canvas_exports.LeftLegendFactory)(__spreadValues({
|
|
1831
|
-
width: SideLegendWidth
|
|
1872
|
+
width: isSeriesCompare ? SeriesCompareLegendWidth : SideLegendWidth
|
|
1832
1873
|
}, commonLegendProps));
|
|
1833
1874
|
case "bottom":
|
|
1834
1875
|
return (0, visualization_canvas_exports.BottomLegendFactory)(__spreadValues({
|
|
@@ -1840,7 +1881,7 @@ var getLegend = (props) => {
|
|
|
1840
1881
|
}, commonLegendProps));
|
|
1841
1882
|
default:
|
|
1842
1883
|
return (0, visualization_canvas_exports.SideLegendFactory)(__spreadValues({
|
|
1843
|
-
width: SideLegendWidth
|
|
1884
|
+
width: isSeriesCompare ? SeriesCompareLegendWidth : SideLegendWidth
|
|
1844
1885
|
}, commonLegendProps));
|
|
1845
1886
|
}
|
|
1846
1887
|
};
|
|
@@ -1876,19 +1917,25 @@ var ellipsisAxisTitle = (axisTitle, containerSpacing, fontSize = 12) => {
|
|
|
1876
1917
|
const end = axisTitle.slice(-halfChars);
|
|
1877
1918
|
return `${start}...${end}`;
|
|
1878
1919
|
};
|
|
1879
|
-
var
|
|
1920
|
+
var getFieldName2 = (field) => {
|
|
1880
1921
|
const fieldName = typeof field === "object" ? field == null ? void 0 : field.name : field;
|
|
1881
1922
|
return fieldName;
|
|
1882
1923
|
};
|
|
1883
1924
|
var getFieldNames = (fields) => {
|
|
1884
|
-
return fields.map((field) =>
|
|
1925
|
+
return fields.map((field) => getFieldName2(field));
|
|
1885
1926
|
};
|
|
1886
|
-
var getXScaleConfig = (label) => {
|
|
1927
|
+
var getXScaleConfig = (label, xAxisLabelVisibility, xAxisLabelRotation) => {
|
|
1887
1928
|
const xConfig = { x: {} };
|
|
1888
1929
|
xConfig.x.label = label;
|
|
1930
|
+
if (xAxisLabelVisibility === "hide") {
|
|
1931
|
+
xConfig.x.hideLabels = true;
|
|
1932
|
+
}
|
|
1933
|
+
if (xAxisLabelRotation !== void 0) {
|
|
1934
|
+
xConfig.x.labelRotation = xAxisLabelRotation;
|
|
1935
|
+
}
|
|
1889
1936
|
return xConfig;
|
|
1890
1937
|
};
|
|
1891
|
-
var getYScaleConfig = (label, yAxisAbbreviation, yAxisScale) => {
|
|
1938
|
+
var getYScaleConfig = (label, yAxisAbbreviation, yAxisScale, yAxisLabelVisibility, yAxisMin, yAxisMax) => {
|
|
1892
1939
|
const scaleType = yAxisScale != null ? yAxisScale : "linear";
|
|
1893
1940
|
const yConfig = { y: {} };
|
|
1894
1941
|
yConfig.y.label = label;
|
|
@@ -1901,23 +1948,42 @@ var getYScaleConfig = (label, yAxisAbbreviation, yAxisScale) => {
|
|
|
1901
1948
|
} else {
|
|
1902
1949
|
yConfig.y.width = label && label.length > 0 ? 30 : 10;
|
|
1903
1950
|
}
|
|
1951
|
+
if (yAxisLabelVisibility === "hide") {
|
|
1952
|
+
yConfig.y.hideLabels = true;
|
|
1953
|
+
}
|
|
1954
|
+
if (yAxisMin !== void 0 || yAxisMax !== void 0) {
|
|
1955
|
+
yConfig.y.range = (u, dataMin, dataMax) => {
|
|
1956
|
+
const min = yAxisMin != null ? yAxisMin : dataMin;
|
|
1957
|
+
const max = yAxisMax != null ? yAxisMax : dataMax;
|
|
1958
|
+
return [min, max];
|
|
1959
|
+
};
|
|
1960
|
+
}
|
|
1904
1961
|
return yConfig;
|
|
1905
1962
|
};
|
|
1906
|
-
var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInteger) => {
|
|
1963
|
+
var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInteger, y2AxisLabelVisibility, y2AxisMin, y2AxisMax) => {
|
|
1907
1964
|
const y2Config = { y2: {} };
|
|
1908
1965
|
const scaleType = axisScale != null ? axisScale : "linear";
|
|
1909
1966
|
y2Config.y2.label = label;
|
|
1910
1967
|
y2Config.y2.side = "right";
|
|
1911
|
-
y2Config.y2.showGrid = false;
|
|
1912
1968
|
y2Config.y2.type = scaleType;
|
|
1913
1969
|
if (axisAbbreviation !== "none") {
|
|
1914
1970
|
y2Config.y2.tickFmt = (v) => (0, visualization_canvas_exports.shortenNumber)(v, 1, roundAxisLabelsToInteger);
|
|
1915
1971
|
} else if (roundAxisLabelsToInteger) {
|
|
1916
1972
|
y2Config.y2.tickFmt = (v) => roundAxisLabelsToInteger ? Math.round(v).toString() : v.toString();
|
|
1917
1973
|
}
|
|
1974
|
+
if (y2AxisLabelVisibility === "hide") {
|
|
1975
|
+
y2Config.y2.hideLabels = true;
|
|
1976
|
+
}
|
|
1977
|
+
if (y2AxisMin !== void 0 || y2AxisMax !== void 0) {
|
|
1978
|
+
y2Config.y2.range = (u, dataMin, dataMax) => {
|
|
1979
|
+
const min = y2AxisMin != null ? y2AxisMin : dataMin;
|
|
1980
|
+
const max = y2AxisMax != null ? y2AxisMax : dataMax;
|
|
1981
|
+
return [min, max];
|
|
1982
|
+
};
|
|
1983
|
+
}
|
|
1918
1984
|
return y2Config;
|
|
1919
1985
|
};
|
|
1920
|
-
var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled, nullValueMode) => {
|
|
1986
|
+
var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled, nullValueMode, markerDisplay, lineDashStyle, lineDashStylesByField) => {
|
|
1921
1987
|
const seriesConfig = {};
|
|
1922
1988
|
let spanGaps;
|
|
1923
1989
|
let replaceNullsWithZero;
|
|
@@ -1949,12 +2015,99 @@ var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled
|
|
|
1949
2015
|
if (overlayFields == null ? void 0 : overlayFields.includes(field)) {
|
|
1950
2016
|
seriesConfig[field].type = "line";
|
|
1951
2017
|
}
|
|
2018
|
+
if (markerDisplay !== void 0) {
|
|
2019
|
+
seriesConfig[field].markerDisplay = markerDisplay;
|
|
2020
|
+
}
|
|
2021
|
+
const fieldDashStyle = (lineDashStylesByField == null ? void 0 : lineDashStylesByField[field]) || lineDashStyle;
|
|
2022
|
+
if (fieldDashStyle) {
|
|
2023
|
+
seriesConfig[field].lineDashStyle = fieldDashStyle;
|
|
2024
|
+
}
|
|
1952
2025
|
if (replaceNullsWithZero !== void 0) {
|
|
1953
2026
|
seriesConfig[field].replaceNullsWithZero = replaceNullsWithZero;
|
|
1954
2027
|
}
|
|
1955
2028
|
});
|
|
1956
2029
|
return seriesConfig;
|
|
1957
2030
|
};
|
|
2031
|
+
var findRangeIndices = (xData, startValue, endValue) => {
|
|
2032
|
+
let startXIndex = -1;
|
|
2033
|
+
let endXIndex = -1;
|
|
2034
|
+
const xDataEpoch = xData.map((val) => {
|
|
2035
|
+
if (typeof val === "string") {
|
|
2036
|
+
return new Date(val).getTime() / 1e3;
|
|
2037
|
+
}
|
|
2038
|
+
return val;
|
|
2039
|
+
});
|
|
2040
|
+
for (let i = 0; i < xDataEpoch.length; i += 1) {
|
|
2041
|
+
if (xDataEpoch[i] >= startValue) {
|
|
2042
|
+
startXIndex = i;
|
|
2043
|
+
break;
|
|
2044
|
+
}
|
|
2045
|
+
}
|
|
2046
|
+
if (startXIndex === -1 && xDataEpoch.length > 0) {
|
|
2047
|
+
startXIndex = xDataEpoch.length - 1;
|
|
2048
|
+
}
|
|
2049
|
+
for (let i = xDataEpoch.length - 1; i >= 0; i -= 1) {
|
|
2050
|
+
if (xDataEpoch[i] <= endValue) {
|
|
2051
|
+
endXIndex = i;
|
|
2052
|
+
break;
|
|
2053
|
+
}
|
|
2054
|
+
}
|
|
2055
|
+
if (endXIndex === -1 && xDataEpoch.length > 0) {
|
|
2056
|
+
endXIndex = 0;
|
|
2057
|
+
}
|
|
2058
|
+
return { startXIndex, endXIndex };
|
|
2059
|
+
};
|
|
2060
|
+
|
|
2061
|
+
// esm-externals:@splunk/visualization-schemas
|
|
2062
|
+
var visualization_schemas_exports = {};
|
|
2063
|
+
__export(visualization_schemas_exports, {
|
|
2064
|
+
default: () => visualization_schemas_default
|
|
2065
|
+
});
|
|
2066
|
+
var defaultImport33 = __toESM(require("@splunk/visualization-schemas"));
|
|
2067
|
+
__reExport(visualization_schemas_exports, require("@splunk/visualization-schemas"));
|
|
2068
|
+
var visualization_schemas_default = "default" in defaultImport33 ? defaultImport33.default : defaultImport33;
|
|
2069
|
+
|
|
2070
|
+
// src/common/hooks/useTrellisEnabled.ts
|
|
2071
|
+
var useTrellisFeatureFlagOn = () => {
|
|
2072
|
+
const context = (0, react_exports.useContext)(FeatureFlagContext_default);
|
|
2073
|
+
return Boolean(context == null ? void 0 : context.visualizations_enableTrellis);
|
|
2074
|
+
};
|
|
2075
|
+
var useTrellisEnabled = (layoutType = visualization_schemas_exports.LAYOUT_TYPE.Off) => {
|
|
2076
|
+
const trellisFeatureEnabled = useTrellisFeatureFlagOn();
|
|
2077
|
+
return trellisFeatureEnabled && layoutType === visualization_schemas_exports.LAYOUT_TYPE.Trellis;
|
|
2078
|
+
};
|
|
2079
|
+
|
|
2080
|
+
// src/common/components/TrellisTitle.tsx
|
|
2081
|
+
var TRELLIS_TITLE_HEIGHT = 28;
|
|
2082
|
+
var TrellisTitleText = styled_components_default.div`
|
|
2083
|
+
margin-left: 10px;
|
|
2084
|
+
margin-right: 10px;
|
|
2085
|
+
padding-top: 8px;
|
|
2086
|
+
text-overflow: ellipsis;
|
|
2087
|
+
white-space: nowrap;
|
|
2088
|
+
overflow: hidden;
|
|
2089
|
+
`;
|
|
2090
|
+
var TrellisTitleDiv = styled_components_default.div`
|
|
2091
|
+
height: ${TRELLIS_TITLE_HEIGHT}px;
|
|
2092
|
+
font-size: 14px;
|
|
2093
|
+
font-weight: 700;
|
|
2094
|
+
color: ${(props) => props.fontColor};
|
|
2095
|
+
background-color: ${(props) => props.backgroundColor};
|
|
2096
|
+
box-shadow: 0 1px ${(props) => props.backgroundColor}; // this is added to avoid a 1px gap between title and viz divs that showed up intermittently because of pixel rounding error in chrome.
|
|
2097
|
+
`;
|
|
2098
|
+
var TrellisTitle = (props) => {
|
|
2099
|
+
const titleText = String(props.trellisKey).toString();
|
|
2100
|
+
return /* @__PURE__ */ react_exports.createElement(
|
|
2101
|
+
TrellisTitleDiv,
|
|
2102
|
+
{
|
|
2103
|
+
fontColor: props.fontColor,
|
|
2104
|
+
backgroundColor: props.backgroundColor,
|
|
2105
|
+
"data-test": "trellis-title",
|
|
2106
|
+
title: titleText
|
|
2107
|
+
},
|
|
2108
|
+
/* @__PURE__ */ react_exports.createElement(TrellisTitleText, null, titleText)
|
|
2109
|
+
);
|
|
2110
|
+
};
|
|
1958
2111
|
|
|
1959
2112
|
// src/common/TimeSeriesChartWrapper.tsx
|
|
1960
2113
|
var TimeSeriesChartContainer = styled_components_default.div`
|
|
@@ -1965,45 +2118,190 @@ var TimeSeriesChartContainer = styled_components_default.div`
|
|
|
1965
2118
|
position: absolute !important; // This is needed for canvas element export pdf/png to work correctly
|
|
1966
2119
|
}
|
|
1967
2120
|
`;
|
|
1968
|
-
var
|
|
2121
|
+
var appendTrellisToPayload = (payload, trellisKey, trellisSplitBy) => {
|
|
2122
|
+
const result = __spreadValues({}, payload);
|
|
2123
|
+
if (trellisSplitBy) {
|
|
2124
|
+
result["trellis.name"] = trellisSplitBy;
|
|
2125
|
+
}
|
|
2126
|
+
if (trellisKey) {
|
|
2127
|
+
result["trellis.value"] = trellisKey;
|
|
2128
|
+
}
|
|
2129
|
+
return result;
|
|
2130
|
+
};
|
|
2131
|
+
var hasMouseoverPayloadChanged = (currentPayload, previousPayload) => {
|
|
2132
|
+
if (!previousPayload) {
|
|
2133
|
+
return true;
|
|
2134
|
+
}
|
|
2135
|
+
if (currentPayload.index !== previousPayload.index) {
|
|
2136
|
+
return true;
|
|
2137
|
+
}
|
|
2138
|
+
if (currentPayload.seriesIndex !== previousPayload.seriesIndex) {
|
|
2139
|
+
return true;
|
|
2140
|
+
}
|
|
2141
|
+
if (currentPayload["trellis.name"] !== previousPayload["trellis.name"]) {
|
|
2142
|
+
return true;
|
|
2143
|
+
}
|
|
2144
|
+
if (currentPayload["trellis.value"] !== previousPayload["trellis.value"]) {
|
|
2145
|
+
return true;
|
|
2146
|
+
}
|
|
2147
|
+
return false;
|
|
2148
|
+
};
|
|
2149
|
+
var handleClick = (chartEvent, onClick, trellisKey, trellisSplitBy) => {
|
|
1969
2150
|
const payload = __spreadProps(__spreadValues({}, (0, lodash_exports.pick)(chartEvent, "value", "seriesKey")), {
|
|
1970
2151
|
name: chartEvent.seriesKey
|
|
1971
2152
|
});
|
|
1972
2153
|
delete payload.seriesKey;
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
2154
|
+
if (chartEvent.rowContext) {
|
|
2155
|
+
Object.assign(
|
|
2156
|
+
payload,
|
|
2157
|
+
Object.keys(chartEvent.rowContext).reduce((acc, fieldName) => {
|
|
2158
|
+
acc[`row.${fieldName}.value`] = chartEvent.rowContext[fieldName];
|
|
2159
|
+
return acc;
|
|
2160
|
+
}, {})
|
|
2161
|
+
);
|
|
2162
|
+
}
|
|
2163
|
+
const updatedPayload = appendTrellisToPayload(payload, trellisKey, trellisSplitBy);
|
|
2164
|
+
if (onClick) {
|
|
2165
|
+
onClick({
|
|
1976
2166
|
type: "point.click",
|
|
1977
2167
|
originalEvent: chartEvent,
|
|
1978
|
-
payload
|
|
2168
|
+
payload: updatedPayload
|
|
1979
2169
|
});
|
|
1980
2170
|
}
|
|
1981
2171
|
};
|
|
1982
|
-
var handleLegendClick = (chartEvent,
|
|
2172
|
+
var handleLegendClick = (chartEvent, onClick, trellisKey, trellisSplitBy) => {
|
|
1983
2173
|
const payload = {
|
|
1984
2174
|
name: chartEvent
|
|
1985
2175
|
};
|
|
1986
|
-
const
|
|
1987
|
-
if (
|
|
1988
|
-
|
|
2176
|
+
const updatedPayload = appendTrellisToPayload(payload, trellisKey, trellisSplitBy);
|
|
2177
|
+
if (onClick) {
|
|
2178
|
+
onClick({
|
|
1989
2179
|
type: "legend.click",
|
|
1990
2180
|
originalEvent: chartEvent,
|
|
1991
|
-
payload
|
|
2181
|
+
payload: updatedPayload
|
|
1992
2182
|
});
|
|
1993
2183
|
}
|
|
1994
2184
|
};
|
|
2185
|
+
var handleRangeSelection = (rangeEvent, onSelect, chartData, trellisKey, trellisSplitBy) => {
|
|
2186
|
+
var _a;
|
|
2187
|
+
if (!rangeEvent) {
|
|
2188
|
+
return;
|
|
2189
|
+
}
|
|
2190
|
+
const xData = ((_a = chartData == null ? void 0 : chartData.columns) == null ? void 0 : _a[0]) || [];
|
|
2191
|
+
const { startXIndex, endXIndex } = findRangeIndices(xData, rangeEvent.start, rangeEvent.end);
|
|
2192
|
+
const payload = {
|
|
2193
|
+
startXIndex,
|
|
2194
|
+
startXValue: rangeEvent.start,
|
|
2195
|
+
endXIndex,
|
|
2196
|
+
endXValue: rangeEvent.end
|
|
2197
|
+
};
|
|
2198
|
+
const updatedPayload = appendTrellisToPayload(payload, trellisKey, trellisSplitBy);
|
|
2199
|
+
if (onSelect) {
|
|
2200
|
+
onSelect({
|
|
2201
|
+
type: "range.selectBeforeZoom",
|
|
2202
|
+
originalEvent: rangeEvent,
|
|
2203
|
+
payload: updatedPayload
|
|
2204
|
+
});
|
|
2205
|
+
}
|
|
2206
|
+
};
|
|
2207
|
+
var handleRangeZoom = (rangeEvent, onSelect, chartData, trellisKey, trellisSplitBy) => {
|
|
2208
|
+
var _a;
|
|
2209
|
+
const xData = ((_a = chartData == null ? void 0 : chartData.columns) == null ? void 0 : _a[0]) || [];
|
|
2210
|
+
const { startXIndex, endXIndex } = findRangeIndices(xData, rangeEvent.start, rangeEvent.end);
|
|
2211
|
+
const payload = {
|
|
2212
|
+
startXIndex,
|
|
2213
|
+
startXValue: rangeEvent.start,
|
|
2214
|
+
endXIndex,
|
|
2215
|
+
endXValue: rangeEvent.end
|
|
2216
|
+
};
|
|
2217
|
+
const updatedPayload = appendTrellisToPayload(payload, trellisKey, trellisSplitBy);
|
|
2218
|
+
if (onSelect) {
|
|
2219
|
+
onSelect({
|
|
2220
|
+
type: "range.select",
|
|
2221
|
+
originalEvent: rangeEvent,
|
|
2222
|
+
payload: updatedPayload
|
|
2223
|
+
});
|
|
2224
|
+
}
|
|
2225
|
+
};
|
|
2226
|
+
var parseArrayOption = (value) => {
|
|
2227
|
+
if (Array.isArray(value)) {
|
|
2228
|
+
return value;
|
|
2229
|
+
}
|
|
2230
|
+
if (value) {
|
|
2231
|
+
return JSON.parse(value);
|
|
2232
|
+
}
|
|
2233
|
+
return void 0;
|
|
2234
|
+
};
|
|
1995
2235
|
var TimeSeriesChartWrapper = (props) => {
|
|
1996
|
-
|
|
1997
|
-
const {
|
|
2236
|
+
var _b, _c, _d;
|
|
2237
|
+
const _a = props, {
|
|
2238
|
+
width,
|
|
2239
|
+
height,
|
|
2240
|
+
chartData,
|
|
2241
|
+
options,
|
|
2242
|
+
userLocale,
|
|
2243
|
+
annotationX,
|
|
2244
|
+
annotationLabel,
|
|
2245
|
+
annotationColor,
|
|
2246
|
+
legendDisplay,
|
|
2247
|
+
markerDisplay,
|
|
2248
|
+
onClick,
|
|
2249
|
+
onPointMouseOver,
|
|
2250
|
+
onPointMouseOut,
|
|
2251
|
+
onSelect,
|
|
2252
|
+
splitByLayout,
|
|
2253
|
+
trellisKey,
|
|
2254
|
+
trellisSplitBy,
|
|
1998
2255
|
backgroundColor,
|
|
2256
|
+
defaultFontColor,
|
|
2257
|
+
additionalTooltipValues,
|
|
2258
|
+
showYAxisWithZero: showYAxisWithZeroFromProps,
|
|
2259
|
+
showY2AxisWithZero: showY2AxisWithZeroFromProps
|
|
2260
|
+
} = _a, otherOptions = __objRest(_a, [
|
|
2261
|
+
"width",
|
|
2262
|
+
"height",
|
|
2263
|
+
"chartData",
|
|
2264
|
+
"options",
|
|
2265
|
+
"userLocale",
|
|
2266
|
+
"annotationX",
|
|
2267
|
+
"annotationLabel",
|
|
2268
|
+
"annotationColor",
|
|
2269
|
+
"legendDisplay",
|
|
2270
|
+
"markerDisplay",
|
|
2271
|
+
"onClick",
|
|
2272
|
+
"onPointMouseOver",
|
|
2273
|
+
"onPointMouseOut",
|
|
2274
|
+
"onSelect",
|
|
2275
|
+
"splitByLayout",
|
|
2276
|
+
"trellisKey",
|
|
2277
|
+
"trellisSplitBy",
|
|
2278
|
+
"backgroundColor",
|
|
2279
|
+
"defaultFontColor",
|
|
2280
|
+
"additionalTooltipValues",
|
|
2281
|
+
// Extract showYAxisWithZero directly from props for accelerated render mode
|
|
2282
|
+
"showYAxisWithZero",
|
|
2283
|
+
"showY2AxisWithZero"
|
|
2284
|
+
]);
|
|
2285
|
+
const { eventHandlers, xField: xFieldFromProps } = otherOptions;
|
|
2286
|
+
const trellisEnabled = useTrellisEnabled(splitByLayout);
|
|
2287
|
+
const {
|
|
2288
|
+
backgroundColor: bgColorFromOptions,
|
|
1999
2289
|
seriesColors: seriesColorsStr,
|
|
2000
2290
|
fieldColors,
|
|
2291
|
+
legendLabels: legendLabelsStr,
|
|
2292
|
+
legendMode,
|
|
2001
2293
|
"axisTitleX.text": xAxisTitleText,
|
|
2002
2294
|
"axisTitleY.text": yAxisTitleText,
|
|
2003
2295
|
"axisTitleY2.text": y2AxisTitleText,
|
|
2004
2296
|
"axisTitleX.visibility": xAxisTitleVisibility,
|
|
2005
2297
|
"axisTitleY.visibility": yAxisTitleVisibility,
|
|
2006
2298
|
"axisTitleY2.visibility": y2AxisTitleVisibility,
|
|
2299
|
+
"axisLabelsX.majorLabelVisibility": xAxisLabelVisibility,
|
|
2300
|
+
"axisLabelsX.majorLabelStyle.rotation": xAxisLabelRotation,
|
|
2301
|
+
"axisLabelsY.majorLabelVisibility": yAxisLabelVisibility,
|
|
2302
|
+
"axisLabelsY.majorUnit": yAxisMajorUnitFromSimpleXML,
|
|
2303
|
+
"axisLabelsY2.majorLabelVisibility": y2AxisLabelVisibility,
|
|
2304
|
+
"axisLabelsY2.majorUnit": y2AxisMajorUnitFromSimpleXML,
|
|
2007
2305
|
"axisY.abbreviation": yAxisAbbreviation,
|
|
2008
2306
|
"axisY.scale": yAxisScale,
|
|
2009
2307
|
"axisY2.abbreviation": y2AxisAbbreviation,
|
|
@@ -2013,10 +2311,63 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2013
2311
|
"axisLabelsY2.integerUnits": y2IntegerUnits,
|
|
2014
2312
|
"chart.overlayFields": overlayFieldsStr,
|
|
2015
2313
|
"chart.nullValueMode": nullValueMode,
|
|
2016
|
-
|
|
2314
|
+
"chart.showDataLabels": showDataLabels,
|
|
2315
|
+
lineWidth,
|
|
2316
|
+
lineDashStyle,
|
|
2317
|
+
fieldDashStyles: lineDashStylesByFieldStr,
|
|
2318
|
+
yAxisMin: yAxisMinRaw,
|
|
2319
|
+
yAxisMax: yAxisMaxRaw,
|
|
2320
|
+
y2AxisMin: y2AxisMinRaw,
|
|
2321
|
+
y2AxisMax: y2AxisMaxRaw,
|
|
2322
|
+
showXMajorGridLines,
|
|
2323
|
+
showYMajorGridLines,
|
|
2324
|
+
showY2MajorGridLines,
|
|
2325
|
+
showYMinorGridLines,
|
|
2326
|
+
showY2MinorGridLines,
|
|
2327
|
+
showLineSmoothing,
|
|
2328
|
+
yAxisMajorTickVisibility,
|
|
2329
|
+
y2AxisMajorTickVisibility,
|
|
2330
|
+
yAxisMajorTickSize,
|
|
2331
|
+
y2AxisMajorTickSize,
|
|
2332
|
+
yAxisMajorTickInterval,
|
|
2333
|
+
y2AxisMajorTickInterval,
|
|
2334
|
+
yAxisMinorTickVisibility,
|
|
2335
|
+
y2AxisMinorTickVisibility,
|
|
2336
|
+
yAxisMinorTickSize,
|
|
2337
|
+
y2AxisMinorTickSize,
|
|
2338
|
+
showYAxisWithZero: showYAxisWithZeroFromOptions,
|
|
2339
|
+
showY2AxisWithZero: showY2AxisWithZeroFromOptions
|
|
2017
2340
|
} = options;
|
|
2341
|
+
const dataValuesDisplay = showDataLabels === "none" ? "off" : showDataLabels;
|
|
2342
|
+
const showYAxisWithZero = showYAxisWithZeroFromProps != null ? showYAxisWithZeroFromProps : showYAxisWithZeroFromOptions;
|
|
2343
|
+
const showY2AxisWithZero = showY2AxisWithZeroFromProps != null ? showY2AxisWithZeroFromProps : showY2AxisWithZeroFromOptions;
|
|
2344
|
+
const showYMajorTicks = yAxisMajorTickVisibility === "show";
|
|
2345
|
+
const showY2MajorTicks = y2AxisMajorTickVisibility === "show";
|
|
2346
|
+
const showYMinorTicks = yAxisMinorTickVisibility === "show";
|
|
2347
|
+
const showY2MinorTicks = y2AxisMinorTickVisibility === "show";
|
|
2348
|
+
const yAxisMin = parseAxisValue(yAxisMinRaw);
|
|
2349
|
+
const yAxisMax = parseAxisValue(yAxisMaxRaw);
|
|
2350
|
+
const y2AxisMin = parseAxisValue(y2AxisMinRaw);
|
|
2351
|
+
const y2AxisMax = parseAxisValue(y2AxisMaxRaw);
|
|
2352
|
+
const parseTickInterval = (simpleXMLValue, canvasValue) => {
|
|
2353
|
+
if (simpleXMLValue) return Number(simpleXMLValue);
|
|
2354
|
+
if (canvasValue) return Number(canvasValue);
|
|
2355
|
+
return void 0;
|
|
2356
|
+
};
|
|
2357
|
+
const yAxisMajorTickIntervalNum = parseTickInterval(yAxisMajorUnitFromSimpleXML, yAxisMajorTickInterval);
|
|
2358
|
+
const y2AxisMajorTickIntervalNum = parseTickInterval(
|
|
2359
|
+
y2AxisMajorUnitFromSimpleXML,
|
|
2360
|
+
y2AxisMajorTickInterval
|
|
2361
|
+
);
|
|
2362
|
+
const yAxisMajorTickSizeNum = yAxisMajorTickSize ? Number(yAxisMajorTickSize) : void 0;
|
|
2363
|
+
const y2AxisMajorTickSizeNum = y2AxisMajorTickSize ? Number(y2AxisMajorTickSize) : void 0;
|
|
2364
|
+
const yAxisMinorTickSizeNum = yAxisMinorTickSize ? Number(yAxisMinorTickSize) : void 0;
|
|
2365
|
+
const y2AxisMinorTickSizeNum = y2AxisMinorTickSize ? Number(y2AxisMinorTickSize) : void 0;
|
|
2018
2366
|
const seriesColors = seriesColorsStr ? JSON.parse(seriesColorsStr) : void 0;
|
|
2019
2367
|
const seriesColorsByField = fieldColors ? JSON.parse(fieldColors) : void 0;
|
|
2368
|
+
const lineDashStylesByField = lineDashStylesByFieldStr ? JSON.parse(lineDashStylesByFieldStr) : void 0;
|
|
2369
|
+
const legendLabels = parseArrayOption(legendLabelsStr);
|
|
2370
|
+
const bgColor = backgroundColor || bgColorFromOptions;
|
|
2020
2371
|
const [containerWidth, setContainerWidth] = react_exports.useState(Number(props.width));
|
|
2021
2372
|
const [containerHeight, setContainerHeight] = react_exports.useState(Number(props.height));
|
|
2022
2373
|
const cachedHandleResize = react_exports.useCallback((w, h) => {
|
|
@@ -2027,25 +2378,64 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2027
2378
|
fields: chartData.fields,
|
|
2028
2379
|
columns: chartData.seriesList
|
|
2029
2380
|
});
|
|
2030
|
-
const xField =
|
|
2381
|
+
const xField = getFieldName2(filteredChartData.fields[0]);
|
|
2031
2382
|
const yFields = getFieldNames(
|
|
2032
2383
|
filteredChartData.fields.length > 1 ? filteredChartData.fields.slice(1) : []
|
|
2033
2384
|
);
|
|
2034
|
-
const y2Fields =
|
|
2035
|
-
|
|
2385
|
+
const y2Fields = (0, react_exports.useMemo)(
|
|
2386
|
+
() => y2FieldsStr ? y2FieldsStr.split(",").map((f) => f.trim()) : [],
|
|
2387
|
+
[y2FieldsStr]
|
|
2388
|
+
);
|
|
2389
|
+
const overlayFields = (0, react_exports.useMemo)(
|
|
2390
|
+
() => overlayFieldsStr ? overlayFieldsStr.split(",").map((f) => f.trim()) : [],
|
|
2391
|
+
[overlayFieldsStr]
|
|
2392
|
+
);
|
|
2036
2393
|
let xAxisTitle = getComputedAxisTitles(xAxisTitleText, [xField], xAxisTitleVisibility);
|
|
2037
2394
|
xAxisTitle = ellipsisAxisTitle(xAxisTitle, containerWidth);
|
|
2038
|
-
|
|
2395
|
+
const yFieldsForTitle = y2Enabled ? yFields.filter((field) => !y2Fields.includes(field)) : yFields;
|
|
2396
|
+
let yAxisTitle = getComputedAxisTitles(yAxisTitleText, yFieldsForTitle, yAxisTitleVisibility);
|
|
2039
2397
|
yAxisTitle = ellipsisAxisTitle(yAxisTitle, containerHeight);
|
|
2040
2398
|
const fieldsForY2Axis = y2Fields.length > 0 ? y2Fields : overlayFields;
|
|
2041
2399
|
let y2AxisTitle = getComputedAxisTitles(y2AxisTitleText, fieldsForY2Axis, y2AxisTitleVisibility);
|
|
2042
2400
|
y2AxisTitle = ellipsisAxisTitle(y2AxisTitle, containerHeight);
|
|
2043
|
-
const xScaleConfig =
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2401
|
+
const xScaleConfig = (0, react_exports.useMemo)(
|
|
2402
|
+
() => getXScaleConfig(xAxisTitle, xAxisLabelVisibility, xAxisLabelRotation),
|
|
2403
|
+
[xAxisTitle, xAxisLabelVisibility, xAxisLabelRotation]
|
|
2404
|
+
);
|
|
2405
|
+
const yScaleConfig = (0, react_exports.useMemo)(
|
|
2406
|
+
() => getYScaleConfig(
|
|
2407
|
+
yAxisTitle,
|
|
2408
|
+
yAxisAbbreviation,
|
|
2409
|
+
yAxisScale,
|
|
2410
|
+
yAxisLabelVisibility,
|
|
2411
|
+
yAxisMin,
|
|
2412
|
+
yAxisMax
|
|
2413
|
+
),
|
|
2414
|
+
[yAxisTitle, yAxisAbbreviation, yAxisScale, yAxisLabelVisibility, yAxisMin, yAxisMax]
|
|
2415
|
+
);
|
|
2416
|
+
const y2ScaleConfig = (0, react_exports.useMemo)(() => {
|
|
2417
|
+
if (y2Enabled) {
|
|
2418
|
+
return getY2ScaleConfig(
|
|
2419
|
+
y2AxisTitle,
|
|
2420
|
+
y2AxisAbbreviation,
|
|
2421
|
+
y2AxisScale,
|
|
2422
|
+
y2IntegerUnits,
|
|
2423
|
+
y2AxisLabelVisibility,
|
|
2424
|
+
y2AxisMin,
|
|
2425
|
+
y2AxisMax
|
|
2426
|
+
);
|
|
2427
|
+
}
|
|
2428
|
+
return {};
|
|
2429
|
+
}, [
|
|
2430
|
+
y2Enabled,
|
|
2431
|
+
y2AxisTitle,
|
|
2432
|
+
y2AxisAbbreviation,
|
|
2433
|
+
y2AxisScale,
|
|
2434
|
+
y2IntegerUnits,
|
|
2435
|
+
y2AxisLabelVisibility,
|
|
2436
|
+
y2AxisMin,
|
|
2437
|
+
y2AxisMax
|
|
2438
|
+
]);
|
|
2049
2439
|
const uplotContainerElement = (0, react_exports.useRef)(null);
|
|
2050
2440
|
const seriesDataFormatted = [
|
|
2051
2441
|
filteredChartData.columns[0],
|
|
@@ -2053,24 +2443,140 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2053
2443
|
];
|
|
2054
2444
|
chartData.fields = filteredChartData.fields;
|
|
2055
2445
|
chartData.columns = seriesDataFormatted;
|
|
2056
|
-
const seriesOverrides =
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2446
|
+
const seriesOverrides = (0, react_exports.useMemo)(
|
|
2447
|
+
() => getSeriesOverrides(
|
|
2448
|
+
yFields,
|
|
2449
|
+
y2Fields,
|
|
2450
|
+
lineWidth,
|
|
2451
|
+
overlayFields,
|
|
2452
|
+
y2Enabled,
|
|
2453
|
+
nullValueMode,
|
|
2454
|
+
markerDisplay,
|
|
2455
|
+
lineDashStyle,
|
|
2456
|
+
lineDashStylesByField
|
|
2457
|
+
),
|
|
2458
|
+
[
|
|
2459
|
+
yFields,
|
|
2460
|
+
y2Fields,
|
|
2461
|
+
lineWidth,
|
|
2462
|
+
overlayFields,
|
|
2463
|
+
y2Enabled,
|
|
2464
|
+
nullValueMode,
|
|
2465
|
+
markerDisplay,
|
|
2466
|
+
lineDashStyle,
|
|
2467
|
+
lineDashStylesByField
|
|
2468
|
+
]
|
|
2063
2469
|
);
|
|
2064
|
-
const chartingEventAnnotations =
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2470
|
+
const chartingEventAnnotations = (0, react_exports.useMemo)(
|
|
2471
|
+
() => getAnnotationsForCanvas({
|
|
2472
|
+
annotationX,
|
|
2473
|
+
annotationColor,
|
|
2474
|
+
annotationLabel
|
|
2475
|
+
}),
|
|
2476
|
+
[annotationX, annotationColor, annotationLabel]
|
|
2477
|
+
);
|
|
2478
|
+
const scaleConfig = (0, react_exports.useMemo)(
|
|
2479
|
+
() => __spreadValues(__spreadValues(__spreadValues({}, xScaleConfig), yScaleConfig), y2ScaleConfig),
|
|
2480
|
+
[xScaleConfig, yScaleConfig, y2ScaleConfig]
|
|
2481
|
+
);
|
|
2482
|
+
const legend = (0, react_exports.useMemo)(
|
|
2483
|
+
() => getLegend({ legendDisplay, isSeriesCompare: legendMode === "seriesCompare" }),
|
|
2484
|
+
[legendDisplay, legendMode]
|
|
2485
|
+
);
|
|
2486
|
+
const handleChartClick = react_exports.useCallback(
|
|
2487
|
+
(event) => {
|
|
2488
|
+
if (onClick) {
|
|
2489
|
+
handleClick(event, onClick, trellisKey, trellisSplitBy);
|
|
2490
|
+
}
|
|
2491
|
+
},
|
|
2492
|
+
[onClick, trellisKey, trellisSplitBy]
|
|
2493
|
+
);
|
|
2494
|
+
const handleChartLegendClick = react_exports.useCallback(
|
|
2495
|
+
(event) => {
|
|
2496
|
+
if (onClick) {
|
|
2497
|
+
handleLegendClick(event, onClick, trellisKey, trellisSplitBy);
|
|
2498
|
+
}
|
|
2499
|
+
},
|
|
2500
|
+
[onClick, trellisKey, trellisSplitBy]
|
|
2501
|
+
);
|
|
2502
|
+
const handleChartRangeSelection = react_exports.useCallback(
|
|
2503
|
+
(range2) => {
|
|
2504
|
+
if (onSelect) {
|
|
2505
|
+
handleRangeSelection(range2, onSelect, chartData, trellisKey, trellisSplitBy);
|
|
2506
|
+
}
|
|
2507
|
+
},
|
|
2508
|
+
[onSelect, chartData, trellisKey, trellisSplitBy]
|
|
2509
|
+
);
|
|
2510
|
+
const handleChartRangeZoom = react_exports.useCallback(
|
|
2511
|
+
(range2) => {
|
|
2512
|
+
if (onSelect) {
|
|
2513
|
+
handleRangeZoom(range2, onSelect, chartData, trellisKey, trellisSplitBy);
|
|
2514
|
+
}
|
|
2515
|
+
},
|
|
2516
|
+
[onSelect, chartData, trellisKey, trellisSplitBy]
|
|
2517
|
+
);
|
|
2518
|
+
const xFieldToUse = xFieldFromProps || xField;
|
|
2519
|
+
const enableSearchZoom = react_exports.useMemo(
|
|
2520
|
+
() => shouldEnableSearchZoom(eventHandlers, xFieldToUse),
|
|
2521
|
+
[eventHandlers, xFieldToUse]
|
|
2522
|
+
);
|
|
2523
|
+
const lastPayloadRef = react_exports.useRef(null);
|
|
2524
|
+
const lastOriginalEventRef = react_exports.useRef(null);
|
|
2525
|
+
const previousMouseoverPayloadRef = react_exports.useRef(null);
|
|
2526
|
+
const additionalTooltipValuesRef = react_exports.useRef(additionalTooltipValues);
|
|
2527
|
+
react_exports.useEffect(() => {
|
|
2528
|
+
additionalTooltipValuesRef.current = additionalTooltipValues;
|
|
2529
|
+
}, [additionalTooltipValues]);
|
|
2530
|
+
const handleChartCrosshairChange = react_exports.useCallback(
|
|
2531
|
+
(event) => {
|
|
2532
|
+
if (onPointMouseOver || onPointMouseOut) {
|
|
2533
|
+
if (!event) {
|
|
2534
|
+
if (onPointMouseOut && lastPayloadRef.current) {
|
|
2535
|
+
onPointMouseOut({
|
|
2536
|
+
type: "point.mouseout",
|
|
2537
|
+
originalEvent: lastOriginalEventRef.current,
|
|
2538
|
+
payload: lastPayloadRef.current
|
|
2539
|
+
});
|
|
2540
|
+
}
|
|
2541
|
+
previousMouseoverPayloadRef.current = null;
|
|
2542
|
+
return;
|
|
2543
|
+
}
|
|
2544
|
+
const payload = __spreadProps(__spreadValues({}, (0, lodash_exports.pick)(event, "value", "seriesKey", "time", "index", "seriesIndex")), {
|
|
2545
|
+
name: event.seriesKey
|
|
2546
|
+
});
|
|
2547
|
+
delete payload.seriesKey;
|
|
2548
|
+
if (event.rowContext) {
|
|
2549
|
+
Object.assign(
|
|
2550
|
+
payload,
|
|
2551
|
+
Object.keys(event.rowContext).reduce((acc, fieldName) => {
|
|
2552
|
+
acc[`row.${fieldName}.value`] = event.rowContext[fieldName];
|
|
2553
|
+
return acc;
|
|
2554
|
+
}, {})
|
|
2555
|
+
);
|
|
2556
|
+
}
|
|
2557
|
+
const updatedPayload = appendTrellisToPayload(payload, trellisKey, trellisSplitBy);
|
|
2558
|
+
if (!hasMouseoverPayloadChanged(updatedPayload, previousMouseoverPayloadRef.current)) {
|
|
2559
|
+
return;
|
|
2560
|
+
}
|
|
2561
|
+
lastPayloadRef.current = updatedPayload;
|
|
2562
|
+
lastOriginalEventRef.current = event;
|
|
2563
|
+
previousMouseoverPayloadRef.current = __spreadValues({}, updatedPayload);
|
|
2564
|
+
if (onPointMouseOver) {
|
|
2565
|
+
onPointMouseOver({
|
|
2566
|
+
type: "point.mouseover",
|
|
2567
|
+
originalEvent: event,
|
|
2568
|
+
payload: updatedPayload
|
|
2569
|
+
});
|
|
2570
|
+
}
|
|
2571
|
+
}
|
|
2572
|
+
},
|
|
2573
|
+
[onPointMouseOver, onPointMouseOut, trellisKey, trellisSplitBy]
|
|
2574
|
+
);
|
|
2575
|
+
const dataKey = `${(_b = chartData.columns[0]) == null ? void 0 : _b[0]}-${(_c = chartData.columns[0]) == null ? void 0 : _c[chartData.columns[0].length - 1]}-${(_d = chartData.columns[0]) == null ? void 0 : _d.length}`;
|
|
2576
|
+
const memoizedChart = (0, react_exports.useMemo)(() => {
|
|
2577
|
+
const computedOnRangeZoom = onSelect ? handleChartRangeZoom : void 0;
|
|
2578
|
+
return /* @__PURE__ */ react_exports.createElement(visualization_canvas_exports.RangeSelectionProvider, { key: dataKey }, /* @__PURE__ */ react_exports.createElement(
|
|
2579
|
+
visualization_canvas_exports.TimeSeriesChart,
|
|
2074
2580
|
{
|
|
2075
2581
|
data: chartData,
|
|
2076
2582
|
width: containerWidth,
|
|
@@ -2078,49 +2584,113 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2078
2584
|
seriesColors,
|
|
2079
2585
|
seriesColorsByField,
|
|
2080
2586
|
seriesConfig: seriesOverrides,
|
|
2081
|
-
legend
|
|
2587
|
+
legend,
|
|
2588
|
+
legendLabels,
|
|
2589
|
+
isSeriesCompare: legendMode === "seriesCompare",
|
|
2590
|
+
maxSeriesFocus: legendMode === "seriesCompare" ? 0 : void 0,
|
|
2082
2591
|
scaleConfig,
|
|
2083
2592
|
timestampFormat: "expanded",
|
|
2084
|
-
onCrosshairClick:
|
|
2085
|
-
|
|
2593
|
+
onCrosshairClick: onClick ? handleChartClick : void 0,
|
|
2594
|
+
onCrosshairChange: onPointMouseOver || onPointMouseOut ? handleChartCrosshairChange : void 0,
|
|
2595
|
+
onSeriesClick: onClick ? handleChartLegendClick : void 0,
|
|
2596
|
+
onRangeSelection: handleChartRangeSelection,
|
|
2597
|
+
onRangeZoom: computedOnRangeZoom,
|
|
2598
|
+
serverSideZoom: enableSearchZoom,
|
|
2086
2599
|
userLocale,
|
|
2087
2600
|
events: chartingEventAnnotations,
|
|
2088
|
-
eventsConfig: { renderer: triangleEventAnnotationRenderer }
|
|
2601
|
+
eventsConfig: { renderer: triangleEventAnnotationRenderer },
|
|
2602
|
+
additionalTooltipValuesRef,
|
|
2603
|
+
showXMajorGridLines,
|
|
2604
|
+
showYMajorGridLines,
|
|
2605
|
+
showY2MajorGridLines,
|
|
2606
|
+
showYMinorGridLines,
|
|
2607
|
+
showY2MinorGridLines,
|
|
2608
|
+
showLineSmoothing,
|
|
2609
|
+
dataValuesDisplay,
|
|
2610
|
+
showYMajorTicks,
|
|
2611
|
+
showY2MajorTicks,
|
|
2612
|
+
yAxisMajorTickSize: yAxisMajorTickSizeNum,
|
|
2613
|
+
y2AxisMajorTickSize: y2AxisMajorTickSizeNum,
|
|
2614
|
+
yAxisMajorTickInterval: yAxisMajorTickIntervalNum,
|
|
2615
|
+
y2AxisMajorTickInterval: y2AxisMajorTickIntervalNum,
|
|
2616
|
+
showYMinorTicks,
|
|
2617
|
+
showY2MinorTicks,
|
|
2618
|
+
yAxisMinorTickSize: yAxisMinorTickSizeNum,
|
|
2619
|
+
y2AxisMinorTickSize: y2AxisMinorTickSizeNum,
|
|
2620
|
+
showYAxisWithZero,
|
|
2621
|
+
showY2AxisWithZero
|
|
2089
2622
|
}
|
|
2090
|
-
)
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2623
|
+
));
|
|
2624
|
+
}, [
|
|
2625
|
+
onSelect,
|
|
2626
|
+
handleChartRangeZoom,
|
|
2627
|
+
dataKey,
|
|
2628
|
+
chartData,
|
|
2629
|
+
containerWidth,
|
|
2630
|
+
containerHeight,
|
|
2631
|
+
seriesColors,
|
|
2632
|
+
seriesColorsByField,
|
|
2633
|
+
seriesOverrides,
|
|
2634
|
+
legend,
|
|
2635
|
+
legendLabels,
|
|
2636
|
+
scaleConfig,
|
|
2637
|
+
onClick,
|
|
2638
|
+
handleChartClick,
|
|
2639
|
+
onPointMouseOver,
|
|
2640
|
+
onPointMouseOut,
|
|
2641
|
+
handleChartCrosshairChange,
|
|
2642
|
+
handleChartLegendClick,
|
|
2643
|
+
handleChartRangeSelection,
|
|
2644
|
+
enableSearchZoom,
|
|
2645
|
+
userLocale,
|
|
2646
|
+
chartingEventAnnotations,
|
|
2647
|
+
showXMajorGridLines,
|
|
2648
|
+
showYMajorGridLines,
|
|
2649
|
+
showY2MajorGridLines,
|
|
2650
|
+
showYMinorGridLines,
|
|
2651
|
+
showY2MinorGridLines,
|
|
2652
|
+
showLineSmoothing,
|
|
2653
|
+
dataValuesDisplay,
|
|
2654
|
+
showYMajorTicks,
|
|
2655
|
+
showY2MajorTicks,
|
|
2656
|
+
yAxisMajorTickSizeNum,
|
|
2657
|
+
y2AxisMajorTickSizeNum,
|
|
2658
|
+
yAxisMajorTickIntervalNum,
|
|
2659
|
+
y2AxisMajorTickIntervalNum,
|
|
2660
|
+
showYMinorTicks,
|
|
2661
|
+
showY2MinorTicks,
|
|
2662
|
+
yAxisMinorTickSizeNum,
|
|
2663
|
+
y2AxisMinorTickSizeNum,
|
|
2664
|
+
showYAxisWithZero,
|
|
2665
|
+
showY2AxisWithZero,
|
|
2666
|
+
legendMode
|
|
2667
|
+
]);
|
|
2106
2668
|
const memoizedVisualization = (0, react_exports.useMemo)(() => {
|
|
2107
|
-
return /* @__PURE__ */ react_exports.createElement(VizStyleWrapper_default, { backgroundColor }, memoizedChart);
|
|
2108
|
-
}, [
|
|
2109
|
-
return /* @__PURE__ */ react_exports.createElement(
|
|
2669
|
+
return /* @__PURE__ */ react_exports.createElement(VizStyleWrapper_default, { backgroundColor: bgColor }, memoizedChart);
|
|
2670
|
+
}, [bgColor, memoizedChart]);
|
|
2671
|
+
return /* @__PURE__ */ react_exports.createElement(react_exports.Fragment, null, trellisEnabled && /* @__PURE__ */ react_exports.createElement(
|
|
2672
|
+
TrellisTitle,
|
|
2673
|
+
{
|
|
2674
|
+
trellisKey,
|
|
2675
|
+
backgroundColor: bgColor,
|
|
2676
|
+
fontColor: defaultFontColor
|
|
2677
|
+
}
|
|
2678
|
+
), /* @__PURE__ */ react_exports.createElement(
|
|
2110
2679
|
TimeSeriesChartContainer,
|
|
2111
2680
|
{
|
|
2112
|
-
height,
|
|
2681
|
+
height: trellisEnabled ? Number(height) - TRELLIS_TITLE_HEIGHT : height,
|
|
2113
2682
|
width,
|
|
2114
2683
|
ref: uplotContainerElement,
|
|
2115
2684
|
"data-test": "timeseries-chart-wrapper"
|
|
2116
2685
|
},
|
|
2117
2686
|
/* @__PURE__ */ react_exports.createElement(SizeAwareWrapper_default, { width, height, onResize: cachedHandleResize }),
|
|
2118
2687
|
memoizedVisualization
|
|
2119
|
-
);
|
|
2688
|
+
));
|
|
2120
2689
|
};
|
|
2121
2690
|
var TimeSeriesChartWrapper_default = TimeSeriesChartWrapper;
|
|
2122
2691
|
|
|
2123
2692
|
// src/common/withDashboardViz.tsx
|
|
2693
|
+
var SanitizedTimeSeriesChartWrapper = (0, SanitizeProps_exports.withSanitizedProps)(TimeSeriesChartWrapper_default);
|
|
2124
2694
|
var withDashboardViz = (opts) => {
|
|
2125
2695
|
const {
|
|
2126
2696
|
ReactViz,
|
|
@@ -2129,6 +2699,7 @@ var withDashboardViz = (opts) => {
|
|
|
2129
2699
|
},
|
|
2130
2700
|
computeVizPropsBeforeEval = () => {
|
|
2131
2701
|
},
|
|
2702
|
+
computeDataFrames,
|
|
2132
2703
|
disableEditModeCover,
|
|
2133
2704
|
useIconPlaceholder
|
|
2134
2705
|
} = opts;
|
|
@@ -2257,11 +2828,19 @@ var withDashboardViz = (opts) => {
|
|
|
2257
2828
|
);
|
|
2258
2829
|
setDataFramesInState(dataFrames);
|
|
2259
2830
|
}
|
|
2831
|
+
let mergedFrames = dataFrames;
|
|
2832
|
+
if (computeDataFrames && dataFrames) {
|
|
2833
|
+
const derivedFrames = computeDataFrames({
|
|
2834
|
+
dataSources: downsampledDataSources,
|
|
2835
|
+
options: optionsToEvaluate.options
|
|
2836
|
+
});
|
|
2837
|
+
mergedFrames = __spreadValues(__spreadValues({}, dataFrames), derivedFrames);
|
|
2838
|
+
}
|
|
2260
2839
|
const result = Options_exports.Options.evaluate(
|
|
2261
2840
|
optionsToEvaluate,
|
|
2262
2841
|
downsampledDataSources,
|
|
2263
2842
|
themeFunc,
|
|
2264
|
-
|
|
2843
|
+
mergedFrames,
|
|
2265
2844
|
getFeatureFlag(featureFlagContext, "visualizations_bypassCloneDeepOptionScope")
|
|
2266
2845
|
);
|
|
2267
2846
|
return result;
|
|
@@ -2349,7 +2928,7 @@ var withDashboardViz = (opts) => {
|
|
|
2349
2928
|
});
|
|
2350
2929
|
}
|
|
2351
2930
|
eventCallbackProps[eventCallbackPropName] = (ev) => {
|
|
2352
|
-
if (ev
|
|
2931
|
+
if (ev == null ? void 0 : ev.payload) {
|
|
2353
2932
|
payload = __spreadValues({}, ev.payload);
|
|
2354
2933
|
}
|
|
2355
2934
|
return onEventTrigger({
|
|
@@ -2373,10 +2952,7 @@ var withDashboardViz = (opts) => {
|
|
|
2373
2952
|
if (useAsyncEvaluatedOptions && Object.keys(evaluatedOptionsToUse).length === 0) {
|
|
2374
2953
|
return null;
|
|
2375
2954
|
}
|
|
2376
|
-
|
|
2377
|
-
if (isAcceleratedRenderOn) {
|
|
2378
|
-
SanitizedViz = (0, SanitizeProps_exports.withSanitizedProps)(TimeSeriesChartWrapper_default);
|
|
2379
|
-
}
|
|
2955
|
+
const SanitizedViz = isAcceleratedRenderOn ? SanitizedTimeSeriesChartWrapper : SanitizedReactViz;
|
|
2380
2956
|
return /* @__PURE__ */ react_exports.createElement(
|
|
2381
2957
|
SanitizedViz,
|
|
2382
2958
|
__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadProps(__spreadValues({}, SplunkVisualization_default.defaults), {
|
|
@@ -2399,15 +2975,6 @@ var withDashboardViz = (opts) => {
|
|
|
2399
2975
|
};
|
|
2400
2976
|
var withDashboardViz_default = withDashboardViz;
|
|
2401
2977
|
|
|
2402
|
-
// esm-externals:@splunk/visualization-schemas
|
|
2403
|
-
var visualization_schemas_exports = {};
|
|
2404
|
-
__export(visualization_schemas_exports, {
|
|
2405
|
-
default: () => visualization_schemas_default
|
|
2406
|
-
});
|
|
2407
|
-
var defaultImport33 = __toESM(require("@splunk/visualization-schemas"));
|
|
2408
|
-
__reExport(visualization_schemas_exports, require("@splunk/visualization-schemas"));
|
|
2409
|
-
var visualization_schemas_default = "default" in defaultImport33 ? defaultImport33.default : defaultImport33;
|
|
2410
|
-
|
|
2411
2978
|
// esm-externals:@splunk/themes/pick
|
|
2412
2979
|
var pick_exports = {};
|
|
2413
2980
|
__export(pick_exports, {
|