@splunk/visualizations 28.6.0 → 28.7.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/Bar.js +2 -2
- package/Bubble.js +2 -2
- package/CHANGELOG.external.md +19 -50
- package/ChoroplethSvg.js +2 -2
- package/Column.js +2 -2
- package/Ellipse.js +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 +2 -2
- package/Image.js +2 -2
- package/Line.js +2 -2
- package/LinkGraph.js +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.js +23 -6
- package/Markdown.js.map +2 -2
- package/MarkerGauge.js +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/Pie.js +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/README.md +2 -0
- package/Rectangle.js +2 -2
- package/RichText.js +2 -2
- package/Sankey.js +2 -2
- package/Scatter.js +2 -2
- package/SingleValue.js +368 -471
- package/SingleValue.js.map +4 -4
- package/SingleValueIcon.js +2 -2
- package/SingleValueRadial.js +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.map +1 -1
- package/Table/hooks.d.ts +1 -1
- package/Table/hooks.d.ts.map +1 -1
- package/Table.js +391 -493
- package/Table.js.map +4 -4
- package/Timeline.js +2 -2
- package/common/OptionsDoc.js.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/docs-llm/INDEX.md +118 -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 +28 -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 +28 -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 +25 -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/package.json +28 -24
|
@@ -0,0 +1,1028 @@
|
|
|
1
|
+
# Single Value Radial Examples
|
|
2
|
+
|
|
3
|
+
**Component Reference:** Single Value Radial or @splunk/visualizations/SingleValueRadial
|
|
4
|
+
|
|
5
|
+
## Basic Single Value Radial
|
|
6
|
+
|
|
7
|
+
- **Key:** Basic
|
|
8
|
+
|
|
9
|
+
```jsx
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import SingleValueRadial from '@splunk/visualizations/SingleValueRadial';
|
|
12
|
+
|
|
13
|
+
export default () => (
|
|
14
|
+
<SingleValueRadial
|
|
15
|
+
options={{}}
|
|
16
|
+
dataSources={{
|
|
17
|
+
primary: {
|
|
18
|
+
data: {
|
|
19
|
+
columns: [
|
|
20
|
+
['5', '12', '46', '23', '51', '115', '63', '88'],
|
|
21
|
+
[
|
|
22
|
+
'2018-08-19T00:00:00.000+00:00',
|
|
23
|
+
'2018-08-20T00:00:00.000+00:00',
|
|
24
|
+
'2018-08-21T00:00:00.000+00:00',
|
|
25
|
+
'2018-08-22T00:00:00.000+00:00',
|
|
26
|
+
'2018-08-23T00:00:00.000+00:00',
|
|
27
|
+
'2018-08-24T00:00:00.000+00:00',
|
|
28
|
+
'2018-08-25T00:00:00.000+00:00',
|
|
29
|
+
'2018-08-26T00:00:00.000+00:00',
|
|
30
|
+
],
|
|
31
|
+
],
|
|
32
|
+
fields: [
|
|
33
|
+
{
|
|
34
|
+
name: 'foo',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: '_time',
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
},
|
|
41
|
+
meta: {},
|
|
42
|
+
},
|
|
43
|
+
}}
|
|
44
|
+
/>
|
|
45
|
+
);
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Background Color - Red
|
|
49
|
+
|
|
50
|
+
- **Key:** Background Color Red
|
|
51
|
+
|
|
52
|
+
```jsx
|
|
53
|
+
import React from 'react';
|
|
54
|
+
import SingleValueRadial from '@splunk/visualizations/SingleValueRadial';
|
|
55
|
+
|
|
56
|
+
export default () => (
|
|
57
|
+
<SingleValueRadial
|
|
58
|
+
options={{
|
|
59
|
+
backgroundColor: '#ff0000',
|
|
60
|
+
}}
|
|
61
|
+
dataSources={{
|
|
62
|
+
primary: {
|
|
63
|
+
data: {
|
|
64
|
+
columns: [
|
|
65
|
+
['1', '62', '103', '308', '587', '876', '63', '88'],
|
|
66
|
+
[
|
|
67
|
+
'2018-08-19T00:00:00.000+00:00',
|
|
68
|
+
'2018-08-20T00:00:00.000+00:00',
|
|
69
|
+
'2018-08-21T00:00:00.000+00:00',
|
|
70
|
+
'2018-08-22T00:00:00.000+00:00',
|
|
71
|
+
'2018-08-23T00:00:00.000+00:00',
|
|
72
|
+
'2018-08-24T00:00:00.000+00:00',
|
|
73
|
+
'2018-08-25T00:00:00.000+00:00',
|
|
74
|
+
'2018-08-26T00:00:00.000+00:00',
|
|
75
|
+
],
|
|
76
|
+
],
|
|
77
|
+
fields: [
|
|
78
|
+
{
|
|
79
|
+
name: 'foo',
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
name: '_time',
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
},
|
|
86
|
+
meta: {},
|
|
87
|
+
},
|
|
88
|
+
}}
|
|
89
|
+
/>
|
|
90
|
+
);
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## Major Value - Based on Foo Field
|
|
94
|
+
|
|
95
|
+
- **Key:** Radial Field Foo
|
|
96
|
+
|
|
97
|
+
```jsx
|
|
98
|
+
import React from 'react';
|
|
99
|
+
import SingleValueRadial from '@splunk/visualizations/SingleValueRadial';
|
|
100
|
+
|
|
101
|
+
export default () => (
|
|
102
|
+
<SingleValueRadial
|
|
103
|
+
options={{
|
|
104
|
+
majorValue: '> primary | seriesByName("foo") | lastPoint()',
|
|
105
|
+
}}
|
|
106
|
+
dataSources={{
|
|
107
|
+
primary: {
|
|
108
|
+
data: {
|
|
109
|
+
columns: [
|
|
110
|
+
['1', '62', '103', '308', '587', '876', '70', '80'],
|
|
111
|
+
['1', '2', '3', '4', '5', '6', '7', '3200'],
|
|
112
|
+
],
|
|
113
|
+
fields: [
|
|
114
|
+
{
|
|
115
|
+
name: 'foo',
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
name: 'bar',
|
|
119
|
+
},
|
|
120
|
+
],
|
|
121
|
+
},
|
|
122
|
+
meta: {},
|
|
123
|
+
},
|
|
124
|
+
}}
|
|
125
|
+
/>
|
|
126
|
+
);
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
## Major Value - Based on Bar Field
|
|
130
|
+
|
|
131
|
+
- **Key:** Radial Field Bar
|
|
132
|
+
|
|
133
|
+
```jsx
|
|
134
|
+
import React from 'react';
|
|
135
|
+
import SingleValueRadial from '@splunk/visualizations/SingleValueRadial';
|
|
136
|
+
|
|
137
|
+
export default () => (
|
|
138
|
+
<SingleValueRadial
|
|
139
|
+
options={{
|
|
140
|
+
majorValue: '> primary | seriesByName("bar") | lastPoint()',
|
|
141
|
+
}}
|
|
142
|
+
dataSources={{
|
|
143
|
+
primary: {
|
|
144
|
+
data: {
|
|
145
|
+
columns: [
|
|
146
|
+
['1', '62', '103', '308', '587', '876', '70', '80'],
|
|
147
|
+
['1', '2', '3', '4', '5', '6', '7', '3200'],
|
|
148
|
+
],
|
|
149
|
+
fields: [
|
|
150
|
+
{
|
|
151
|
+
name: 'foo',
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
name: 'bar',
|
|
155
|
+
},
|
|
156
|
+
],
|
|
157
|
+
},
|
|
158
|
+
meta: {},
|
|
159
|
+
},
|
|
160
|
+
}}
|
|
161
|
+
/>
|
|
162
|
+
);
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
## Max Value - 1000
|
|
166
|
+
|
|
167
|
+
- **Key:** Radial Max Value
|
|
168
|
+
|
|
169
|
+
```jsx
|
|
170
|
+
import React from 'react';
|
|
171
|
+
import SingleValueRadial from '@splunk/visualizations/SingleValueRadial';
|
|
172
|
+
|
|
173
|
+
export default () => (
|
|
174
|
+
<SingleValueRadial
|
|
175
|
+
options={{
|
|
176
|
+
maxValue: 1000,
|
|
177
|
+
}}
|
|
178
|
+
dataSources={{
|
|
179
|
+
primary: {
|
|
180
|
+
data: {
|
|
181
|
+
columns: [
|
|
182
|
+
['5', '12', '46', '23', '51', '115', '63', '88'],
|
|
183
|
+
[
|
|
184
|
+
'2018-08-19T00:00:00.000+00:00',
|
|
185
|
+
'2018-08-20T00:00:00.000+00:00',
|
|
186
|
+
'2018-08-21T00:00:00.000+00:00',
|
|
187
|
+
'2018-08-22T00:00:00.000+00:00',
|
|
188
|
+
'2018-08-23T00:00:00.000+00:00',
|
|
189
|
+
'2018-08-24T00:00:00.000+00:00',
|
|
190
|
+
'2018-08-25T00:00:00.000+00:00',
|
|
191
|
+
'2018-08-26T00:00:00.000+00:00',
|
|
192
|
+
],
|
|
193
|
+
],
|
|
194
|
+
fields: [
|
|
195
|
+
{
|
|
196
|
+
name: 'foo',
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
name: '_time',
|
|
200
|
+
},
|
|
201
|
+
],
|
|
202
|
+
},
|
|
203
|
+
meta: {},
|
|
204
|
+
},
|
|
205
|
+
}}
|
|
206
|
+
/>
|
|
207
|
+
);
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
## Radial Stroke Color - Flamenco, Radial Background Color - Valencia
|
|
211
|
+
|
|
212
|
+
- **Key:** Radialcolorcustom
|
|
213
|
+
|
|
214
|
+
```jsx
|
|
215
|
+
import React from 'react';
|
|
216
|
+
import SingleValueRadial from '@splunk/visualizations/SingleValueRadial';
|
|
217
|
+
|
|
218
|
+
export default () => (
|
|
219
|
+
<SingleValueRadial
|
|
220
|
+
options={{
|
|
221
|
+
radialBackgroundColor: '#DC4E41',
|
|
222
|
+
radialStrokeColor: '#F1813F',
|
|
223
|
+
}}
|
|
224
|
+
dataSources={{
|
|
225
|
+
primary: {
|
|
226
|
+
data: {
|
|
227
|
+
columns: [
|
|
228
|
+
['5', '12', '46', '23', '51', '115', '63', '88'],
|
|
229
|
+
[
|
|
230
|
+
'2018-08-19T00:00:00.000+00:00',
|
|
231
|
+
'2018-08-20T00:00:00.000+00:00',
|
|
232
|
+
'2018-08-21T00:00:00.000+00:00',
|
|
233
|
+
'2018-08-22T00:00:00.000+00:00',
|
|
234
|
+
'2018-08-23T00:00:00.000+00:00',
|
|
235
|
+
'2018-08-24T00:00:00.000+00:00',
|
|
236
|
+
'2018-08-25T00:00:00.000+00:00',
|
|
237
|
+
'2018-08-26T00:00:00.000+00:00',
|
|
238
|
+
],
|
|
239
|
+
],
|
|
240
|
+
fields: [
|
|
241
|
+
{
|
|
242
|
+
name: 'foo',
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
name: '_time',
|
|
246
|
+
},
|
|
247
|
+
],
|
|
248
|
+
},
|
|
249
|
+
meta: {},
|
|
250
|
+
},
|
|
251
|
+
}}
|
|
252
|
+
/>
|
|
253
|
+
);
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
## Radial Background Color - Based on Data Series Color
|
|
257
|
+
|
|
258
|
+
- **Key:** Radial Color Data Series
|
|
259
|
+
|
|
260
|
+
```jsx
|
|
261
|
+
import React from 'react';
|
|
262
|
+
import SingleValueRadial from '@splunk/visualizations/SingleValueRadial';
|
|
263
|
+
|
|
264
|
+
export default () => (
|
|
265
|
+
<SingleValueRadial
|
|
266
|
+
options={{
|
|
267
|
+
radialBackgroundColor: '> primary | seriesByName("bar") | lastPoint()',
|
|
268
|
+
}}
|
|
269
|
+
dataSources={{
|
|
270
|
+
primary: {
|
|
271
|
+
data: {
|
|
272
|
+
columns: [
|
|
273
|
+
['5', '12', '46', '23', '51', '115', '63', '55'],
|
|
274
|
+
[
|
|
275
|
+
'#FF0000',
|
|
276
|
+
'#00FFFF',
|
|
277
|
+
'#0000FF',
|
|
278
|
+
'#800080',
|
|
279
|
+
'#FFFF00',
|
|
280
|
+
'#FFA500',
|
|
281
|
+
'#A52A2A',
|
|
282
|
+
'#008000',
|
|
283
|
+
],
|
|
284
|
+
],
|
|
285
|
+
fields: [
|
|
286
|
+
{
|
|
287
|
+
name: 'foo',
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
name: 'bar',
|
|
291
|
+
},
|
|
292
|
+
],
|
|
293
|
+
},
|
|
294
|
+
meta: {},
|
|
295
|
+
},
|
|
296
|
+
}}
|
|
297
|
+
/>
|
|
298
|
+
);
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
## Radial Stroke Color - Based on Data Series Color
|
|
302
|
+
|
|
303
|
+
- **Key:** Radial Stroke Color Data Series
|
|
304
|
+
|
|
305
|
+
```jsx
|
|
306
|
+
import React from 'react';
|
|
307
|
+
import SingleValueRadial from '@splunk/visualizations/SingleValueRadial';
|
|
308
|
+
|
|
309
|
+
export default () => (
|
|
310
|
+
<SingleValueRadial
|
|
311
|
+
options={{
|
|
312
|
+
radialStrokeColor: '> primary | seriesByName("bar") | lastPoint()',
|
|
313
|
+
}}
|
|
314
|
+
dataSources={{
|
|
315
|
+
primary: {
|
|
316
|
+
data: {
|
|
317
|
+
columns: [
|
|
318
|
+
['5', '12', '46', '23', '51', '115', '63', '88'],
|
|
319
|
+
[
|
|
320
|
+
'#FF0000',
|
|
321
|
+
'#00FFFF',
|
|
322
|
+
'#0000FF',
|
|
323
|
+
'#800080',
|
|
324
|
+
'#FFFF00',
|
|
325
|
+
'#FFA500',
|
|
326
|
+
'#A52A2A',
|
|
327
|
+
'#008000',
|
|
328
|
+
],
|
|
329
|
+
],
|
|
330
|
+
fields: [
|
|
331
|
+
{
|
|
332
|
+
name: 'foo',
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
name: 'bar',
|
|
336
|
+
},
|
|
337
|
+
],
|
|
338
|
+
},
|
|
339
|
+
meta: {},
|
|
340
|
+
},
|
|
341
|
+
}}
|
|
342
|
+
/>
|
|
343
|
+
);
|
|
344
|
+
```
|
|
345
|
+
|
|
346
|
+
## Trend Display - Percent
|
|
347
|
+
|
|
348
|
+
- **Key:** Radial Trend Mode Percent
|
|
349
|
+
|
|
350
|
+
```jsx
|
|
351
|
+
import React from 'react';
|
|
352
|
+
import SingleValueRadial from '@splunk/visualizations/SingleValueRadial';
|
|
353
|
+
|
|
354
|
+
export default () => (
|
|
355
|
+
<SingleValueRadial
|
|
356
|
+
options={{
|
|
357
|
+
trendDisplay: 'percent',
|
|
358
|
+
}}
|
|
359
|
+
dataSources={{
|
|
360
|
+
primary: {
|
|
361
|
+
data: {
|
|
362
|
+
columns: [
|
|
363
|
+
['5', '12', '46', '23', '51', '115', '63', '88'],
|
|
364
|
+
[
|
|
365
|
+
'2018-08-19T00:00:00.000+00:00',
|
|
366
|
+
'2018-08-20T00:00:00.000+00:00',
|
|
367
|
+
'2018-08-21T00:00:00.000+00:00',
|
|
368
|
+
'2018-08-22T00:00:00.000+00:00',
|
|
369
|
+
'2018-08-23T00:00:00.000+00:00',
|
|
370
|
+
'2018-08-24T00:00:00.000+00:00',
|
|
371
|
+
'2018-08-25T00:00:00.000+00:00',
|
|
372
|
+
'2018-08-26T00:00:00.000+00:00',
|
|
373
|
+
],
|
|
374
|
+
],
|
|
375
|
+
fields: [
|
|
376
|
+
{
|
|
377
|
+
name: 'foo',
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
name: '_time',
|
|
381
|
+
},
|
|
382
|
+
],
|
|
383
|
+
},
|
|
384
|
+
meta: {},
|
|
385
|
+
},
|
|
386
|
+
}}
|
|
387
|
+
/>
|
|
388
|
+
);
|
|
389
|
+
```
|
|
390
|
+
|
|
391
|
+
## Basic Single Value Radial - With Gauge
|
|
392
|
+
|
|
393
|
+
- **Key:** Basicwithgauge
|
|
394
|
+
|
|
395
|
+
```jsx
|
|
396
|
+
import React from 'react';
|
|
397
|
+
import SingleValueRadial from '@splunk/visualizations/SingleValueRadial';
|
|
398
|
+
|
|
399
|
+
export default () => (
|
|
400
|
+
<SingleValueRadial
|
|
401
|
+
options={{
|
|
402
|
+
isGaugeOn: true,
|
|
403
|
+
gaugeRanges: [
|
|
404
|
+
{
|
|
405
|
+
to: 50,
|
|
406
|
+
value: '#118832',
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
from: 50,
|
|
410
|
+
to: 90,
|
|
411
|
+
value: '#CBA700',
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
from: 90,
|
|
415
|
+
value: '#D41F1F',
|
|
416
|
+
},
|
|
417
|
+
],
|
|
418
|
+
}}
|
|
419
|
+
dataSources={{
|
|
420
|
+
primary: {
|
|
421
|
+
data: {
|
|
422
|
+
columns: [
|
|
423
|
+
['5', '12', '46', '23', '51', '115', '63', '88'],
|
|
424
|
+
[
|
|
425
|
+
'2018-08-19T00:00:00.000+00:00',
|
|
426
|
+
'2018-08-20T00:00:00.000+00:00',
|
|
427
|
+
'2018-08-21T00:00:00.000+00:00',
|
|
428
|
+
'2018-08-22T00:00:00.000+00:00',
|
|
429
|
+
'2018-08-23T00:00:00.000+00:00',
|
|
430
|
+
'2018-08-24T00:00:00.000+00:00',
|
|
431
|
+
'2018-08-25T00:00:00.000+00:00',
|
|
432
|
+
'2018-08-26T00:00:00.000+00:00',
|
|
433
|
+
],
|
|
434
|
+
],
|
|
435
|
+
fields: [
|
|
436
|
+
{
|
|
437
|
+
name: 'foo',
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
name: '_time',
|
|
441
|
+
},
|
|
442
|
+
],
|
|
443
|
+
},
|
|
444
|
+
meta: {},
|
|
445
|
+
},
|
|
446
|
+
}}
|
|
447
|
+
/>
|
|
448
|
+
);
|
|
449
|
+
```
|
|
450
|
+
|
|
451
|
+
## Background Color - Red - With Gauge
|
|
452
|
+
|
|
453
|
+
- **Key:** Background Color Red With Gauge
|
|
454
|
+
|
|
455
|
+
```jsx
|
|
456
|
+
import React from 'react';
|
|
457
|
+
import SingleValueRadial from '@splunk/visualizations/SingleValueRadial';
|
|
458
|
+
|
|
459
|
+
export default () => (
|
|
460
|
+
<SingleValueRadial
|
|
461
|
+
options={{
|
|
462
|
+
backgroundColor: '#ff0000',
|
|
463
|
+
isGaugeOn: true,
|
|
464
|
+
gaugeRanges: [
|
|
465
|
+
{
|
|
466
|
+
to: 50,
|
|
467
|
+
value: '#118832',
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
from: 50,
|
|
471
|
+
to: 90,
|
|
472
|
+
value: '#CBA700',
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
from: 90,
|
|
476
|
+
value: '#D41F1F',
|
|
477
|
+
},
|
|
478
|
+
],
|
|
479
|
+
}}
|
|
480
|
+
dataSources={{
|
|
481
|
+
primary: {
|
|
482
|
+
data: {
|
|
483
|
+
columns: [
|
|
484
|
+
['1', '62', '103', '308', '587', '876', '63', '88'],
|
|
485
|
+
[
|
|
486
|
+
'2018-08-19T00:00:00.000+00:00',
|
|
487
|
+
'2018-08-20T00:00:00.000+00:00',
|
|
488
|
+
'2018-08-21T00:00:00.000+00:00',
|
|
489
|
+
'2018-08-22T00:00:00.000+00:00',
|
|
490
|
+
'2018-08-23T00:00:00.000+00:00',
|
|
491
|
+
'2018-08-24T00:00:00.000+00:00',
|
|
492
|
+
'2018-08-25T00:00:00.000+00:00',
|
|
493
|
+
'2018-08-26T00:00:00.000+00:00',
|
|
494
|
+
],
|
|
495
|
+
],
|
|
496
|
+
fields: [
|
|
497
|
+
{
|
|
498
|
+
name: 'foo',
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
name: '_time',
|
|
502
|
+
},
|
|
503
|
+
],
|
|
504
|
+
},
|
|
505
|
+
meta: {},
|
|
506
|
+
},
|
|
507
|
+
}}
|
|
508
|
+
/>
|
|
509
|
+
);
|
|
510
|
+
```
|
|
511
|
+
|
|
512
|
+
## Major Value and Trend Value - Based on majorValueDisplay
|
|
513
|
+
|
|
514
|
+
- **Key:** Majorvaluebasedonmajorvaluedisplay
|
|
515
|
+
|
|
516
|
+
```jsx
|
|
517
|
+
import React from 'react';
|
|
518
|
+
import SingleValueRadial from '@splunk/visualizations/SingleValueRadial';
|
|
519
|
+
|
|
520
|
+
export default () => (
|
|
521
|
+
<SingleValueRadial
|
|
522
|
+
options={{
|
|
523
|
+
trendValue: '> primary | seriesByName("ingested_bytes") | delta(-2)',
|
|
524
|
+
trendDisplay: 'percent',
|
|
525
|
+
majorValue: '> primary | seriesByName("ingested_bytes") | lastPoint()',
|
|
526
|
+
majorValueDisplay: '> majorValue | formatByType(byteFormatConfig)',
|
|
527
|
+
}}
|
|
528
|
+
context={{
|
|
529
|
+
byteFormatConfig: {
|
|
530
|
+
number: {
|
|
531
|
+
output: 'byte',
|
|
532
|
+
base: 'decimal',
|
|
533
|
+
mantissa: 2,
|
|
534
|
+
},
|
|
535
|
+
},
|
|
536
|
+
}}
|
|
537
|
+
dataSources={{
|
|
538
|
+
primary: {
|
|
539
|
+
requestParams: { offset: 0, count: 20 },
|
|
540
|
+
data: {
|
|
541
|
+
columns: [['154305299', '126949782']],
|
|
542
|
+
fields: [
|
|
543
|
+
{
|
|
544
|
+
name: 'ingested_bytes',
|
|
545
|
+
},
|
|
546
|
+
],
|
|
547
|
+
},
|
|
548
|
+
meta: {},
|
|
549
|
+
},
|
|
550
|
+
}}
|
|
551
|
+
/>
|
|
552
|
+
);
|
|
553
|
+
```
|
|
554
|
+
|
|
555
|
+
## Major Value - Based on Foo Field - With Gauge
|
|
556
|
+
|
|
557
|
+
- **Key:** Radial Field Foo With Gauge
|
|
558
|
+
|
|
559
|
+
```jsx
|
|
560
|
+
import React from 'react';
|
|
561
|
+
import SingleValueRadial from '@splunk/visualizations/SingleValueRadial';
|
|
562
|
+
|
|
563
|
+
export default () => (
|
|
564
|
+
<SingleValueRadial
|
|
565
|
+
options={{
|
|
566
|
+
majorValue: '> primary | seriesByName("foo") | lastPoint()',
|
|
567
|
+
isGaugeOn: true,
|
|
568
|
+
gaugeRanges: [
|
|
569
|
+
{
|
|
570
|
+
to: 50,
|
|
571
|
+
value: '#118832',
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
from: 50,
|
|
575
|
+
to: 90,
|
|
576
|
+
value: '#CBA700',
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
from: 90,
|
|
580
|
+
value: '#D41F1F',
|
|
581
|
+
},
|
|
582
|
+
],
|
|
583
|
+
}}
|
|
584
|
+
dataSources={{
|
|
585
|
+
primary: {
|
|
586
|
+
data: {
|
|
587
|
+
columns: [
|
|
588
|
+
['1', '62', '103', '308', '587', '876', '70', '80'],
|
|
589
|
+
['1', '2', '3', '4', '5', '6', '7', '3200'],
|
|
590
|
+
],
|
|
591
|
+
fields: [
|
|
592
|
+
{
|
|
593
|
+
name: 'foo',
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
name: 'bar',
|
|
597
|
+
},
|
|
598
|
+
],
|
|
599
|
+
},
|
|
600
|
+
meta: {},
|
|
601
|
+
},
|
|
602
|
+
}}
|
|
603
|
+
/>
|
|
604
|
+
);
|
|
605
|
+
```
|
|
606
|
+
|
|
607
|
+
## Major Value - Based on Bar Field - With Gauge
|
|
608
|
+
|
|
609
|
+
- **Key:** Radial Field Bar With Gauge
|
|
610
|
+
|
|
611
|
+
```jsx
|
|
612
|
+
import React from 'react';
|
|
613
|
+
import SingleValueRadial from '@splunk/visualizations/SingleValueRadial';
|
|
614
|
+
|
|
615
|
+
export default () => (
|
|
616
|
+
<SingleValueRadial
|
|
617
|
+
options={{
|
|
618
|
+
majorValue: '> primary | seriesByName("bar") | lastPoint()',
|
|
619
|
+
isGaugeOn: true,
|
|
620
|
+
gaugeRanges: [
|
|
621
|
+
{
|
|
622
|
+
to: 50,
|
|
623
|
+
value: '#118832',
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
from: 50,
|
|
627
|
+
to: 90,
|
|
628
|
+
value: '#CBA700',
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
from: 90,
|
|
632
|
+
value: '#D41F1F',
|
|
633
|
+
},
|
|
634
|
+
],
|
|
635
|
+
}}
|
|
636
|
+
dataSources={{
|
|
637
|
+
primary: {
|
|
638
|
+
data: {
|
|
639
|
+
columns: [
|
|
640
|
+
['1', '62', '103', '308', '587', '876', '70', '80'],
|
|
641
|
+
['1', '2', '3', '4', '5', '6', '7', '3200'],
|
|
642
|
+
],
|
|
643
|
+
fields: [
|
|
644
|
+
{
|
|
645
|
+
name: 'foo',
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
name: 'bar',
|
|
649
|
+
},
|
|
650
|
+
],
|
|
651
|
+
},
|
|
652
|
+
meta: {},
|
|
653
|
+
},
|
|
654
|
+
}}
|
|
655
|
+
/>
|
|
656
|
+
);
|
|
657
|
+
```
|
|
658
|
+
|
|
659
|
+
## Radial Background Color - Based on Data Series Color - With Gauge
|
|
660
|
+
|
|
661
|
+
- **Key:** Radial Color Data Series With Gauge
|
|
662
|
+
|
|
663
|
+
```jsx
|
|
664
|
+
import React from 'react';
|
|
665
|
+
import SingleValueRadial from '@splunk/visualizations/SingleValueRadial';
|
|
666
|
+
|
|
667
|
+
export default () => (
|
|
668
|
+
<SingleValueRadial
|
|
669
|
+
options={{
|
|
670
|
+
radialBackgroundColor: '> primary | seriesByName("bar") | lastPoint()',
|
|
671
|
+
isGaugeOn: true,
|
|
672
|
+
gaugeRanges: [
|
|
673
|
+
{
|
|
674
|
+
to: 50,
|
|
675
|
+
value: '#118832',
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
from: 50,
|
|
679
|
+
to: 90,
|
|
680
|
+
value: '#CBA700',
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
from: 90,
|
|
684
|
+
value: '#D41F1F',
|
|
685
|
+
},
|
|
686
|
+
],
|
|
687
|
+
}}
|
|
688
|
+
dataSources={{
|
|
689
|
+
primary: {
|
|
690
|
+
data: {
|
|
691
|
+
columns: [
|
|
692
|
+
['5', '12', '46', '23', '51', '115', '63', '55'],
|
|
693
|
+
[
|
|
694
|
+
'#FF0000',
|
|
695
|
+
'#00FFFF',
|
|
696
|
+
'#0000FF',
|
|
697
|
+
'#800080',
|
|
698
|
+
'#FFFF00',
|
|
699
|
+
'#FFA500',
|
|
700
|
+
'#A52A2A',
|
|
701
|
+
'#008000',
|
|
702
|
+
],
|
|
703
|
+
],
|
|
704
|
+
fields: [
|
|
705
|
+
{
|
|
706
|
+
name: 'foo',
|
|
707
|
+
},
|
|
708
|
+
{
|
|
709
|
+
name: 'bar',
|
|
710
|
+
},
|
|
711
|
+
],
|
|
712
|
+
},
|
|
713
|
+
meta: {},
|
|
714
|
+
},
|
|
715
|
+
}}
|
|
716
|
+
/>
|
|
717
|
+
);
|
|
718
|
+
```
|
|
719
|
+
|
|
720
|
+
## Trend Display - Percent - With Gauge
|
|
721
|
+
|
|
722
|
+
- **Key:** Radial Trend Mode Percent With Gauge
|
|
723
|
+
|
|
724
|
+
```jsx
|
|
725
|
+
import React from 'react';
|
|
726
|
+
import SingleValueRadial from '@splunk/visualizations/SingleValueRadial';
|
|
727
|
+
|
|
728
|
+
export default () => (
|
|
729
|
+
<SingleValueRadial
|
|
730
|
+
options={{
|
|
731
|
+
trendDisplay: 'percent',
|
|
732
|
+
isGaugeOn: true,
|
|
733
|
+
gaugeRanges: [
|
|
734
|
+
{
|
|
735
|
+
to: 50,
|
|
736
|
+
value: '#118832',
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
from: 50,
|
|
740
|
+
to: 90,
|
|
741
|
+
value: '#CBA700',
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
from: 90,
|
|
745
|
+
value: '#D41F1F',
|
|
746
|
+
},
|
|
747
|
+
],
|
|
748
|
+
}}
|
|
749
|
+
dataSources={{
|
|
750
|
+
primary: {
|
|
751
|
+
data: {
|
|
752
|
+
columns: [
|
|
753
|
+
['5', '12', '46', '23', '51', '115', '63', '88'],
|
|
754
|
+
[
|
|
755
|
+
'2018-08-19T00:00:00.000+00:00',
|
|
756
|
+
'2018-08-20T00:00:00.000+00:00',
|
|
757
|
+
'2018-08-21T00:00:00.000+00:00',
|
|
758
|
+
'2018-08-22T00:00:00.000+00:00',
|
|
759
|
+
'2018-08-23T00:00:00.000+00:00',
|
|
760
|
+
'2018-08-24T00:00:00.000+00:00',
|
|
761
|
+
'2018-08-25T00:00:00.000+00:00',
|
|
762
|
+
'2018-08-26T00:00:00.000+00:00',
|
|
763
|
+
],
|
|
764
|
+
],
|
|
765
|
+
fields: [
|
|
766
|
+
{
|
|
767
|
+
name: 'foo',
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
name: '_time',
|
|
771
|
+
},
|
|
772
|
+
],
|
|
773
|
+
},
|
|
774
|
+
meta: {},
|
|
775
|
+
},
|
|
776
|
+
}}
|
|
777
|
+
/>
|
|
778
|
+
);
|
|
779
|
+
```
|
|
780
|
+
|
|
781
|
+
## One Gauge Range
|
|
782
|
+
|
|
783
|
+
- **Key:** One Gauge Range
|
|
784
|
+
|
|
785
|
+
```jsx
|
|
786
|
+
import React from 'react';
|
|
787
|
+
import SingleValueRadial from '@splunk/visualizations/SingleValueRadial';
|
|
788
|
+
|
|
789
|
+
export default () => (
|
|
790
|
+
<SingleValueRadial
|
|
791
|
+
options={{
|
|
792
|
+
isGaugeOn: true,
|
|
793
|
+
gaugeRanges: [
|
|
794
|
+
{
|
|
795
|
+
to: 30,
|
|
796
|
+
value: '#118832',
|
|
797
|
+
},
|
|
798
|
+
{
|
|
799
|
+
from: 30,
|
|
800
|
+
to: 50,
|
|
801
|
+
value: '#118832',
|
|
802
|
+
},
|
|
803
|
+
{
|
|
804
|
+
from: 50,
|
|
805
|
+
value: '#118832',
|
|
806
|
+
},
|
|
807
|
+
],
|
|
808
|
+
minValue: 30,
|
|
809
|
+
maxValue: 50,
|
|
810
|
+
}}
|
|
811
|
+
dataSources={{
|
|
812
|
+
primary: {
|
|
813
|
+
data: {
|
|
814
|
+
columns: [
|
|
815
|
+
['5', '12', '46', '23', '51', '115', '63', '88'],
|
|
816
|
+
[
|
|
817
|
+
'2018-08-19T00:00:00.000+00:00',
|
|
818
|
+
'2018-08-20T00:00:00.000+00:00',
|
|
819
|
+
'2018-08-21T00:00:00.000+00:00',
|
|
820
|
+
'2018-08-22T00:00:00.000+00:00',
|
|
821
|
+
'2018-08-23T00:00:00.000+00:00',
|
|
822
|
+
'2018-08-24T00:00:00.000+00:00',
|
|
823
|
+
'2018-08-25T00:00:00.000+00:00',
|
|
824
|
+
'2018-08-26T00:00:00.000+00:00',
|
|
825
|
+
],
|
|
826
|
+
],
|
|
827
|
+
fields: [
|
|
828
|
+
{
|
|
829
|
+
name: 'foo',
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
name: '_time',
|
|
833
|
+
},
|
|
834
|
+
],
|
|
835
|
+
},
|
|
836
|
+
meta: {},
|
|
837
|
+
},
|
|
838
|
+
}}
|
|
839
|
+
/>
|
|
840
|
+
);
|
|
841
|
+
```
|
|
842
|
+
|
|
843
|
+
## Five Gauge Ranges
|
|
844
|
+
|
|
845
|
+
- **Key:** Five Gauge Ranges
|
|
846
|
+
|
|
847
|
+
```jsx
|
|
848
|
+
import React from 'react';
|
|
849
|
+
import SingleValueRadial from '@splunk/visualizations/SingleValueRadial';
|
|
850
|
+
|
|
851
|
+
export default () => (
|
|
852
|
+
<SingleValueRadial
|
|
853
|
+
options={{
|
|
854
|
+
isGaugeOn: true,
|
|
855
|
+
gaugeRanges: [
|
|
856
|
+
{
|
|
857
|
+
to: 25,
|
|
858
|
+
value: '#2CBA00',
|
|
859
|
+
},
|
|
860
|
+
{
|
|
861
|
+
from: 25,
|
|
862
|
+
to: 50,
|
|
863
|
+
value: '#A3FF00',
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
from: 50,
|
|
867
|
+
to: 100,
|
|
868
|
+
value: '#FFF400',
|
|
869
|
+
},
|
|
870
|
+
{
|
|
871
|
+
from: 100,
|
|
872
|
+
to: 175,
|
|
873
|
+
value: '#FFA700',
|
|
874
|
+
},
|
|
875
|
+
{
|
|
876
|
+
from: 175,
|
|
877
|
+
value: '#FF0000',
|
|
878
|
+
},
|
|
879
|
+
],
|
|
880
|
+
maxValue: 200,
|
|
881
|
+
}}
|
|
882
|
+
dataSources={{
|
|
883
|
+
primary: {
|
|
884
|
+
data: {
|
|
885
|
+
columns: [
|
|
886
|
+
['5', '12', '46', '23', '51', '115', '63', '88'],
|
|
887
|
+
[
|
|
888
|
+
'2018-08-19T00:00:00.000+00:00',
|
|
889
|
+
'2018-08-20T00:00:00.000+00:00',
|
|
890
|
+
'2018-08-21T00:00:00.000+00:00',
|
|
891
|
+
'2018-08-22T00:00:00.000+00:00',
|
|
892
|
+
'2018-08-23T00:00:00.000+00:00',
|
|
893
|
+
'2018-08-24T00:00:00.000+00:00',
|
|
894
|
+
'2018-08-25T00:00:00.000+00:00',
|
|
895
|
+
'2018-08-26T00:00:00.000+00:00',
|
|
896
|
+
],
|
|
897
|
+
],
|
|
898
|
+
fields: [
|
|
899
|
+
{
|
|
900
|
+
name: 'foo',
|
|
901
|
+
},
|
|
902
|
+
{
|
|
903
|
+
name: '_time',
|
|
904
|
+
},
|
|
905
|
+
],
|
|
906
|
+
},
|
|
907
|
+
meta: {},
|
|
908
|
+
},
|
|
909
|
+
}}
|
|
910
|
+
/>
|
|
911
|
+
);
|
|
912
|
+
```
|
|
913
|
+
|
|
914
|
+
## Trellis
|
|
915
|
+
|
|
916
|
+
- **Key:** Trellis
|
|
917
|
+
|
|
918
|
+
```jsx
|
|
919
|
+
import React from 'react';
|
|
920
|
+
import { FeatureFlagContextProvider } from '@splunk/visualization-context/FeatureFlagContext';
|
|
921
|
+
import SingleValueRadial from '@splunk/visualizations/SingleValueRadial';
|
|
922
|
+
|
|
923
|
+
export default () => (
|
|
924
|
+
<FeatureFlagContextProvider value={{ visualizations_enableTrellis: true }}>
|
|
925
|
+
<SingleValueRadial
|
|
926
|
+
height={250}
|
|
927
|
+
options={{
|
|
928
|
+
splitByLayout: 'trellis',
|
|
929
|
+
trellisSplitBy: 'component',
|
|
930
|
+
trellisColumns: 3,
|
|
931
|
+
trellis: {
|
|
932
|
+
minColumnWidth: 400,
|
|
933
|
+
},
|
|
934
|
+
}}
|
|
935
|
+
dataSources={{
|
|
936
|
+
primary: {
|
|
937
|
+
data: {
|
|
938
|
+
fields: [
|
|
939
|
+
{
|
|
940
|
+
name: 'component',
|
|
941
|
+
groupby_rank: '0',
|
|
942
|
+
},
|
|
943
|
+
{
|
|
944
|
+
name: 'foo',
|
|
945
|
+
},
|
|
946
|
+
{
|
|
947
|
+
name: 'bar',
|
|
948
|
+
},
|
|
949
|
+
],
|
|
950
|
+
columns: [
|
|
951
|
+
['Database', 'API', 'Cache', 'Queue', 'Frontend', 'Backend'],
|
|
952
|
+
['55', '72', '64', '80', '68', '75'],
|
|
953
|
+
['110', '121', '107', '134', '115', '125'],
|
|
954
|
+
],
|
|
955
|
+
},
|
|
956
|
+
meta: {},
|
|
957
|
+
},
|
|
958
|
+
}}
|
|
959
|
+
/>
|
|
960
|
+
</FeatureFlagContextProvider>
|
|
961
|
+
);
|
|
962
|
+
```
|
|
963
|
+
|
|
964
|
+
## Trellis - With Gauge
|
|
965
|
+
|
|
966
|
+
- **Key:** Trellis With Gauge
|
|
967
|
+
|
|
968
|
+
```jsx
|
|
969
|
+
import React from 'react';
|
|
970
|
+
import { FeatureFlagContextProvider } from '@splunk/visualization-context/FeatureFlagContext';
|
|
971
|
+
import SingleValueRadial from '@splunk/visualizations/SingleValueRadial';
|
|
972
|
+
|
|
973
|
+
export default () => (
|
|
974
|
+
<FeatureFlagContextProvider value={{ visualizations_enableTrellis: true }}>
|
|
975
|
+
<SingleValueRadial
|
|
976
|
+
height={250}
|
|
977
|
+
options={{
|
|
978
|
+
splitByLayout: 'trellis',
|
|
979
|
+
trellisSplitBy: 'component',
|
|
980
|
+
isGaugeOn: true,
|
|
981
|
+
gaugeRanges: [
|
|
982
|
+
{
|
|
983
|
+
to: 50,
|
|
984
|
+
value: '#118832',
|
|
985
|
+
},
|
|
986
|
+
{
|
|
987
|
+
from: 50,
|
|
988
|
+
to: 90,
|
|
989
|
+
value: '#CBA700',
|
|
990
|
+
},
|
|
991
|
+
{
|
|
992
|
+
from: 90,
|
|
993
|
+
value: '#D41F1F',
|
|
994
|
+
},
|
|
995
|
+
],
|
|
996
|
+
trellisColumns: 3,
|
|
997
|
+
trellis: {
|
|
998
|
+
minColumnWidth: 400,
|
|
999
|
+
},
|
|
1000
|
+
}}
|
|
1001
|
+
dataSources={{
|
|
1002
|
+
primary: {
|
|
1003
|
+
data: {
|
|
1004
|
+
fields: [
|
|
1005
|
+
{
|
|
1006
|
+
name: 'component',
|
|
1007
|
+
groupby_rank: '0',
|
|
1008
|
+
},
|
|
1009
|
+
{
|
|
1010
|
+
name: 'foo',
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
name: 'bar',
|
|
1014
|
+
},
|
|
1015
|
+
],
|
|
1016
|
+
columns: [
|
|
1017
|
+
['Database', 'API', 'Cache', 'Queue', 'Frontend', 'Backend'],
|
|
1018
|
+
['55', '72', '64', '80', '68', '75'],
|
|
1019
|
+
['110', '121', '107', '134', '115', '125'],
|
|
1020
|
+
],
|
|
1021
|
+
},
|
|
1022
|
+
meta: {},
|
|
1023
|
+
},
|
|
1024
|
+
}}
|
|
1025
|
+
/>
|
|
1026
|
+
</FeatureFlagContextProvider>
|
|
1027
|
+
);
|
|
1028
|
+
```
|