@splunk/visualizations 28.6.0 → 28.8.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.js +2 -2
- package/Area.js.map +2 -2
- package/Bar.js +2 -2
- package/Bar.js.map +2 -2
- package/Bubble.js +2 -2
- package/Bubble.js.map +2 -2
- package/CHANGELOG.external.md +45 -50
- package/ChoroplethSvg.js +2 -2
- package/ChoroplethSvg.js.map +2 -2
- package/Column.js +2 -2
- package/Column.js.map +2 -2
- package/Ellipse.js +2 -2
- package/Ellipse.js.map +2 -2
- package/Events/PureEvents/FieldSummaryTooltip.d.ts +8 -31
- package/Events/PureEvents/FieldSummaryTooltip.d.ts.map +1 -1
- package/Events/PureEvents/PureEvents.d.ts.map +1 -1
- package/Events/PureEvents/TimeControlsPopover.d.ts +6 -25
- package/Events/PureEvents/TimeControlsPopover.d.ts.map +1 -1
- package/Events.js +27 -101
- package/Events.js.map +2 -2
- package/FillerGauge.js +10 -5
- package/FillerGauge.js.map +2 -2
- package/Image.js +2 -2
- package/Image.js.map +2 -2
- package/Line.js +2 -2
- package/Line.js.map +2 -2
- package/LinkGraph.js +2 -2
- package/LinkGraph.js.map +2 -2
- package/Map/Map.d.ts +1 -0
- package/Map/Map.d.ts.map +1 -1
- package/Map/PureMap/BubbleLayer.d.ts +22 -4
- package/Map/PureMap/BubbleLayer.d.ts.map +1 -1
- package/Map/PureMap/ChoroplethLayer.d.ts +9 -1
- package/Map/PureMap/ChoroplethLayer.d.ts.map +1 -1
- package/Map/PureMap/ClusterLayer.d.ts +3 -1
- package/Map/PureMap/ClusterLayer.d.ts.map +1 -1
- package/Map/PureMap/LocalChoroplethLayer.d.ts +1 -0
- package/Map/PureMap/LocalChoroplethLayer.d.ts.map +1 -1
- package/Map/PureMap/MapContext.d.ts +13 -0
- package/Map/PureMap/MapContext.d.ts.map +1 -0
- package/Map/PureMap/MarkerLayer.d.ts +19 -2
- package/Map/PureMap/MarkerLayer.d.ts.map +1 -1
- package/Map/PureMap/MarkerWrapper.d.ts +3 -2
- package/Map/PureMap/MarkerWrapper.d.ts.map +1 -1
- package/Map/PureMap/PureMap.d.ts +1 -0
- package/Map/PureMap/PureMap.d.ts.map +1 -1
- package/Map/PureMap/PureMapContainer.d.ts.map +1 -1
- package/Map/PureMap/Tooltip.d.ts +6 -1
- package/Map/PureMap/Tooltip.d.ts.map +1 -1
- package/Map/PureMap/keyboardConstants.d.ts +11 -0
- package/Map/PureMap/keyboardConstants.d.ts.map +1 -0
- package/Map/PureMap/useRovingTabindex.d.ts +18 -0
- package/Map/PureMap/useRovingTabindex.d.ts.map +1 -0
- package/Map.js +1317 -478
- package/Map.js.map +4 -4
- package/Markdown/Markdown.d.ts.map +1 -1
- package/Markdown.config.js +1 -1
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +24 -7
- package/Markdown.js.map +2 -2
- package/MarkerGauge.js +10 -5
- package/MarkerGauge.js.map +2 -2
- package/NetworkGraph/NetworkGraph.d.ts +2 -5
- package/NetworkGraph/NetworkGraph.d.ts.map +1 -1
- package/NetworkGraph/PureNetworkGraph/PureNetworkGraph.d.ts.map +1 -1
- package/NetworkGraph/PureNetworkGraph/components/NetworkGraphSvg.d.ts +1 -0
- package/NetworkGraph/PureNetworkGraph/components/NetworkGraphSvg.d.ts.map +1 -1
- package/NetworkGraph/PureNetworkGraph/components/Node.d.ts +1 -0
- package/NetworkGraph/PureNetworkGraph/components/Node.d.ts.map +1 -1
- package/NetworkGraph/PureNetworkGraph/components/Tooltip.d.ts +1 -1
- package/NetworkGraph/PureNetworkGraph/components/Tooltip.d.ts.map +1 -1
- package/NetworkGraph/PureNetworkGraph/components/ZoomControls.d.ts +1 -0
- package/NetworkGraph/PureNetworkGraph/components/ZoomControls.d.ts.map +1 -1
- package/NetworkGraph/PureNetworkGraph/utils/networkGraphUtils.d.ts +23 -0
- package/NetworkGraph/PureNetworkGraph/utils/networkGraphUtils.d.ts.map +1 -1
- package/NetworkGraph.config.js +2 -0
- package/NetworkGraph.config.js.map +2 -2
- package/NetworkGraph.js +353 -40
- package/NetworkGraph.js.map +4 -4
- package/ParallelCoordinates.js +2 -2
- package/ParallelCoordinates.js.map +2 -2
- package/Pie.js +2 -2
- package/Pie.js.map +2 -2
- package/ProcessTree/ProcessTree.d.ts +3 -1
- package/ProcessTree/ProcessTree.d.ts.map +1 -1
- package/ProcessTree/PureProcessTree/PureProcessTree.d.ts +1 -0
- package/ProcessTree/PureProcessTree/PureProcessTree.d.ts.map +1 -1
- package/ProcessTree/PureProcessTree/components/ProcessTreeLeftPanel.d.ts +2 -0
- package/ProcessTree/PureProcessTree/components/ProcessTreeLeftPanel.d.ts.map +1 -1
- package/ProcessTree/PureProcessTree/components/ProcessTreeRightPanel.d.ts.map +1 -1
- package/ProcessTree/PureProcessTree/hooks/useProcessTreeGraphData.d.ts +3 -1
- package/ProcessTree/PureProcessTree/hooks/useProcessTreeGraphData.d.ts.map +1 -1
- package/ProcessTree/PureProcessTree/mockdata/data.d.ts.map +1 -1
- package/ProcessTree/PureProcessTree/utils/processTreeUtils.d.ts +3 -1
- package/ProcessTree/PureProcessTree/utils/processTreeUtils.d.ts.map +1 -1
- package/ProcessTree.js +101 -31
- package/ProcessTree.js.map +3 -3
- package/Punchcard.js +2 -2
- package/Punchcard.js.map +2 -2
- package/README.md +2 -0
- package/Rectangle.js +2 -2
- package/Rectangle.js.map +2 -2
- package/RichText/PureRichText/Editor/EditorPanel.d.ts.map +1 -1
- package/RichText/PureRichText/InnerEditor.d.ts +10 -0
- package/RichText/PureRichText/InnerEditor.d.ts.map +1 -1
- package/RichText/PureRichText/PureRichText.d.ts +17 -0
- package/RichText/PureRichText/PureRichText.d.ts.map +1 -1
- package/RichText/PureRichText/PureRichTextContext.d.ts.map +1 -1
- package/RichText/PureRichText/hooks/useContentSave.d.ts +6 -0
- package/RichText/PureRichText/hooks/useContentSave.d.ts.map +1 -1
- package/RichText/PureRichText/hooks/useContentSync.d.ts +13 -1
- package/RichText/PureRichText/hooks/useContentSync.d.ts.map +1 -1
- package/RichText/PureRichText/hooks/useDashboardKeyboardNav.d.ts.map +1 -1
- package/RichText/PureRichText/hooks/useEditorSetup.d.ts.map +1 -1
- package/RichText/PureRichText/hooks/useFakeHighlight.d.ts +1 -16
- package/RichText/PureRichText/hooks/useFakeHighlight.d.ts.map +1 -1
- package/RichText/PureRichText/hooks/useTokenMap.d.ts +37 -35
- package/RichText/PureRichText/hooks/useTokenMap.d.ts.map +1 -1
- package/RichText/PureRichText/renderers/LeafRenderer.d.ts +0 -4
- package/RichText/PureRichText/renderers/LeafRenderer.d.ts.map +1 -1
- package/RichText/PureRichText/types.d.ts +15 -0
- package/RichText/PureRichText/types.d.ts.map +1 -1
- package/RichText/PureRichText/utils/slateUtils.d.ts.map +1 -1
- package/RichText/RichText.d.ts +2 -0
- package/RichText/RichText.d.ts.map +1 -1
- package/RichText/config.d.ts.map +1 -1
- package/RichText.config.js +14 -1
- package/RichText.config.js.map +2 -2
- package/RichText.js +733 -263
- package/RichText.js.map +4 -4
- package/Sankey.js +2 -2
- package/Sankey.js.map +2 -2
- package/Scatter.js +2 -2
- package/Scatter.js.map +2 -2
- package/SingleValue.js +368 -471
- package/SingleValue.js.map +4 -4
- package/SingleValueIcon.js +2 -2
- package/SingleValueIcon.js.map +2 -2
- package/SingleValueRadial.js +2 -2
- package/SingleValueRadial.js.map +2 -2
- package/SparkLine/SparkLine.d.ts +57 -0
- package/SparkLine/SparkLine.d.ts.map +1 -0
- package/SparkLine/index.d.ts +1 -1
- package/SparkLine/index.d.ts.map +1 -1
- package/SparkLine.js +384 -485
- package/SparkLine.js.map +4 -4
- package/Table/PureTable.d.ts +2 -0
- package/Table/PureTable.d.ts.map +1 -1
- package/Table/config.d.ts.map +1 -1
- package/Table/hooks.d.ts +1 -1
- package/Table/hooks.d.ts.map +1 -1
- package/Table.config.js +7 -0
- package/Table.config.js.map +2 -2
- package/Table.js +480 -500
- package/Table.js.map +4 -4
- package/Timeline/PureTimeline/PureTimeline.d.ts +6 -5
- package/Timeline/PureTimeline/PureTimeline.d.ts.map +1 -1
- package/Timeline/PureTimeline/src/CursorPlugin.d.ts +1 -0
- package/Timeline/PureTimeline/src/CursorPlugin.d.ts.map +1 -1
- package/Timeline/PureTimeline/src/TimelineLegend.d.ts +10 -7
- package/Timeline/PureTimeline/src/TimelineLegend.d.ts.map +1 -1
- package/Timeline/PureTimeline/src/TimelineTooltip.d.ts +5 -1
- package/Timeline/PureTimeline/src/TimelineTooltip.d.ts.map +1 -1
- package/Timeline/PureTimeline/src/TimelineUplot.d.ts +19 -2
- package/Timeline/PureTimeline/src/TimelineUplot.d.ts.map +1 -1
- package/Timeline/PureTimeline/src/TimelineYAxis.d.ts.map +1 -1
- package/Timeline/PureTimeline/src/XAxisPlugin.d.ts +1 -0
- package/Timeline/PureTimeline/src/XAxisPlugin.d.ts.map +1 -1
- package/Timeline/PureTimeline/src/utils/timelineUtils.d.ts +8 -0
- package/Timeline/PureTimeline/src/utils/timelineUtils.d.ts.map +1 -1
- package/Timeline.js +449 -211
- package/Timeline.js.map +4 -4
- package/Treemap/PureTreemap/components/PureTreemap.d.ts +42 -0
- package/Treemap/PureTreemap/components/PureTreemap.d.ts.map +1 -0
- package/Treemap/PureTreemap/components/TreemapBreadcrumb.d.ts +10 -0
- package/Treemap/PureTreemap/components/TreemapBreadcrumb.d.ts.map +1 -0
- package/Treemap/PureTreemap/components/TreemapChildCell.d.ts +28 -0
- package/Treemap/PureTreemap/components/TreemapChildCell.d.ts.map +1 -0
- package/Treemap/PureTreemap/components/TreemapHeader.d.ts +19 -0
- package/Treemap/PureTreemap/components/TreemapHeader.d.ts.map +1 -0
- package/Treemap/PureTreemap/components/TreemapHoverTarget.d.ts +17 -0
- package/Treemap/PureTreemap/components/TreemapHoverTarget.d.ts.map +1 -0
- package/Treemap/PureTreemap/components/TreemapLegend.d.ts +20 -0
- package/Treemap/PureTreemap/components/TreemapLegend.d.ts.map +1 -0
- package/Treemap/PureTreemap/components/TreemapNode.d.ts +5 -0
- package/Treemap/PureTreemap/components/TreemapNode.d.ts.map +1 -0
- package/Treemap/PureTreemap/components/TreemapParentNode.d.ts +10 -0
- package/Treemap/PureTreemap/components/TreemapParentNode.d.ts.map +1 -0
- package/Treemap/PureTreemap/components/TreemapStandaloneNode.d.ts +6 -0
- package/Treemap/PureTreemap/components/TreemapStandaloneNode.d.ts.map +1 -0
- package/Treemap/PureTreemap/components/TreemapTooltip.d.ts +17 -0
- package/Treemap/PureTreemap/components/TreemapTooltip.d.ts.map +1 -0
- package/Treemap/PureTreemap/mockdata/data.d.ts +90 -0
- package/Treemap/PureTreemap/mockdata/data.d.ts.map +1 -0
- package/Treemap/PureTreemap/utils/treemapColorUtils.d.ts +67 -0
- package/Treemap/PureTreemap/utils/treemapColorUtils.d.ts.map +1 -0
- package/Treemap/PureTreemap/utils/treemapDataColorUtils.d.ts +5 -0
- package/Treemap/PureTreemap/utils/treemapDataColorUtils.d.ts.map +1 -0
- package/Treemap/PureTreemap/utils/treemapDataUtils.d.ts +14 -0
- package/Treemap/PureTreemap/utils/treemapDataUtils.d.ts.map +1 -0
- package/Treemap/PureTreemap/utils/treemapLayout.d.ts +49 -0
- package/Treemap/PureTreemap/utils/treemapLayout.d.ts.map +1 -0
- package/Treemap/PureTreemap/utils/treemapNodeUtils.d.ts +81 -0
- package/Treemap/PureTreemap/utils/treemapNodeUtils.d.ts.map +1 -0
- package/Treemap/PureTreemap/utils/treemapTypes.d.ts +37 -0
- package/Treemap/PureTreemap/utils/treemapTypes.d.ts.map +1 -0
- package/Treemap/PureTreemap/utils/treemapUtils.d.ts +76 -0
- package/Treemap/PureTreemap/utils/treemapUtils.d.ts.map +1 -0
- package/Treemap/Treemap.d.ts +12 -0
- package/Treemap/Treemap.d.ts.map +1 -0
- package/Treemap/config.d.ts +4 -0
- package/Treemap/config.d.ts.map +1 -0
- package/Treemap/index.d.ts +3 -0
- package/Treemap/index.d.ts.map +1 -0
- package/Treemap.config.js +465 -0
- package/Treemap.config.js.map +7 -0
- package/Treemap.js +6233 -0
- package/Treemap.js.map +7 -0
- package/common/DocExampleWithVizSandbox.js.map +2 -2
- package/common/GaugeMajorTicks.js.map +2 -2
- package/common/GaugeValueMarker.js +1 -0
- package/common/GaugeValueMarker.js.map +2 -2
- package/common/OptionsDoc.js.map +1 -1
- package/common/OverviewDoc.js.map +2 -2
- package/common/docUtils.d.ts.map +1 -1
- package/common/docUtils.js +1 -8
- package/common/docUtils.js.map +2 -2
- package/common/gaugeUtils.d.ts.map +1 -1
- package/common/gaugeUtils.js +7 -3
- package/common/gaugeUtils.js.map +2 -2
- package/common/hocs/FixedSizeContainer.d.ts.map +1 -1
- package/common/hooks/useDynamicHeight.d.ts +67 -0
- package/common/hooks/useDynamicHeight.d.ts.map +1 -0
- package/common/interfaces/VizCategory.d.ts +2 -1
- package/common/interfaces/VizCategory.d.ts.map +1 -1
- package/common/utils/mapUtils.js +512 -179
- package/common/utils/mapUtils.js.map +4 -4
- package/common/utils/shadowDomUtils.d.ts +2 -0
- package/common/utils/shadowDomUtils.d.ts.map +1 -0
- package/common/utils/shadowDomUtils.js +39 -0
- package/common/utils/shadowDomUtils.js.map +7 -0
- package/common/withDashboardViz.js +2 -2
- package/common/withDashboardViz.js.map +2 -2
- package/docs-llm/INDEX.md +119 -0
- package/docs-llm/area/examples-json.md +3854 -0
- package/docs-llm/area/examples-react.md +2816 -0
- package/docs-llm/area/options.md +97 -0
- package/docs-llm/area/overview.md +27 -0
- package/docs-llm/bar/examples-json.md +3380 -0
- package/docs-llm/bar/examples-react.md +2352 -0
- package/docs-llm/bar/options.md +89 -0
- package/docs-llm/bar/overview.md +25 -0
- package/docs-llm/bubble/examples-json.md +4082 -0
- package/docs-llm/bubble/examples-react.md +3977 -0
- package/docs-llm/bubble/options.md +62 -0
- package/docs-llm/bubble/overview.md +26 -0
- package/docs-llm/choropleth-svg/examples-json.md +397 -0
- package/docs-llm/choropleth-svg/examples-react.md +389 -0
- package/docs-llm/choropleth-svg/options.md +15 -0
- package/docs-llm/choropleth-svg/overview.md +23 -0
- package/docs-llm/column/examples-json.md +3898 -0
- package/docs-llm/column/examples-react.md +2653 -0
- package/docs-llm/column/options.md +94 -0
- package/docs-llm/column/overview.md +31 -0
- package/docs-llm/dsl/examples-json.md +43 -0
- package/docs-llm/dsl/examples-react.md +78 -0
- package/docs-llm/dsl/formatters/format-by-type-examples-json.md +58 -0
- package/docs-llm/dsl/formatters/format-by-type-examples-react.md +43 -0
- package/docs-llm/dsl/formatters/format-by-type.md +38 -0
- package/docs-llm/dsl/formatters/frame-examples-json.md +42 -0
- package/docs-llm/dsl/formatters/frame-examples-react.md +24 -0
- package/docs-llm/dsl/formatters/frame.md +6 -0
- package/docs-llm/dsl/formatters/gradient-examples-json.md +98 -0
- package/docs-llm/dsl/formatters/gradient-examples-react.md +44 -0
- package/docs-llm/dsl/formatters/gradient.md +23 -0
- package/docs-llm/dsl/formatters/lerp-examples-json.md +40 -0
- package/docs-llm/dsl/formatters/lerp-examples-react.md +28 -0
- package/docs-llm/dsl/formatters/lerp.md +19 -0
- package/docs-llm/dsl/formatters/match-value-examples-json.md +65 -0
- package/docs-llm/dsl/formatters/match-value-examples-react.md +37 -0
- package/docs-llm/dsl/formatters/match-value.md +13 -0
- package/docs-llm/dsl/formatters/max-contrast-examples-json.md +39 -0
- package/docs-llm/dsl/formatters/max-contrast-examples-react.md +27 -0
- package/docs-llm/dsl/formatters/max-contrast.md +9 -0
- package/docs-llm/dsl/formatters/multi-format-examples-json.md +67 -0
- package/docs-llm/dsl/formatters/multi-format-examples-react.md +49 -0
- package/docs-llm/dsl/formatters/multi-format.md +12 -0
- package/docs-llm/dsl/formatters/objects-examples-json.md +49 -0
- package/docs-llm/dsl/formatters/objects-examples-react.md +37 -0
- package/docs-llm/dsl/formatters/objects.md +3 -0
- package/docs-llm/dsl/formatters/pick-examples-json.md +59 -0
- package/docs-llm/dsl/formatters/pick-examples-react.md +30 -0
- package/docs-llm/dsl/formatters/pick.md +9 -0
- package/docs-llm/dsl/formatters/prefix-examples-json.md +29 -0
- package/docs-llm/dsl/formatters/prefix-examples-react.md +19 -0
- package/docs-llm/dsl/formatters/prefix.md +3 -0
- package/docs-llm/dsl/formatters/prepend-examples-json.md +51 -0
- package/docs-llm/dsl/formatters/prepend-examples-react.md +33 -0
- package/docs-llm/dsl/formatters/prepend.md +9 -0
- package/docs-llm/dsl/formatters/range-value-examples-json.md +48 -0
- package/docs-llm/dsl/formatters/range-value-examples-react.md +34 -0
- package/docs-llm/dsl/formatters/range-value.md +15 -0
- package/docs-llm/dsl/formatters/set-color-channel-examples-json.md +40 -0
- package/docs-llm/dsl/formatters/set-color-channel-examples-react.md +31 -0
- package/docs-llm/dsl/formatters/set-color-channel.md +9 -0
- package/docs-llm/dsl/formatters/suffix-examples-json.md +29 -0
- package/docs-llm/dsl/formatters/suffix-examples-react.md +19 -0
- package/docs-llm/dsl/formatters/suffix.md +3 -0
- package/docs-llm/dsl/formatters/type-examples-json.md +37 -0
- package/docs-llm/dsl/formatters/type-examples-react.md +20 -0
- package/docs-llm/dsl/formatters/type.md +3 -0
- package/docs-llm/dsl/overview.md +41 -0
- package/docs-llm/dsl/selectors/abs.md +7 -0
- package/docs-llm/dsl/selectors/ceil.md +7 -0
- package/docs-llm/dsl/selectors/data-frame-average-examples-json.md +41 -0
- package/docs-llm/dsl/selectors/data-frame-average-examples-react.md +36 -0
- package/docs-llm/dsl/selectors/data-frame-average.md +7 -0
- package/docs-llm/dsl/selectors/data-frame-count-examples-json.md +41 -0
- package/docs-llm/dsl/selectors/data-frame-count-examples-react.md +36 -0
- package/docs-llm/dsl/selectors/data-frame-count.md +7 -0
- package/docs-llm/dsl/selectors/data-frame-examples-json.md +830 -0
- package/docs-llm/dsl/selectors/data-frame-examples-react.md +929 -0
- package/docs-llm/dsl/selectors/data-frame-get-field-examples-json.md +89 -0
- package/docs-llm/dsl/selectors/data-frame-get-field-examples-react.md +124 -0
- package/docs-llm/dsl/selectors/data-frame-get-field.md +5 -0
- package/docs-llm/dsl/selectors/data-frame-get-raw-value.md +5 -0
- package/docs-llm/dsl/selectors/data-frame-get-type.md +5 -0
- package/docs-llm/dsl/selectors/data-frame-get-value.md +5 -0
- package/docs-llm/dsl/selectors/data-frame-max-examples-json.md +51 -0
- package/docs-llm/dsl/selectors/data-frame-max-examples-react.md +41 -0
- package/docs-llm/dsl/selectors/data-frame-max.md +7 -0
- package/docs-llm/dsl/selectors/data-frame-min-examples-json.md +51 -0
- package/docs-llm/dsl/selectors/data-frame-min-examples-react.md +41 -0
- package/docs-llm/dsl/selectors/data-frame-min.md +7 -0
- package/docs-llm/dsl/selectors/data-frame-percentile-examples-json.md +41 -0
- package/docs-llm/dsl/selectors/data-frame-percentile-examples-react.md +36 -0
- package/docs-llm/dsl/selectors/data-frame-percentile.md +8 -0
- package/docs-llm/dsl/selectors/data-frame-set-value.md +5 -0
- package/docs-llm/dsl/selectors/data-frame-sum-examples-json.md +51 -0
- package/docs-llm/dsl/selectors/data-frame-sum-examples-react.md +41 -0
- package/docs-llm/dsl/selectors/data-frame-sum.md +7 -0
- package/docs-llm/dsl/selectors/data-frame.md +4 -0
- package/docs-llm/dsl/selectors/data-point-get-field.md +5 -0
- package/docs-llm/dsl/selectors/data-point-get-raw-value.md +4 -0
- package/docs-llm/dsl/selectors/data-point-get-type.md +5 -0
- package/docs-llm/dsl/selectors/data-point-get-value.md +5 -0
- package/docs-llm/dsl/selectors/data-point-set-value.md +4 -0
- package/docs-llm/dsl/selectors/data-point.md +5 -0
- package/docs-llm/dsl/selectors/data-series-average.md +22 -0
- package/docs-llm/dsl/selectors/data-series-count.md +14 -0
- package/docs-llm/dsl/selectors/data-series-get-field.md +5 -0
- package/docs-llm/dsl/selectors/data-series-get-raw-value.md +4 -0
- package/docs-llm/dsl/selectors/data-series-get-type.md +5 -0
- package/docs-llm/dsl/selectors/data-series-get-value.md +4 -0
- package/docs-llm/dsl/selectors/data-series-max.md +5 -0
- package/docs-llm/dsl/selectors/data-series-min.md +5 -0
- package/docs-llm/dsl/selectors/data-series-percentile.md +17 -0
- package/docs-llm/dsl/selectors/data-series-set-value.md +4 -0
- package/docs-llm/dsl/selectors/data-series-sum.md +24 -0
- package/docs-llm/dsl/selectors/data-series.md +4 -0
- package/docs-llm/dsl/selectors/delta.md +7 -0
- package/docs-llm/dsl/selectors/divide.md +8 -0
- package/docs-llm/dsl/selectors/first-point.md +5 -0
- package/docs-llm/dsl/selectors/floor.md +7 -0
- package/docs-llm/dsl/selectors/frame-by-series-index-range-examples-json.md +89 -0
- package/docs-llm/dsl/selectors/frame-by-series-index-range-examples-react.md +88 -0
- package/docs-llm/dsl/selectors/frame-by-series-index-range.md +10 -0
- package/docs-llm/dsl/selectors/frame-by-series-indexes-examples-json.md +88 -0
- package/docs-llm/dsl/selectors/frame-by-series-indexes-examples-react.md +87 -0
- package/docs-llm/dsl/selectors/frame-by-series-indexes.md +9 -0
- package/docs-llm/dsl/selectors/frame-by-series-names-examples-json.md +89 -0
- package/docs-llm/dsl/selectors/frame-by-series-names-examples-react.md +88 -0
- package/docs-llm/dsl/selectors/frame-by-series-names-or-indexes-examples-json.md +89 -0
- package/docs-llm/dsl/selectors/frame-by-series-names-or-indexes-examples-react.md +88 -0
- package/docs-llm/dsl/selectors/frame-by-series-names-or-indexes.md +9 -0
- package/docs-llm/dsl/selectors/frame-by-series-names.md +9 -0
- package/docs-llm/dsl/selectors/frame-by-series-types-examples-json.md +89 -0
- package/docs-llm/dsl/selectors/frame-by-series-types-examples-react.md +88 -0
- package/docs-llm/dsl/selectors/frame-by-series-types.md +9 -0
- package/docs-llm/dsl/selectors/frame-without-internal-fields-examples-json.md +137 -0
- package/docs-llm/dsl/selectors/frame-without-internal-fields-examples-react.md +135 -0
- package/docs-llm/dsl/selectors/frame-without-internal-fields-except-examples-json.md +157 -0
- package/docs-llm/dsl/selectors/frame-without-internal-fields-except-examples-react.md +155 -0
- package/docs-llm/dsl/selectors/frame-without-internal-fields-except.md +21 -0
- package/docs-llm/dsl/selectors/frame-without-internal-fields.md +17 -0
- package/docs-llm/dsl/selectors/frame-without-series-names.md +8 -0
- package/docs-llm/dsl/selectors/last-point.md +5 -0
- package/docs-llm/dsl/selectors/minus.md +8 -0
- package/docs-llm/dsl/selectors/multiply.md +8 -0
- package/docs-llm/dsl/selectors/plus.md +8 -0
- package/docs-llm/dsl/selectors/point-by-index.md +6 -0
- package/docs-llm/dsl/selectors/points-by-indexes.md +6 -0
- package/docs-llm/dsl/selectors/round.md +7 -0
- package/docs-llm/dsl/selectors/series-by-index-examples-json.md +49 -0
- package/docs-llm/dsl/selectors/series-by-index-examples-react.md +39 -0
- package/docs-llm/dsl/selectors/series-by-index.md +8 -0
- package/docs-llm/dsl/selectors/series-by-name-examples-json.md +49 -0
- package/docs-llm/dsl/selectors/series-by-name-examples-react.md +39 -0
- package/docs-llm/dsl/selectors/series-by-name.md +8 -0
- package/docs-llm/dsl/selectors/series-by-prioritized-types-examples-json.md +47 -0
- package/docs-llm/dsl/selectors/series-by-prioritized-types-examples-react.md +39 -0
- package/docs-llm/dsl/selectors/series-by-prioritized-types.md +10 -0
- package/docs-llm/dsl/selectors/series-by-type-examples-json.md +49 -0
- package/docs-llm/dsl/selectors/series-by-type-examples-react.md +39 -0
- package/docs-llm/dsl/selectors/series-by-type.md +10 -0
- package/docs-llm/dsl/selectors/series-by-types.md +6 -0
- package/docs-llm/ellipse/examples-json.md +5 -0
- package/docs-llm/ellipse/examples-react.md +5 -0
- package/docs-llm/ellipse/options.md +16 -0
- package/docs-llm/ellipse/overview.md +5 -0
- package/docs-llm/events/examples-json.md +705 -0
- package/docs-llm/events/examples-react.md +536 -0
- package/docs-llm/events/options.md +18 -0
- package/docs-llm/events/overview.md +5 -0
- package/docs-llm/filler-gauge/examples-json.md +376 -0
- package/docs-llm/filler-gauge/examples-react.md +274 -0
- package/docs-llm/filler-gauge/options.md +26 -0
- package/docs-llm/filler-gauge/overview.md +5 -0
- package/docs-llm/image/examples-json.md +39 -0
- package/docs-llm/image/examples-react.md +65 -0
- package/docs-llm/image/options.md +13 -0
- package/docs-llm/image/overview.md +5 -0
- package/docs-llm/line/examples-json.md +3724 -0
- package/docs-llm/line/examples-react.md +2683 -0
- package/docs-llm/line/options.md +95 -0
- package/docs-llm/line/overview.md +29 -0
- package/docs-llm/link-graph/examples-json.md +5 -0
- package/docs-llm/link-graph/examples-react.md +5 -0
- package/docs-llm/link-graph/options.md +26 -0
- package/docs-llm/link-graph/overview.md +16 -0
- package/docs-llm/map/examples-json.md +13973 -0
- package/docs-llm/map/examples-react.md +6154 -0
- package/docs-llm/map/options.md +22 -0
- package/docs-llm/map/overview.md +32 -0
- package/docs-llm/markdown/examples-json.md +63 -0
- package/docs-llm/markdown/examples-react.md +98 -0
- package/docs-llm/markdown/options.md +17 -0
- package/docs-llm/markdown/overview.md +5 -0
- package/docs-llm/marker-gauge/examples-json.md +436 -0
- package/docs-llm/marker-gauge/examples-react.md +367 -0
- package/docs-llm/marker-gauge/options.md +26 -0
- package/docs-llm/marker-gauge/overview.md +5 -0
- package/docs-llm/network-graph/examples-json.md +8843 -0
- package/docs-llm/network-graph/examples-react.md +7339 -0
- package/docs-llm/network-graph/options.md +50 -0
- package/docs-llm/network-graph/overview.md +28 -0
- package/docs-llm/parallel-coordinates/examples-json.md +8376 -0
- package/docs-llm/parallel-coordinates/examples-react.md +2771 -0
- package/docs-llm/parallel-coordinates/options.md +14 -0
- package/docs-llm/parallel-coordinates/overview.md +22 -0
- package/docs-llm/pie/examples-json.md +851 -0
- package/docs-llm/pie/examples-react.md +606 -0
- package/docs-llm/pie/options.md +34 -0
- package/docs-llm/pie/overview.md +23 -0
- package/docs-llm/process-tree/options.md +32 -0
- package/docs-llm/punchcard/examples-json.md +6134 -0
- package/docs-llm/punchcard/examples-react.md +4562 -0
- package/docs-llm/punchcard/options.md +33 -0
- package/docs-llm/punchcard/overview.md +5 -0
- package/docs-llm/pure-rich-text/options.md +29 -0
- package/docs-llm/rectangle/examples-json.md +5 -0
- package/docs-llm/rectangle/examples-react.md +5 -0
- package/docs-llm/rectangle/options.md +19 -0
- package/docs-llm/rectangle/overview.md +5 -0
- package/docs-llm/rich-text/examples-json.md +96 -0
- package/docs-llm/rich-text/examples-react.md +119 -0
- package/docs-llm/rich-text/options.md +29 -0
- package/docs-llm/rich-text/overview.md +5 -0
- package/docs-llm/sankey/examples-json.md +844 -0
- package/docs-llm/sankey/examples-react.md +546 -0
- package/docs-llm/sankey/options.md +19 -0
- package/docs-llm/sankey/overview.md +24 -0
- package/docs-llm/scatter/examples-json.md +4012 -0
- package/docs-llm/scatter/examples-react.md +3914 -0
- package/docs-llm/scatter/options.md +68 -0
- package/docs-llm/scatter/overview.md +25 -0
- package/docs-llm/single-value/examples-json.md +2613 -0
- package/docs-llm/single-value/examples-react.md +2296 -0
- package/docs-llm/single-value/options.md +49 -0
- package/docs-llm/single-value/overview.md +23 -0
- package/docs-llm/single-value-icon/examples-json.md +1686 -0
- package/docs-llm/single-value-icon/examples-react.md +1573 -0
- package/docs-llm/single-value-icon/options.md +43 -0
- package/docs-llm/single-value-icon/overview.md +5 -0
- package/docs-llm/single-value-radial/examples-json.md +1178 -0
- package/docs-llm/single-value-radial/examples-react.md +1028 -0
- package/docs-llm/single-value-radial/options.md +41 -0
- package/docs-llm/single-value-radial/overview.md +5 -0
- package/docs-llm/table/examples-json.md +5 -0
- package/docs-llm/table/examples-react.md +5 -0
- package/docs-llm/table/options.md +26 -0
- package/docs-llm/table/overview.md +24 -0
- package/docs-llm/timeline/examples-json.md +5 -0
- package/docs-llm/timeline/examples-react.md +5 -0
- package/docs-llm/timeline/options.md +27 -0
- package/docs-llm/timeline/overview.md +24 -0
- package/docs-llm/treemap/examples-json.md +5 -0
- package/docs-llm/treemap/examples-react.md +5 -0
- package/docs-llm/treemap/options.md +26 -0
- package/docs-llm/treemap/overview.md +27 -0
- package/package.json +33 -28
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# Column Visualization Options
|
|
2
|
+
|
|
3
|
+
**Component Reference:** Column or @splunk/visualizations/column
|
|
4
|
+
|
|
5
|
+
Source: `@splunk/visualization-schemas/columnOptionsSchema`
|
|
6
|
+
|
|
7
|
+
| Option | Type | Default | Description |
|
|
8
|
+
| --- | --- | --- | --- |
|
|
9
|
+
| `additionalTooltipFields` | array<string> | `[]` | Specify the fields to add to the default set of tooltips. Tooltips appear when you hover over events. These fields and their corresponding values are shown in addition to the ones displayed by default. Items: string |
|
|
10
|
+
| `annotationColor` | array<string> | — | Specify the annotation colors. For example, [“#FF0000”, “#0000FF", “#008000”]. You can use a data source or hexadecimal code to apply the color. Items: string |
|
|
11
|
+
| `annotationLabel` | array<string> | — | Specify a list of labels to use for annotations. For example, [“Sales”, “Revenue”, “Orders”].You can use a data source to apply the labels. Items: string |
|
|
12
|
+
| `annotationX` | array<string \| number> | — | Specify a data source field to apply to the event annotation on the x-axis. Items: string \| number |
|
|
13
|
+
| `backgroundColor` | string | `> themes.defaultBackgroundColor` | Specify the color to use for the background. You can use a data source or a hexadecimal code to apply the color. Pattern: `^#(?:[0-9a-fA-F]{3,4}\|[0-9a-fA-F]{6}\|[0-9a-fA-F]{8})$\|^transparent$\|^rgb\\(\\s*(\\d{1,3}),\\s*(\\d{1,3}),\\s*(\\d{1,3})\\)$\|^rgba\\(\\s*(\\d{1,3}%?),\\s*(\\d{1,3}%?),\\s*(\\d{1,3}%?),\\s*(\\d*(?:\\.\\d+)?)\\)$\|\\$(\\w+:)?([^$\|:]+?)(\\\|[\|\\w]+)?\\$` |
|
|
14
|
+
| `columnGrouping` | string | `auto` | Specify a column grouping mode. If chart.stackMode is defined, it overrides grouping mode settings. Allowed values: `auto`, `overlay` |
|
|
15
|
+
| `columnSpacing` | number | — | Specifies the spacing (px) between columns in a column chart. |
|
|
16
|
+
| `dataValuesDisplay` | string | `off` | Specify the labels to display. Enter "all" to show labels for all data points, "off" to show no labels, or "minmax" to show high and low values. Allowed values: `off`, `all`, `minmax` |
|
|
17
|
+
| `legendDisplay` | string | — | Specify the location of the legend on the panel. By default, legendDisplay is off when splitByLayout is trellis, and right otherwise. Allowed values: `right`, `left`, `top`, `bottom`, `off` |
|
|
18
|
+
| `legendLabels` | array<string> | — | Specify a list of labels to populate the legend in advance. For example, ["percent", "count"]. Items: string |
|
|
19
|
+
| `legendMode` | string | `standard` | Specify visual and behavioral settings for the tooltip and legend. "seriesCompare" is useful when comparing series. Allowed values: `standard`, `seriesCompare` |
|
|
20
|
+
| `legendTruncation` | string | `ellipsisEnd` | Specify how to display legend labels when they overflow the layout boundaries by replacing overflow text with an ellipsis. Allowed values: `ellipsisEnd`, `ellipsisMiddle`, `ellipsisStart`, `ellipsisOff` |
|
|
21
|
+
| `lineDashStyle` | string | `solid` | Specify a dash style for all overlay field lines. Allowed values: `solid`, `shortDash`, `shortDot`, `shortDashDot`, `shortDashDotDot`, `dot`, `dash`, `longDash`, `dashDot`, `longDashDot`, `longDashDotDot` |
|
|
22
|
+
| `lineDashStylesByField` | object | — | Specify a dash style to use for overlay lines for each field. For example, {"count": "longDashDot", "percent": "longDashDotDot"}.<br /> Valid values: "solid", "shortDash", "shortDot", "shortDashDot", "shortDashDotDot", "dot", "dash",<br /> "longDash", "dashDot", "longDashDot", "longDashDotDot". |
|
|
23
|
+
| `lineWidth` | number | `2` | Specify the line width (px) for overlay field lines. |
|
|
24
|
+
| `overlayFields` | array<string> \| string | — | Specify one or more fields to differentiate on the chart and display as chart overlays. Items: string |
|
|
25
|
+
| `resultLimit` | number | `50000` | Specify the number of data points to render in a chart. |
|
|
26
|
+
| `seriesColors` | array<string> | `["#7B56DB","#009CEB","#00CDAF","#DD9900","#FF677B","#CB2196","#813193","#0051B5","#008C80","#99B100","#FFA476","#FF6ACE","#AE8CFF","#00689D","#00490A","#465D00","#9D6300","#F6540B","#FF969E","#E47BFE"]` | Specify the colors to use in a series. For example, ["#FF0000", "#0000FF", "#008000"]. Items: string |
|
|
27
|
+
| `seriesColorsByField` | object | — | Specify the colors to use for specific fields in a series. For example, {“count”: “#008000”, “percent”: “#FFA500”}. |
|
|
28
|
+
| `seriesSpacing` | number | — | Specify the spacing (px) between clustered series in column and bar charts. |
|
|
29
|
+
| `showIndependentYRanges` | boolean | `false` | Specify whether split series charts have independent y-ranges. |
|
|
30
|
+
| `showOverlayY2Axis` | boolean | `false` | Enable a second y-axis for chart overlays. All overlay fields will map to a second y-axis. |
|
|
31
|
+
| `showRoundedY2AxisLabels` | boolean | `true` | Specify whether to round the second y-axis values to the nearest integer. |
|
|
32
|
+
| `showSplitSeries` | boolean | `false` | Specify whether to split a multi-series chart into separate charts that are stacked from top to bottom; uses one chart for each series. |
|
|
33
|
+
| `showTooltip` | boolean | `true` | Specify whether to make a tooltip visible on hover |
|
|
34
|
+
| `showXMajorGridLines` | boolean | `false` | Specify whether to show major grid lines on the x-axis. |
|
|
35
|
+
| `showY2AxisWithZero` | boolean | `false` | Specify whether to include zero in the second y-axis range. |
|
|
36
|
+
| `showY2MajorGridLines` | boolean | `false` | Specify whether to show major grid lines on the second y-axis. |
|
|
37
|
+
| `showY2MinorGridLines` | boolean | `false` | Specify whether to show minor grid lines on the second y-axis. |
|
|
38
|
+
| `showYAxisExtendedRange` | boolean | `true` | Specify whether to extend the y-axis to include whole major tick marks. |
|
|
39
|
+
| `showYAxisWithZero` | boolean | `false` | Specify whether to include zero in the y-axis range. |
|
|
40
|
+
| `showYMajorGridLines` | boolean | `true` | Specify whether to show major grid lines on the y-axis. |
|
|
41
|
+
| `showYMinorGridLines` | boolean | `false` | Specify whether to show minor grid lines on the y-axis. |
|
|
42
|
+
| `splitByLayout` | string | `off` | Specify the layout method by which to display the visualization, which splits the data into individual visualizations based on a certain category. Allowed values: `off`, `trellis` |
|
|
43
|
+
| `stackMode` | string | `auto` | Specify stack mode. Allowed values: `auto`, `stacked`, `stacked100` |
|
|
44
|
+
| `trellisBackgroundColor` | string | `> themes.defaultBackgroundColor` | Specify the color used for the trellis container background by using a hexadecimal code. For example, #0000FF. Pattern: `^#(?:[0-9a-fA-F]{3,4}\|[0-9a-fA-F]{6}\|[0-9a-fA-F]{8})$\|^transparent$\|^rgb\\(\\s*(\\d{1,3}),\\s*(\\d{1,3}),\\s*(\\d{1,3})\\)$\|^rgba\\(\\s*(\\d{1,3}%?),\\s*(\\d{1,3}%?),\\s*(\\d{1,3}%?),\\s*(\\d*(?:\\.\\d+)?)\\)$\|\\$(\\w+:)?([^$\|:]+?)(\\\|[\|\\w]+)?\\$` |
|
|
45
|
+
| `trellisColumns` | number | `3` | Specify the number of visualizations to display in a given row of the trellis container. The remaining visualizations will wrap accordingly. If nothing is specified, it will be auto-set based on the trellisMinColumnWidth. The minimum value is 1. Range: min 1 |
|
|
46
|
+
| `trellisMinColumnWidth` | number | `250` | Specify the minimum width, in pixels, of each visualization in the trellis container. If the window or panel is resized, the remaining visualizations may be viewed by scrolling. The minimum value is 1. Range: min 1 |
|
|
47
|
+
| `trellisPageCount` | number | `20` | Specify the maximum number of visualizations to display in a single page in the trellis container. The remaining visualizations will paginate accordingly. The minimum value is 1. Range: min 1 |
|
|
48
|
+
| `trellisRowHeight` | number | `180` | Specify the height, in pixels, of each visualization in the trellis container. If the window or panel is resized, the remaining visualizations may be viewed by scrolling. The minimum value is 1. Range: min 1 |
|
|
49
|
+
| `trellisSharedScale` | boolean | `true` | Specify whether all visualizations will share the same scale in the trellis container. |
|
|
50
|
+
| `trellisSortBy` | string | `result` | Specify the sort method for the individual visualizations in the trellis container. Use result to sort by search result order, or name to sort alphabetically by visualization label. Allowed values: `result`, `name` |
|
|
51
|
+
| `trellisSortOrder` | string | `ascending` | Specify the sort order for the individual visualizations in the trellis container. This setting applies to the sort method specified in trellisSortBy. Allowed values: `ascending`, `descending` |
|
|
52
|
+
| `trellisSplitBy` | string | — | Specify the field name of the column with categories used, or “aggregations”, to split the data into individual visualizations for trellis display, if applicable. If a SPL `timechart` command is used, this may default to the SPL `by` clause field. If a SPL `chart` command is used, this may default to the first string field. |
|
|
53
|
+
| `x` | array<string \| number> | `> primary \| seriesByIndex(0)` | Specify a data source to apply to the x-axis. Items: string \| number |
|
|
54
|
+
| `xAxisLabelRotation` | number | `0` | Specify the rotation of the x-axis label in degrees. Allowed values: `-90`, `-45`, `0`, `45`, `90` |
|
|
55
|
+
| `xAxisLabelVisibility` | string | `auto` | Specify whether to show labels on the x-axis. Allowed values: `auto`, `show`, `hide` |
|
|
56
|
+
| `xAxisLineVisibility` | string | `hide` | Specify whether to show the x-axis line. Allowed values: `hide`, `show` |
|
|
57
|
+
| `xAxisMajorTickSize` | number | `6` | Specify the size (px) of major tick marks on the x-axis. |
|
|
58
|
+
| `xAxisMajorTickVisibility` | string | `auto` | Specify whether to show major tick marks on the x-axis. Allowed values: `auto`, `show`, `hide` |
|
|
59
|
+
| `xAxisMaxLabelParts` | number | `3` | Specify the maximum number of time-parts for a tick label. The 3 possible parts are year, month, and time. Values can range from 1 to 3. Range: min 1, max 3 |
|
|
60
|
+
| `xAxisTitleText` | string | — | Specify the title of the x-axis. |
|
|
61
|
+
| `xAxisTitleVisibility` | string | `show` | Specify whether to show the title of the x-axis. Allowed values: `hide`, `show` |
|
|
62
|
+
| `xField` | string | `> x \| getField()` | Specify a field to map to the x-axis. |
|
|
63
|
+
| `y` | array<string \| number> | `> primary \| frameBySeriesIndexRange(1)` | Specify a data source to apply to the y-axis. Items: string \| number |
|
|
64
|
+
| `y2` | array<string \| number> | — | Specify a data source to apply to the second y-axis Items: string \| number |
|
|
65
|
+
| `y2AxisAbbreviation` | string | `auto` | Specify whether to abbreviate large second y-axis values with the closest International System of Units (SI) prefix. Allowed values: `auto`, `off` |
|
|
66
|
+
| `y2AxisLabelVisibility` | string | `auto` | Specify whether to show labels on the second y-axis. Allowed values: `auto`, `show`, `hide` |
|
|
67
|
+
| `y2AxisLineVisibility` | string | `hide` | Specify whether to show the second y-axis line. Allowed values: `hide`, `show` |
|
|
68
|
+
| `y2AxisMajorTickInterval` | string \| number | `auto` | Specify the spacing unit between major tick marks along the numeric second y-axis. |
|
|
69
|
+
| `y2AxisMajorTickSize` | number | `6` | Specify the size (px) of major tick marks on the second y-axis. |
|
|
70
|
+
| `y2AxisMajorTickVisibility` | string | `auto` | Specify whether to show major tick marks on the second y-axis. Allowed values: `auto`, `show`, `hide` |
|
|
71
|
+
| `y2AxisMax` | string \| number | `auto` | Specify the largest value for the visible second y-axis range. |
|
|
72
|
+
| `y2AxisMin` | string \| number | `auto` | Specify the smallest value for the visible second y-axis range. |
|
|
73
|
+
| `y2AxisMinorTickSize` | number | `6` | Specify the size (px) of minor tick marks on the second y-axis. |
|
|
74
|
+
| `y2AxisMinorTickVisibility` | string | `auto` | Specify whether to show minor tick marks on the second y-axis. Allowed values: `auto`, `show`, `hide` |
|
|
75
|
+
| `y2AxisScale` | string | `linear` | Specify the type of scale that applies to a numerical second y-axis. Allowed values: `linear`, `log` |
|
|
76
|
+
| `y2AxisTitleText` | string | — | Specify the title of the second y-axis. |
|
|
77
|
+
| `y2AxisTitleVisibility` | string | `show` | Specify whether to show the title of the second y-axis. Allowed values: `hide`, `show` |
|
|
78
|
+
| `y2Fields` | array<string> \| string | `> y2 \| getField()` | Specify one or more fields to map to a second y-axis. Items: string |
|
|
79
|
+
| `yAxisAbbreviation` | string | `auto` | Specify whether to abbreviate large y-axis values with the closest International System of Units (SI) prefix. Allowed values: `auto`, `off` |
|
|
80
|
+
| `yAxisLabelVisibility` | string | `auto` | Specify whether to show labels on the y-axis. Allowed values: `auto`, `show`, `hide` |
|
|
81
|
+
| `yAxisLineVisibility` | string | `hide` | Specify whether to show the y-axis line. Allowed values: `hide`, `show` |
|
|
82
|
+
| `yAxisMajorTickInterval` | string \| number | `auto` | Specify the spacing unit between major tick marks along the numeric y-axis. |
|
|
83
|
+
| `yAxisMajorTickSize` | number | `6` | Specify the size (px) of major tick marks on the y-axis. |
|
|
84
|
+
| `yAxisMajorTickVisibility` | string | `auto` | Specify whether to show major tick marks on the y-axis. Allowed values: `auto`, `show`, `hide` |
|
|
85
|
+
| `yAxisMax` | string \| number | `auto` | Specify the largest value for the visible y-axis range. |
|
|
86
|
+
| `yAxisMin` | string \| number | `auto` | Specify the smallest value for the visible y-axis range. |
|
|
87
|
+
| `yAxisMinorTickSize` | number | `6` | Specify the size (px) of minor tick marks on the y-axis. |
|
|
88
|
+
| `yAxisMinorTickVisibility` | string | `auto` | Specify whether to show minor tick marks on the y-axis. Allowed values: `auto`, `show`, `hide` |
|
|
89
|
+
| `yAxisScale` | string | `linear` | Specify the type of scale that applies to a numerical y-axis. Allowed values: `linear`, `log` |
|
|
90
|
+
| `yAxisTitleText` | string | — | Specify the title of the y-axis. |
|
|
91
|
+
| `yAxisTitleVisibility` | string | `show` | Specify whether to show the title of the y-axis. Allowed values: `hide`, `show` |
|
|
92
|
+
| `yFields` | string | `> y \| getField()` | Specify a field to map to the y-axis. |
|
|
93
|
+
|
|
94
|
+
_Auto-generated; do not edit by hand._
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Column Visualization Guide
|
|
2
|
+
|
|
3
|
+
**Component Reference:** Column or @splunk/visualizations/Column
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
Like area and line charts, a column chart shows the progression of numeric values with respect to another variable, such as time. A column chart also works well with discrete data point values. Because of that distinction, a column chart can show data mapped to a label on an axis, such as country or state, instead of mapping the data to a numeric value. You can use a stacked column chart to show multiple data series in a column.
|
|
8
|
+
|
|
9
|
+
## Details
|
|
10
|
+
|
|
11
|
+
- **Category:** Trends
|
|
12
|
+
- **Visualization Type:** splunk.column
|
|
13
|
+
|
|
14
|
+
## Tips
|
|
15
|
+
|
|
16
|
+
- Use a zero baseline with a column chart.
|
|
17
|
+
- Add color to highlight multi or stacked series.
|
|
18
|
+
- Order groups of data to emphasize their significance.
|
|
19
|
+
- Consider a bar chart if you want to reorient the display of data along the y-axis.
|
|
20
|
+
|
|
21
|
+
## Variations
|
|
22
|
+
|
|
23
|
+
| Variation | Description | Key |
|
|
24
|
+
| --- | --- | --- |
|
|
25
|
+
| Single Series | Use a basic column chart to show the progression of one series over time. | single |
|
|
26
|
+
| Multi Series | Use a multi-series column chart to compare the progression of multiple series over time. | multi |
|
|
27
|
+
| Stacked Series | Use stacked column charts to represent multiple data series. Stacked columns should only be used if all chart values are either positive or negative. Position the data series of central importance directly on the x-axis in order to best see its development over time. | stacked |
|
|
28
|
+
| Stacked 100% Series | Use stacked 100% column charts to represent multiple data series combined together to show how the partial amounts add up to a whole. | stacked100 |
|
|
29
|
+
| Overlay Series | Column charts can select specific data series to be displayed as an overlay line. These are helpful when you’d like to highlight a field such as a max, average, or other differentiated series. You may also display this on the y2-axis (vertical axis on the right side of the chart) if the overlay series has a large difference in scale than the other series. | overlay |
|
|
30
|
+
| Data Value Labeling | Use data value labeling to display specific details about your chart when appropriate, such as min/max value. Avoid labeling all your data points if they clutter your visualization as they may distract rather than add to communication. | dataValueLabelling |
|
|
31
|
+
| Coloring By Field | Match colors to fields if you have semantic meaning to specific categorical colors across your dashboard or organization. | colorByField |
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# DSL Overview Examples
|
|
2
|
+
|
|
3
|
+
## Example 1
|
|
4
|
+
|
|
5
|
+
```json
|
|
6
|
+
{
|
|
7
|
+
"context": {
|
|
8
|
+
"foo": 2,
|
|
9
|
+
"bar": 3
|
|
10
|
+
},
|
|
11
|
+
"options": {
|
|
12
|
+
"foo": 1,
|
|
13
|
+
"color": "> foo",
|
|
14
|
+
"value": "> bar"
|
|
15
|
+
},
|
|
16
|
+
"dataSources": {}
|
|
17
|
+
}
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Example 2
|
|
21
|
+
|
|
22
|
+
```json
|
|
23
|
+
{
|
|
24
|
+
"context": {
|
|
25
|
+
"trendColorThresholds": [
|
|
26
|
+
{
|
|
27
|
+
"from": 1321,
|
|
28
|
+
"value": "#00FFFF"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"to": 1321,
|
|
32
|
+
"value": "#FF00FF"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
"options": {
|
|
37
|
+
"sparklineValues": "> primary | seriesByIndex(0)",
|
|
38
|
+
"trendValue": "> sparklineValues | delta(-2)",
|
|
39
|
+
"trendColor": "> trendValue | rangeValue(trendColorThresholds)"
|
|
40
|
+
},
|
|
41
|
+
"dataSources": {}
|
|
42
|
+
}
|
|
43
|
+
```
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# DSL Overview Examples
|
|
2
|
+
|
|
3
|
+
## Example 1
|
|
4
|
+
|
|
5
|
+
```jsx
|
|
6
|
+
<SampleViz
|
|
7
|
+
context={{
|
|
8
|
+
foo: 2,
|
|
9
|
+
bar: 3,
|
|
10
|
+
}}
|
|
11
|
+
options={{
|
|
12
|
+
foo: 1,
|
|
13
|
+
// the DSL will first look at the local scope before searching through context.foo, datasources.foo, and themes.foo
|
|
14
|
+
// in this case, color will be resolved as 1
|
|
15
|
+
color: '> foo',
|
|
16
|
+
// since there is no local match, the DSL will look through the global scopes to find a corresponding identifier
|
|
17
|
+
// in this case, value will be resolved as 3
|
|
18
|
+
value: '> bar',
|
|
19
|
+
}}
|
|
20
|
+
/>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Example 2
|
|
24
|
+
|
|
25
|
+
```jsx
|
|
26
|
+
import SingleValue from '@splunk/visualizations/SingleValue';
|
|
27
|
+
|
|
28
|
+
export default () => (
|
|
29
|
+
<SingleValue
|
|
30
|
+
context={{
|
|
31
|
+
trendColorThresholds: [
|
|
32
|
+
{
|
|
33
|
+
from: 1321,
|
|
34
|
+
value: '#00FFFF',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
to: 1321,
|
|
38
|
+
value: '#FF00FF',
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
}}
|
|
42
|
+
options={{
|
|
43
|
+
sparklineValues: '> primary | seriesByIndex(0)',
|
|
44
|
+
trendValue: '> sparklineValues | delta(-2)',
|
|
45
|
+
trendColor: '> trendValue | rangeValue(trendColorThresholds)',
|
|
46
|
+
}}
|
|
47
|
+
dataSources={{
|
|
48
|
+
primary: {
|
|
49
|
+
// the JSON input for a DataFrame has the structure of { data: { columns: [...], fields: [...], meta: {...} }
|
|
50
|
+
data: {
|
|
51
|
+
columns: [
|
|
52
|
+
['1', '62', '103', '308', '587', '876', '930', '1320'],
|
|
53
|
+
[
|
|
54
|
+
'2018-08-19T00:00:00.000+00:00',
|
|
55
|
+
'2018-08-20T00:00:00.000+00:00',
|
|
56
|
+
'2018-08-21T00:00:00.000+00:00',
|
|
57
|
+
'2018-08-22T00:00:00.000+00:00',
|
|
58
|
+
'2018-08-23T00:00:00.000+00:00',
|
|
59
|
+
'2018-08-24T00:00:00.000+00:00',
|
|
60
|
+
'2018-08-25T00:00:00.000+00:00',
|
|
61
|
+
'2018-08-26T00:00:00.000+00:00',
|
|
62
|
+
],
|
|
63
|
+
],
|
|
64
|
+
fields: [
|
|
65
|
+
{
|
|
66
|
+
name: 'foo',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: 'bar',
|
|
70
|
+
},
|
|
71
|
+
],
|
|
72
|
+
},
|
|
73
|
+
meta: {},
|
|
74
|
+
},
|
|
75
|
+
}}
|
|
76
|
+
/>
|
|
77
|
+
);
|
|
78
|
+
```
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# FormatByType Formatter Examples
|
|
2
|
+
|
|
3
|
+
## Example 1
|
|
4
|
+
|
|
5
|
+
```json
|
|
6
|
+
{
|
|
7
|
+
"context": {
|
|
8
|
+
"formattedConfig": {
|
|
9
|
+
"number": {
|
|
10
|
+
"unit": "$",
|
|
11
|
+
"unitPosition": "before",
|
|
12
|
+
"precision": 2,
|
|
13
|
+
"thousandSeparated": true
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"options": {
|
|
18
|
+
"columnFormat": {
|
|
19
|
+
"formatted": {
|
|
20
|
+
"data": "> table | seriesByName(\"formatted\") | formatByType(formattedConfig)"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"dataSources": {
|
|
25
|
+
"primary": {
|
|
26
|
+
"requestParams": {
|
|
27
|
+
"offset": 0,
|
|
28
|
+
"count": 20
|
|
29
|
+
},
|
|
30
|
+
"data": {
|
|
31
|
+
"fields": [
|
|
32
|
+
{
|
|
33
|
+
"name": "number"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "formatted"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"columns": [
|
|
40
|
+
[
|
|
41
|
+
-927916.96,
|
|
42
|
+
-924916.9,
|
|
43
|
+
-654089.75
|
|
44
|
+
],
|
|
45
|
+
[
|
|
46
|
+
-927916.96,
|
|
47
|
+
-924916.9,
|
|
48
|
+
-654089.75
|
|
49
|
+
]
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"meta": {
|
|
53
|
+
"totalCount": 100
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
```
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# FormatByType Formatter Examples
|
|
2
|
+
|
|
3
|
+
## Example 1
|
|
4
|
+
|
|
5
|
+
```jsx
|
|
6
|
+
<Table
|
|
7
|
+
context = {{
|
|
8
|
+
formattedConfig: {
|
|
9
|
+
number: {
|
|
10
|
+
unit: '$',
|
|
11
|
+
unitPosition: 'before',
|
|
12
|
+
precision: 2,
|
|
13
|
+
thousandSeparated: true,
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
}}
|
|
17
|
+
|
|
18
|
+
options = {{
|
|
19
|
+
columnFormat: {
|
|
20
|
+
formatted: {
|
|
21
|
+
data: '> table | seriesByName("formatted") | formatByType(formattedConfig)',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
}}
|
|
25
|
+
|
|
26
|
+
dataSources = {{
|
|
27
|
+
primary: {
|
|
28
|
+
requestParams: { offset: 0, count: 20 },
|
|
29
|
+
data: {
|
|
30
|
+
fields: [
|
|
31
|
+
{ name: 'number' },
|
|
32
|
+
{ name: 'formatted' },
|
|
33
|
+
],
|
|
34
|
+
columns: [
|
|
35
|
+
[-927916.96, -924916.9, -654089.75],
|
|
36
|
+
[-927916.96, -924916.9, -654089.75],
|
|
37
|
+
],
|
|
38
|
+
},
|
|
39
|
+
meta: { totalCount: 100 },
|
|
40
|
+
},
|
|
41
|
+
}}
|
|
42
|
+
/>
|
|
43
|
+
```
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# FormatByType Formatter
|
|
2
|
+
|
|
3
|
+
@class FormatByType
|
|
4
|
+
|
|
5
|
+
Formats the value based on the value type and the provided config.
|
|
6
|
+
## Config Object
|
|
7
|
+
|
|
8
|
+
### number
|
|
9
|
+
|
|
10
|
+
* **unit?**: `string` to be appended or prepended to the value
|
|
11
|
+
* **unitPosition?**: `{"before" | "after"}` where should the `unit` be placed. Maps to numbro `prefix` or `postfix`
|
|
12
|
+
* **numberPrecision?**: `number` maps to numbro `mantissa`
|
|
13
|
+
* **mantissa?**: `number` number of decimal points to show
|
|
14
|
+
* **trimMantissa?**: `boolean` ending 0s in decimal points will be trimmed
|
|
15
|
+
* **thousandSeparated?**: `boolean` should show `,` for thousands
|
|
16
|
+
* **output?**: `"currency" | "percent" | "byte" | "time" | "ordinal" | "number"` value will be converted to one of thse formats
|
|
17
|
+
* **base?**: `"decimal" | "binary" | "general"` used for converting value to bytes
|
|
18
|
+
* **prefix?**: `string` string to be added in front of the value
|
|
19
|
+
* **suffix?**: `string` string to be appended to the value
|
|
20
|
+
* **postfix?**: `string` string to be appended to the value
|
|
21
|
+
* **forceAverage?**: `"trillion" | "billion" | "million" | "thousand"` can be used to force one the selected average
|
|
22
|
+
* **average?**: `boolean` rounds up the value to the closed average
|
|
23
|
+
* **totalLength?**: `number` used only for `average`. The number length to format data in
|
|
24
|
+
* **spaceSeparated?**: `boolean` used with `average` to introduce space between number and average
|
|
25
|
+
* **abbreviations?**: `{
|
|
26
|
+
thousand?: string;
|
|
27
|
+
million?: string;
|
|
28
|
+
billion?: string;
|
|
29
|
+
trillion?: string;
|
|
30
|
+
}` abbreviation values for averages.
|
|
31
|
+
* **negative?**: `"sign" | "parenthesis"` display sign or parenthesis for negative numbers
|
|
32
|
+
* **forceSign?**: `boolean` always show + or - sign
|
|
33
|
+
|
|
34
|
+
* For examples, refer [Numbro](https://numbrojs.com/format.html#format)
|
|
35
|
+
|
|
36
|
+
#### time
|
|
37
|
+
|
|
38
|
+
* **format**: valid moment format string. Refer - [moment display](https://momentjs.com/docs/#/displaying/)
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Frame Formatter Examples
|
|
2
|
+
|
|
3
|
+
## Example 1
|
|
4
|
+
|
|
5
|
+
```json
|
|
6
|
+
{
|
|
7
|
+
"context": {
|
|
8
|
+
"users": "> primary | seriesByName(\"users\")",
|
|
9
|
+
"ids": "> primary | seriesByName(\"ids\")"
|
|
10
|
+
},
|
|
11
|
+
"options": {
|
|
12
|
+
"frameOption1": "> frame(users, ids)",
|
|
13
|
+
"frameOption2": "> frame(frameOption1, ids)"
|
|
14
|
+
},
|
|
15
|
+
"dataSources": {
|
|
16
|
+
"primary": {
|
|
17
|
+
"data": {
|
|
18
|
+
"columns": [
|
|
19
|
+
[
|
|
20
|
+
"Maurine",
|
|
21
|
+
"Jennings",
|
|
22
|
+
"Giuseppe"
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
"1",
|
|
26
|
+
"2",
|
|
27
|
+
"3"
|
|
28
|
+
]
|
|
29
|
+
],
|
|
30
|
+
"fields": [
|
|
31
|
+
{
|
|
32
|
+
"name": "users"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "ids"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
```
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Frame Formatter Examples
|
|
2
|
+
|
|
3
|
+
## Example 1
|
|
4
|
+
|
|
5
|
+
```jsx
|
|
6
|
+
<SampleViz
|
|
7
|
+
context={{
|
|
8
|
+
users: '> primary | seriesByName("users")',
|
|
9
|
+
ids: '> primary | seriesByName("ids")'
|
|
10
|
+
}}
|
|
11
|
+
options={{
|
|
12
|
+
frameOption1: '> frame(users, ids)' // returns [['Maurine', 'Jennings', 'Giuseppe'], ['1', '2', '3']]
|
|
13
|
+
frameOption2: '> frame(frameOption1, ids)' // returns [['Maurine', 'Jennings', 'Giuseppe'], ['1', '2', '3'], ['1', '2', '3']]
|
|
14
|
+
}}
|
|
15
|
+
dataSources={{
|
|
16
|
+
primary: {
|
|
17
|
+
data: {
|
|
18
|
+
columns: [['Maurine', 'Jennings', 'Giuseppe'], ['1', '2', '3']],
|
|
19
|
+
fields: [{ name: 'users' }, { name: 'ids' }]
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}}
|
|
23
|
+
/>
|
|
24
|
+
```
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# Gradient Formatter Examples
|
|
2
|
+
|
|
3
|
+
## Example 1
|
|
4
|
+
|
|
5
|
+
```json
|
|
6
|
+
{
|
|
7
|
+
"context": {
|
|
8
|
+
"gradientConfig": {
|
|
9
|
+
"stops": [
|
|
10
|
+
50,
|
|
11
|
+
100,
|
|
12
|
+
150
|
|
13
|
+
],
|
|
14
|
+
"colors": [
|
|
15
|
+
"red",
|
|
16
|
+
"green",
|
|
17
|
+
"blue"
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"options": {
|
|
22
|
+
"colorOption": "> primary | seriesByIndex(0) | gradient(gradientConfig)",
|
|
23
|
+
"colorOption1": "> primary | seriesByIndex(1) | gradient(gradientConfig)"
|
|
24
|
+
},
|
|
25
|
+
"dataSources": {
|
|
26
|
+
"primary": {
|
|
27
|
+
"columns": [
|
|
28
|
+
[
|
|
29
|
+
0,
|
|
30
|
+
50,
|
|
31
|
+
230
|
|
32
|
+
],
|
|
33
|
+
[
|
|
34
|
+
50,
|
|
35
|
+
100,
|
|
36
|
+
150
|
|
37
|
+
]
|
|
38
|
+
],
|
|
39
|
+
"fields": [
|
|
40
|
+
{
|
|
41
|
+
"name": "foo"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "bar"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Example 2
|
|
53
|
+
|
|
54
|
+
```json
|
|
55
|
+
{
|
|
56
|
+
"context": {
|
|
57
|
+
"gradientConfig": {
|
|
58
|
+
"stops": [
|
|
59
|
+
50,
|
|
60
|
+
100,
|
|
61
|
+
150
|
|
62
|
+
],
|
|
63
|
+
"colors": [
|
|
64
|
+
"red",
|
|
65
|
+
"green",
|
|
66
|
+
"blue"
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"options": {
|
|
71
|
+
"colorOption": "> table | gradient(gradientConfig)"
|
|
72
|
+
},
|
|
73
|
+
"dataSources": {
|
|
74
|
+
"primary": {
|
|
75
|
+
"columns": [
|
|
76
|
+
[
|
|
77
|
+
0,
|
|
78
|
+
50,
|
|
79
|
+
230
|
|
80
|
+
],
|
|
81
|
+
[
|
|
82
|
+
50,
|
|
83
|
+
100,
|
|
84
|
+
150
|
|
85
|
+
]
|
|
86
|
+
],
|
|
87
|
+
"fields": [
|
|
88
|
+
{
|
|
89
|
+
"name": "foo"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "bar"
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
```
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Gradient Formatter Examples
|
|
2
|
+
|
|
3
|
+
## Example 1
|
|
4
|
+
|
|
5
|
+
```jsx
|
|
6
|
+
<SampleViz
|
|
7
|
+
context={{
|
|
8
|
+
gradientConfig: { stops: [50, 100, 150], colors: ['red', 'green', 'blue'] }
|
|
9
|
+
}}
|
|
10
|
+
options={{
|
|
11
|
+
colorOption: '> primary | seriesByIndex(0) | gradient(gradientConfig)' // it maps [0, 50, 230] to ['#7B56DB66', '#FF0000', '#7B56DB']
|
|
12
|
+
colorOption1: '> primary | seriesByIndex(1) | gradient(gradientConfig)' // it maps [50, 100, 150] to ['red', 'green', 'blue']
|
|
13
|
+
}}
|
|
14
|
+
dataSources={{
|
|
15
|
+
data: {
|
|
16
|
+
primary: {
|
|
17
|
+
columns: [[0, 50, 230], [50, 100, 150]],
|
|
18
|
+
fields: [{ name: 'foo' }, { name: 'bar' }]
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}}
|
|
22
|
+
/>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Example 2
|
|
26
|
+
|
|
27
|
+
```jsx
|
|
28
|
+
<SampleViz
|
|
29
|
+
context={{
|
|
30
|
+
gradientConfig: { stops: [50, 100, 150], colors: ['red', 'green', 'blue'] }
|
|
31
|
+
}}
|
|
32
|
+
options={{
|
|
33
|
+
colorOption: '> table | gradient(gradientConfig)'
|
|
34
|
+
}}
|
|
35
|
+
dataSources={{
|
|
36
|
+
data: {
|
|
37
|
+
primary: {
|
|
38
|
+
columns: [[0, 50, 230], [50, 100, 150]],
|
|
39
|
+
fields: [{ name: 'foo' }, { name: 'bar' }]
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}}
|
|
43
|
+
/>
|
|
44
|
+
```
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Gradient Formatter
|
|
2
|
+
|
|
3
|
+
Based on stops and colors, this formatter maps the value to an interpolated color.
|
|
4
|
+
|
|
5
|
+
The `config` follows this criteria: `{ stops: [0, 100, 230], colors: ['red', 'green', 'blue'] }`
|
|
6
|
+
|
|
7
|
+
If no config is specified, the default `colors` are `['rgba(123,86,219,0.4)', 'rgba(123,86,219,1)']`. The default `stops` are dependent on the DataSeries provided.
|
|
8
|
+
|
|
9
|
+
Given a DataSeries with n values, the stops would consist of [min, ...(configured stops), max] if stops values are contained in [min, max] - recommended.
|
|
10
|
+
And min/max map to 'rgba(123,86,219,0.4)'/'rgba(123,86,219,1)', respectively.
|
|
11
|
+
|
|
12
|
+
For example, if 0 < value < 100, the corresponding interpolated color will be between red and green.
|
|
13
|
+
|
|
14
|
+
DataFrame (table) usage:
|
|
15
|
+
When the input is a DataFrame (for example, a table), the formatter computes a global min/max across
|
|
16
|
+
all numeric series in the frame. Those min/max are then used to build stops, and the formatter returns
|
|
17
|
+
a new DataFrame of type `'color'` with each numeric cell mapped to its interpolated color.
|
|
18
|
+
|
|
19
|
+
Minimal DSL example with a DataFrame in context as `table`:
|
|
20
|
+
|
|
21
|
+
If no `stops` are provided, they are derived from the global DataFrame min/max.
|
|
22
|
+
|
|
23
|
+
@extends AbstractFormatter<DataType, DataType>
|