@splunk/visualizations 28.5.3 → 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.
Files changed (663) hide show
  1. package/Area/Area.d.ts.map +1 -1
  2. package/Area/areaUtils.d.ts +1 -1
  3. package/Area/areaUtils.d.ts.map +1 -1
  4. package/Area/config.d.ts.map +1 -1
  5. package/Area.config.js +93 -25
  6. package/Area.config.js.map +3 -3
  7. package/Area.js +708 -319
  8. package/Area.js.map +4 -4
  9. package/Bar/Bar.d.ts.map +1 -1
  10. package/Bar.config.js +81 -24
  11. package/Bar.config.js.map +3 -3
  12. package/Bar.js +528 -297
  13. package/Bar.js.map +4 -4
  14. package/Bubble.config.js +80 -23
  15. package/Bubble.config.js.map +2 -2
  16. package/Bubble.js +375 -208
  17. package/Bubble.js.map +4 -4
  18. package/CHANGELOG.external.md +75 -60
  19. package/ChoroplethSvg/PureChoroplethSvg/PureChoroplethSvg.d.ts +1 -0
  20. package/ChoroplethSvg/PureChoroplethSvg/PureChoroplethSvg.d.ts.map +1 -1
  21. package/ChoroplethSvg/PureChoroplethSvg/SvgChoroplethDynamic.d.ts +12 -25
  22. package/ChoroplethSvg/PureChoroplethSvg/SvgChoroplethDynamic.d.ts.map +1 -1
  23. package/ChoroplethSvg/PureChoroplethSvg/SvgMutator.d.ts +11 -4
  24. package/ChoroplethSvg/PureChoroplethSvg/SvgMutator.d.ts.map +1 -1
  25. package/ChoroplethSvg.js +1133 -253
  26. package/ChoroplethSvg.js.map +4 -4
  27. package/Column/Column.d.ts.map +1 -1
  28. package/Column.config.js +81 -24
  29. package/Column.config.js.map +3 -3
  30. package/Column.js +531 -300
  31. package/Column.js.map +4 -4
  32. package/Ellipse.config.js +1 -1
  33. package/Ellipse.config.js.map +2 -2
  34. package/Ellipse.js +277 -161
  35. package/Ellipse.js.map +4 -4
  36. package/Events/PureEvents/FieldSummaryTooltip.d.ts +8 -31
  37. package/Events/PureEvents/FieldSummaryTooltip.d.ts.map +1 -1
  38. package/Events/PureEvents/PureEvents.d.ts.map +1 -1
  39. package/Events/PureEvents/TimeControlsPopover.d.ts +6 -25
  40. package/Events/PureEvents/TimeControlsPopover.d.ts.map +1 -1
  41. package/Events/config.d.ts.map +1 -1
  42. package/Events.config.js +13 -3
  43. package/Events.config.js.map +2 -2
  44. package/Events.js +355 -293
  45. package/Events.js.map +4 -4
  46. package/FillerGauge/FillerGauge.d.ts.map +1 -1
  47. package/FillerGauge/config.d.ts.map +1 -1
  48. package/FillerGauge.config.js +76 -24
  49. package/FillerGauge.config.js.map +2 -2
  50. package/FillerGauge.js +512 -271
  51. package/FillerGauge.js.map +4 -4
  52. package/Image/config.d.ts.map +1 -1
  53. package/Image.config.js +7 -0
  54. package/Image.config.js.map +2 -2
  55. package/Image.js +282 -149
  56. package/Image.js.map +4 -4
  57. package/LICENSE +13 -0
  58. package/Line/Line.d.ts.map +1 -1
  59. package/Line/config.d.ts.map +1 -1
  60. package/Line/lineUtils.d.ts.map +1 -1
  61. package/Line/mockdata/LineData.d.ts +21 -0
  62. package/Line/mockdata/LineData.d.ts.map +1 -1
  63. package/Line.config.js +86 -25
  64. package/Line.config.js.map +3 -3
  65. package/Line.js +638 -382
  66. package/Line.js.map +4 -4
  67. package/LinkGraph/PureLinkGraph/PureLinkGraph.d.ts +47 -73
  68. package/LinkGraph/PureLinkGraph/PureLinkGraph.d.ts.map +1 -1
  69. package/LinkGraph/PureLinkGraph/PureLinkGraphUtils.d.ts +11 -2
  70. package/LinkGraph/PureLinkGraph/PureLinkGraphUtils.d.ts.map +1 -1
  71. package/LinkGraph/PureLinkGraph/components/Graph.d.ts +5 -5
  72. package/LinkGraph/PureLinkGraph/components/Node.d.ts +2 -2
  73. package/LinkGraph/PureLinkGraph/components/Nodes.d.ts +2 -2
  74. package/LinkGraph.js +886 -759
  75. package/LinkGraph.js.map +4 -4
  76. package/Map/Map.d.ts +1 -0
  77. package/Map/Map.d.ts.map +1 -1
  78. package/Map/PureMap/BubbleLayer.d.ts +22 -4
  79. package/Map/PureMap/BubbleLayer.d.ts.map +1 -1
  80. package/Map/PureMap/ChoroplethLayer.d.ts +9 -1
  81. package/Map/PureMap/ChoroplethLayer.d.ts.map +1 -1
  82. package/Map/PureMap/ClusterLayer.d.ts +3 -1
  83. package/Map/PureMap/ClusterLayer.d.ts.map +1 -1
  84. package/Map/PureMap/LocalChoroplethLayer.d.ts +1 -0
  85. package/Map/PureMap/LocalChoroplethLayer.d.ts.map +1 -1
  86. package/Map/PureMap/MapContext.d.ts +13 -0
  87. package/Map/PureMap/MapContext.d.ts.map +1 -0
  88. package/Map/PureMap/MarkerLayer.d.ts +19 -2
  89. package/Map/PureMap/MarkerLayer.d.ts.map +1 -1
  90. package/Map/PureMap/MarkerWrapper.d.ts +3 -2
  91. package/Map/PureMap/MarkerWrapper.d.ts.map +1 -1
  92. package/Map/PureMap/PureMap.d.ts +1 -0
  93. package/Map/PureMap/PureMap.d.ts.map +1 -1
  94. package/Map/PureMap/PureMapContainer.d.ts.map +1 -1
  95. package/Map/PureMap/Tooltip.d.ts +6 -1
  96. package/Map/PureMap/Tooltip.d.ts.map +1 -1
  97. package/Map/PureMap/keyboardConstants.d.ts +11 -0
  98. package/Map/PureMap/keyboardConstants.d.ts.map +1 -0
  99. package/Map/PureMap/useRovingTabindex.d.ts +18 -0
  100. package/Map/PureMap/useRovingTabindex.d.ts.map +1 -0
  101. package/Map/config.d.ts.map +1 -1
  102. package/Map.config.js +4 -1
  103. package/Map.config.js.map +2 -2
  104. package/Map.js +1594 -628
  105. package/Map.js.map +4 -4
  106. package/Markdown/Markdown.d.ts.map +1 -1
  107. package/Markdown.config.js.map +1 -1
  108. package/Markdown.js +304 -161
  109. package/Markdown.js.map +4 -4
  110. package/MarkerGauge/MarkerGauge.d.ts +1 -47
  111. package/MarkerGauge/MarkerGauge.d.ts.map +1 -1
  112. package/MarkerGauge/PureMarkerGauge/MarkerGauge.d.ts +22 -68
  113. package/MarkerGauge/PureMarkerGauge/MarkerGauge.d.ts.map +1 -1
  114. package/MarkerGauge/config.d.ts.map +1 -1
  115. package/MarkerGauge.config.js +75 -23
  116. package/MarkerGauge.config.js.map +2 -2
  117. package/MarkerGauge.js +560 -375
  118. package/MarkerGauge.js.map +4 -4
  119. package/NetworkGraph/NetworkGraph.d.ts +2 -5
  120. package/NetworkGraph/NetworkGraph.d.ts.map +1 -1
  121. package/NetworkGraph/PureNetworkGraph/PureNetworkGraph.d.ts.map +1 -1
  122. package/NetworkGraph/PureNetworkGraph/components/NetworkGraphSvg.d.ts +1 -0
  123. package/NetworkGraph/PureNetworkGraph/components/NetworkGraphSvg.d.ts.map +1 -1
  124. package/NetworkGraph/PureNetworkGraph/components/Node.d.ts +1 -0
  125. package/NetworkGraph/PureNetworkGraph/components/Node.d.ts.map +1 -1
  126. package/NetworkGraph/PureNetworkGraph/components/Tooltip.d.ts +1 -1
  127. package/NetworkGraph/PureNetworkGraph/components/Tooltip.d.ts.map +1 -1
  128. package/NetworkGraph/PureNetworkGraph/components/ZoomControls.d.ts +1 -0
  129. package/NetworkGraph/PureNetworkGraph/components/ZoomControls.d.ts.map +1 -1
  130. package/NetworkGraph/PureNetworkGraph/utils/networkGraphUtils.d.ts +23 -0
  131. package/NetworkGraph/PureNetworkGraph/utils/networkGraphUtils.d.ts.map +1 -1
  132. package/NetworkGraph.config.js +2 -0
  133. package/NetworkGraph.config.js.map +2 -2
  134. package/NetworkGraph.js +895 -455
  135. package/NetworkGraph.js.map +4 -4
  136. package/ParallelCoordinates.config.js.map +1 -1
  137. package/ParallelCoordinates.js +288 -172
  138. package/ParallelCoordinates.js.map +4 -4
  139. package/Pie/Pie.d.ts.map +1 -1
  140. package/Pie/pieUtils.d.ts +2 -2
  141. package/Pie.config.js +74 -22
  142. package/Pie.config.js.map +2 -2
  143. package/Pie.js +522 -296
  144. package/Pie.js.map +4 -4
  145. package/ProcessTree/ProcessTree.d.ts +23 -0
  146. package/ProcessTree/ProcessTree.d.ts.map +1 -0
  147. package/ProcessTree/PureProcessTree/PureProcessTree.d.ts +33 -0
  148. package/ProcessTree/PureProcessTree/PureProcessTree.d.ts.map +1 -0
  149. package/ProcessTree/PureProcessTree/components/DirectionalBytes.d.ts +8 -0
  150. package/ProcessTree/PureProcessTree/components/DirectionalBytes.d.ts.map +1 -0
  151. package/ProcessTree/PureProcessTree/components/ProcessTreeLeftPanel.d.ts +46 -0
  152. package/ProcessTree/PureProcessTree/components/ProcessTreeLeftPanel.d.ts.map +1 -0
  153. package/ProcessTree/PureProcessTree/components/ProcessTreeRightPanel.d.ts +20 -0
  154. package/ProcessTree/PureProcessTree/components/ProcessTreeRightPanel.d.ts.map +1 -0
  155. package/ProcessTree/PureProcessTree/hooks/useProcessTreeExpansionState.d.ts +20 -0
  156. package/ProcessTree/PureProcessTree/hooks/useProcessTreeExpansionState.d.ts.map +1 -0
  157. package/ProcessTree/PureProcessTree/hooks/useProcessTreeGraphData.d.ts +46 -0
  158. package/ProcessTree/PureProcessTree/hooks/useProcessTreeGraphData.d.ts.map +1 -0
  159. package/ProcessTree/PureProcessTree/hooks/useProcessTreeLinkOverlay.d.ts +23 -0
  160. package/ProcessTree/PureProcessTree/hooks/useProcessTreeLinkOverlay.d.ts.map +1 -0
  161. package/ProcessTree/PureProcessTree/mockdata/data.d.ts +235 -0
  162. package/ProcessTree/PureProcessTree/mockdata/data.d.ts.map +1 -0
  163. package/ProcessTree/PureProcessTree/utils/iconLoader.d.ts +9 -0
  164. package/ProcessTree/PureProcessTree/utils/iconLoader.d.ts.map +1 -0
  165. package/ProcessTree/PureProcessTree/utils/processTreeLinkOverlayUtils.d.ts +36 -0
  166. package/ProcessTree/PureProcessTree/utils/processTreeLinkOverlayUtils.d.ts.map +1 -0
  167. package/ProcessTree/PureProcessTree/utils/processTreeUtils.d.ts +82 -0
  168. package/ProcessTree/PureProcessTree/utils/processTreeUtils.d.ts.map +1 -0
  169. package/ProcessTree/config.d.ts +4 -0
  170. package/ProcessTree/config.d.ts.map +1 -0
  171. package/ProcessTree/index.d.ts +3 -0
  172. package/ProcessTree/index.d.ts.map +1 -0
  173. package/ProcessTree.config.js +192 -0
  174. package/ProcessTree.config.js.map +7 -0
  175. package/ProcessTree.js +5128 -0
  176. package/ProcessTree.js.map +7 -0
  177. package/Punchcard/Punchcard.d.ts +1 -5
  178. package/Punchcard/Punchcard.d.ts.map +1 -1
  179. package/Punchcard/PurePunchcard/Punchcard.d.ts +28 -32
  180. package/Punchcard/PurePunchcard/Punchcard.d.ts.map +1 -1
  181. package/Punchcard/PurePunchcard/src/PunchcardAxis.d.ts +7 -12
  182. package/Punchcard/PurePunchcard/src/PunchcardAxis.d.ts.map +1 -1
  183. package/Punchcard/PurePunchcard/src/PunchcardBubble.d.ts +14 -19
  184. package/Punchcard/PurePunchcard/src/PunchcardBubble.d.ts.map +1 -1
  185. package/Punchcard/PurePunchcard/src/PunchcardChartArea.d.ts +22 -27
  186. package/Punchcard/PurePunchcard/src/PunchcardChartArea.d.ts.map +1 -1
  187. package/Punchcard/PurePunchcard/src/PunchcardGridLines.d.ts +3 -8
  188. package/Punchcard/PurePunchcard/src/PunchcardGridLines.d.ts.map +1 -1
  189. package/Punchcard/PurePunchcard/src/PunchcardLegend.d.ts +9 -14
  190. package/Punchcard/PurePunchcard/src/PunchcardLegend.d.ts.map +1 -1
  191. package/Punchcard/PurePunchcard/src/PunchcardRow.d.ts.map +1 -1
  192. package/Punchcard.config.js.map +1 -1
  193. package/Punchcard.js +444 -631
  194. package/Punchcard.js.map +4 -4
  195. package/README.md +2 -0
  196. package/Rectangle.config.js +1 -1
  197. package/Rectangle.config.js.map +2 -2
  198. package/Rectangle.js +289 -173
  199. package/Rectangle.js.map +4 -4
  200. package/RichText/PureRichText/Editor/EditorPanel.d.ts +20 -0
  201. package/RichText/PureRichText/Editor/EditorPanel.d.ts.map +1 -0
  202. package/RichText/PureRichText/Editor/EditorPanelStyles.d.ts +17 -0
  203. package/RichText/PureRichText/Editor/EditorPanelStyles.d.ts.map +1 -0
  204. package/RichText/PureRichText/Editor/FontSelector.d.ts +15 -0
  205. package/RichText/PureRichText/Editor/FontSelector.d.ts.map +1 -0
  206. package/RichText/PureRichText/Editor/FormatButton.d.ts +23 -0
  207. package/RichText/PureRichText/Editor/FormatButton.d.ts.map +1 -0
  208. package/RichText/PureRichText/Editor/editorPanelUtils.d.ts +19 -0
  209. package/RichText/PureRichText/Editor/editorPanelUtils.d.ts.map +1 -0
  210. package/RichText/PureRichText/Editor/hooks/useLineSpacing.d.ts +11 -0
  211. package/RichText/PureRichText/Editor/hooks/useLineSpacing.d.ts.map +1 -0
  212. package/RichText/PureRichText/Editor/hooks/useLinkHandlers.d.ts +26 -0
  213. package/RichText/PureRichText/Editor/hooks/useLinkHandlers.d.ts.map +1 -0
  214. package/RichText/PureRichText/Editor/index.d.ts +9 -0
  215. package/RichText/PureRichText/Editor/index.d.ts.map +1 -0
  216. package/RichText/PureRichText/InnerEditor.d.ts +41 -0
  217. package/RichText/PureRichText/InnerEditor.d.ts.map +1 -0
  218. package/RichText/PureRichText/PureRichText.d.ts +19 -0
  219. package/RichText/PureRichText/PureRichText.d.ts.map +1 -0
  220. package/RichText/PureRichText/PureRichTextContext.d.ts +64 -0
  221. package/RichText/PureRichText/PureRichTextContext.d.ts.map +1 -0
  222. package/RichText/PureRichText/RichTextStyles.d.ts +25 -0
  223. package/RichText/PureRichText/RichTextStyles.d.ts.map +1 -0
  224. package/RichText/PureRichText/activeInstance.d.ts +23 -0
  225. package/RichText/PureRichText/activeInstance.d.ts.map +1 -0
  226. package/RichText/PureRichText/config.d.ts +17 -0
  227. package/RichText/PureRichText/config.d.ts.map +1 -0
  228. package/RichText/PureRichText/hooks/index.d.ts +12 -0
  229. package/RichText/PureRichText/hooks/index.d.ts.map +1 -0
  230. package/RichText/PureRichText/hooks/useContentSave.d.ts +25 -0
  231. package/RichText/PureRichText/hooks/useContentSave.d.ts.map +1 -0
  232. package/RichText/PureRichText/hooks/useContentSync.d.ts +28 -0
  233. package/RichText/PureRichText/hooks/useContentSync.d.ts.map +1 -0
  234. package/RichText/PureRichText/hooks/useDashboardKeyboardNav.d.ts +33 -0
  235. package/RichText/PureRichText/hooks/useDashboardKeyboardNav.d.ts.map +1 -0
  236. package/RichText/PureRichText/hooks/useEditModeEffect.d.ts +10 -0
  237. package/RichText/PureRichText/hooks/useEditModeEffect.d.ts.map +1 -0
  238. package/RichText/PureRichText/hooks/useEditorSetup.d.ts +36 -0
  239. package/RichText/PureRichText/hooks/useEditorSetup.d.ts.map +1 -0
  240. package/RichText/PureRichText/hooks/useFakeHighlight.d.ts +33 -0
  241. package/RichText/PureRichText/hooks/useFakeHighlight.d.ts.map +1 -0
  242. package/RichText/PureRichText/hooks/useFocusHandlers.d.ts +35 -0
  243. package/RichText/PureRichText/hooks/useFocusHandlers.d.ts.map +1 -0
  244. package/RichText/PureRichText/hooks/useKeyboardShortcuts.d.ts +18 -0
  245. package/RichText/PureRichText/hooks/useKeyboardShortcuts.d.ts.map +1 -0
  246. package/RichText/PureRichText/hooks/useMouseHandlers.d.ts +24 -0
  247. package/RichText/PureRichText/hooks/useMouseHandlers.d.ts.map +1 -0
  248. package/RichText/PureRichText/hooks/useRichTextState.d.ts +38 -0
  249. package/RichText/PureRichText/hooks/useRichTextState.d.ts.map +1 -0
  250. package/RichText/PureRichText/hooks/useStepFontSize.d.ts +17 -0
  251. package/RichText/PureRichText/hooks/useStepFontSize.d.ts.map +1 -0
  252. package/RichText/PureRichText/hooks/useStepLineSpacing.d.ts +18 -0
  253. package/RichText/PureRichText/hooks/useStepLineSpacing.d.ts.map +1 -0
  254. package/RichText/PureRichText/hooks/useTokenMap.d.ts +45 -0
  255. package/RichText/PureRichText/hooks/useTokenMap.d.ts.map +1 -0
  256. package/RichText/PureRichText/index.d.ts +16 -0
  257. package/RichText/PureRichText/index.d.ts.map +1 -0
  258. package/RichText/PureRichText/renderers/ElementRenderer.d.ts +8 -0
  259. package/RichText/PureRichText/renderers/ElementRenderer.d.ts.map +1 -0
  260. package/RichText/PureRichText/renderers/LeafRenderer.d.ts +8 -0
  261. package/RichText/PureRichText/renderers/LeafRenderer.d.ts.map +1 -0
  262. package/RichText/PureRichText/types.d.ts +111 -0
  263. package/RichText/PureRichText/types.d.ts.map +1 -0
  264. package/RichText/PureRichText/utils/a11yUtils.d.ts +9 -0
  265. package/RichText/PureRichText/utils/a11yUtils.d.ts.map +1 -0
  266. package/RichText/PureRichText/utils/fontSize.d.ts +6 -0
  267. package/RichText/PureRichText/utils/fontSize.d.ts.map +1 -0
  268. package/RichText/PureRichText/utils/slateUtils.d.ts +99 -0
  269. package/RichText/PureRichText/utils/slateUtils.d.ts.map +1 -0
  270. package/RichText/RichText.d.ts +17 -0
  271. package/RichText/RichText.d.ts.map +1 -0
  272. package/RichText/config.d.ts +4 -0
  273. package/RichText/config.d.ts.map +1 -0
  274. package/RichText/index.d.ts +7 -0
  275. package/RichText/index.d.ts.map +1 -0
  276. package/RichText.config.js +268 -0
  277. package/RichText.config.js.map +7 -0
  278. package/RichText.js +7674 -0
  279. package/RichText.js.map +7 -0
  280. package/Sankey/PureSankey/PureSankey.d.ts.map +1 -1
  281. package/Sankey/PureSankey/SankeyLink.d.ts.map +1 -1
  282. package/Sankey/PureSankey/SankeyNode.d.ts +10 -3
  283. package/Sankey/PureSankey/SankeyNode.d.ts.map +1 -1
  284. package/Sankey/PureSankey/SankeyTooltip.d.ts.map +1 -1
  285. package/Sankey/PureSankey/SankeyUtils.d.ts +10 -0
  286. package/Sankey/PureSankey/SankeyUtils.d.ts.map +1 -1
  287. package/Sankey.config.js.map +1 -1
  288. package/Sankey.js +562 -290
  289. package/Sankey.js.map +4 -4
  290. package/Scatter/Scatter.d.ts.map +1 -1
  291. package/Scatter.config.js +81 -24
  292. package/Scatter.config.js.map +3 -3
  293. package/Scatter.js +528 -297
  294. package/Scatter.js.map +4 -4
  295. package/SingleValue/SingleValue.d.ts.map +1 -1
  296. package/SingleValue/config.d.ts.map +1 -1
  297. package/SingleValue.config.js +76 -24
  298. package/SingleValue.config.js.map +2 -2
  299. package/SingleValue.js +896 -779
  300. package/SingleValue.js.map +4 -4
  301. package/SingleValueBasic.js.map +1 -1
  302. package/SingleValueIcon/SingleValueIcon.d.ts.map +1 -1
  303. package/SingleValueIcon/config.d.ts.map +1 -1
  304. package/SingleValueIcon.config.js +76 -24
  305. package/SingleValueIcon.config.js.map +2 -2
  306. package/SingleValueIcon.js +512 -287
  307. package/SingleValueIcon.js.map +4 -4
  308. package/SingleValueRadial/PureSingleValueRadial/utils/gaugeUtils.d.ts +0 -8
  309. package/SingleValueRadial/PureSingleValueRadial/utils/gaugeUtils.d.ts.map +1 -1
  310. package/SingleValueRadial/SingleValueRadial.d.ts.map +1 -1
  311. package/SingleValueRadial/config.d.ts.map +1 -1
  312. package/SingleValueRadial.config.js +76 -24
  313. package/SingleValueRadial.config.js.map +2 -2
  314. package/SingleValueRadial.js +543 -326
  315. package/SingleValueRadial.js.map +4 -4
  316. package/SparkLine/SparkLine.d.ts +57 -0
  317. package/SparkLine/SparkLine.d.ts.map +1 -0
  318. package/SparkLine/index.d.ts +1 -1
  319. package/SparkLine/index.d.ts.map +1 -1
  320. package/SparkLine.js +384 -485
  321. package/SparkLine.js.map +4 -4
  322. package/TRELLIS.md +48 -0
  323. package/Table/PureTable.d.ts +1 -0
  324. package/Table/PureTable.d.ts.map +1 -1
  325. package/Table/Table.d.ts.map +1 -1
  326. package/Table/cells/ArrayCell.d.ts.map +1 -1
  327. package/Table/config.d.ts.map +1 -1
  328. package/Table/hooks.d.ts +1 -1
  329. package/Table/hooks.d.ts.map +1 -1
  330. package/Table/tableUtils.d.ts +14 -0
  331. package/Table/tableUtils.d.ts.map +1 -0
  332. package/Table.config.js +4 -10
  333. package/Table.config.js.map +2 -2
  334. package/Table.js +1158 -846
  335. package/Table.js.map +4 -4
  336. package/Timeline/PureTimeline/src/TimelineYAxis.d.ts.map +1 -1
  337. package/Timeline/PureTimeline/src/utils/timelineUtils.d.ts +5 -0
  338. package/Timeline/PureTimeline/src/utils/timelineUtils.d.ts.map +1 -1
  339. package/Timeline/Timeline.d.ts +2 -0
  340. package/Timeline/Timeline.d.ts.map +1 -1
  341. package/Timeline/config.d.ts.map +1 -1
  342. package/Timeline/mockdata/timelineDataSource.d.ts +34 -0
  343. package/Timeline/mockdata/timelineDataSource.d.ts.map +1 -1
  344. package/Timeline.config.js +15 -0
  345. package/Timeline.config.js.map +2 -2
  346. package/Timeline.js +348 -186
  347. package/Timeline.js.map +4 -4
  348. package/common/Charting.d.ts.map +1 -1
  349. package/common/Charting.js +50 -28
  350. package/common/Charting.js.map +2 -2
  351. package/common/ChartingApi.d.ts +1 -1
  352. package/common/ChartingApi.d.ts.map +1 -1
  353. package/common/ChartingApi.js.map +2 -2
  354. package/common/DocExampleWithVizSandbox.js.map +1 -1
  355. package/common/OptionsDoc.js.map +1 -1
  356. package/common/OverviewDoc.js.map +1 -1
  357. package/common/SplunkVisualization.d.ts +1 -1
  358. package/common/SplunkVisualization.d.ts.map +1 -1
  359. package/common/SplunkVisualization.js +6 -4
  360. package/common/SplunkVisualization.js.map +2 -2
  361. package/common/StyledSkipLink.d.ts +2 -0
  362. package/common/StyledSkipLink.d.ts.map +1 -0
  363. package/common/StyledSkipLink.js +81 -0
  364. package/common/StyledSkipLink.js.map +7 -0
  365. package/common/TimeSeriesChartWrapper.d.ts.map +1 -1
  366. package/common/TimeSeriesChartWrapper.js +228 -107
  367. package/common/TimeSeriesChartWrapper.js.map +4 -4
  368. package/common/chartingUtils.d.ts +32 -6
  369. package/common/chartingUtils.d.ts.map +1 -1
  370. package/common/chartingUtils.js +166 -39
  371. package/common/chartingUtils.js.map +4 -4
  372. package/common/components/TrellisTitle.d.ts.map +1 -1
  373. package/common/docUtils.js +1 -1
  374. package/common/docUtils.js.map +2 -2
  375. package/common/editorConfig/AxesChartDataDisplay.d.ts.map +1 -1
  376. package/common/editorConfig/AxesChartYGridAndLabels.d.ts.map +1 -1
  377. package/common/editorConfig/BackgroundColor.d.ts +2 -2
  378. package/common/editorConfig/TrellisEditors.d.ts +33 -5
  379. package/common/editorConfig/TrellisEditors.d.ts.map +1 -1
  380. package/common/hocs/mockdata/trellisData.d.ts +54 -0
  381. package/common/hocs/mockdata/trellisData.d.ts.map +1 -1
  382. package/common/hocs/withTrellis.d.ts +9 -0
  383. package/common/hocs/withTrellis.d.ts.map +1 -1
  384. package/common/hooks/useSorting.d.ts +2 -2
  385. package/common/hooks/useSorting.d.ts.map +1 -1
  386. package/common/shapeUtils.d.ts +1 -1
  387. package/common/shapeUtils.d.ts.map +1 -1
  388. package/common/shapeUtils.js.map +2 -2
  389. package/common/utils/dataUtils.js +2 -1
  390. package/common/utils/dataUtils.js.map +2 -2
  391. package/common/utils/focusUtils.d.ts +4 -0
  392. package/common/utils/focusUtils.d.ts.map +1 -0
  393. package/common/utils/focusUtils.js +101 -0
  394. package/common/utils/focusUtils.js.map +7 -0
  395. package/common/utils/mapUtils.js +513 -184
  396. package/common/utils/mapUtils.js.map +4 -4
  397. package/common/utils/shadowDomUtils.d.ts +2 -0
  398. package/common/utils/shadowDomUtils.d.ts.map +1 -0
  399. package/common/utils/shadowDomUtils.js +39 -0
  400. package/common/utils/shadowDomUtils.js.map +7 -0
  401. package/common/utils/singleValueUtils.js +14 -26
  402. package/common/utils/singleValueUtils.js.map +2 -2
  403. package/common/utils/trellisUtils.d.ts.map +1 -1
  404. package/common/utils/trellisUtils.js +76 -70
  405. package/common/utils/trellisUtils.js.map +2 -2
  406. package/common/withDashboardViz.d.ts.map +1 -1
  407. package/common/withDashboardViz.js +276 -151
  408. package/common/withDashboardViz.js.map +4 -4
  409. package/docs-llm/INDEX.md +118 -0
  410. package/docs-llm/area/examples-json.md +3854 -0
  411. package/docs-llm/area/examples-react.md +2816 -0
  412. package/docs-llm/area/options.md +97 -0
  413. package/docs-llm/area/overview.md +27 -0
  414. package/docs-llm/bar/examples-json.md +3380 -0
  415. package/docs-llm/bar/examples-react.md +2352 -0
  416. package/docs-llm/bar/options.md +89 -0
  417. package/docs-llm/bar/overview.md +25 -0
  418. package/docs-llm/bubble/examples-json.md +4082 -0
  419. package/docs-llm/bubble/examples-react.md +3977 -0
  420. package/docs-llm/bubble/options.md +62 -0
  421. package/docs-llm/bubble/overview.md +26 -0
  422. package/docs-llm/choropleth-svg/examples-json.md +397 -0
  423. package/docs-llm/choropleth-svg/examples-react.md +389 -0
  424. package/docs-llm/choropleth-svg/options.md +15 -0
  425. package/docs-llm/choropleth-svg/overview.md +23 -0
  426. package/docs-llm/column/examples-json.md +3898 -0
  427. package/docs-llm/column/examples-react.md +2653 -0
  428. package/docs-llm/column/options.md +94 -0
  429. package/docs-llm/column/overview.md +31 -0
  430. package/docs-llm/dsl/examples-json.md +43 -0
  431. package/docs-llm/dsl/examples-react.md +78 -0
  432. package/docs-llm/dsl/formatters/format-by-type-examples-json.md +58 -0
  433. package/docs-llm/dsl/formatters/format-by-type-examples-react.md +43 -0
  434. package/docs-llm/dsl/formatters/format-by-type.md +38 -0
  435. package/docs-llm/dsl/formatters/frame-examples-json.md +42 -0
  436. package/docs-llm/dsl/formatters/frame-examples-react.md +24 -0
  437. package/docs-llm/dsl/formatters/frame.md +6 -0
  438. package/docs-llm/dsl/formatters/gradient-examples-json.md +98 -0
  439. package/docs-llm/dsl/formatters/gradient-examples-react.md +44 -0
  440. package/docs-llm/dsl/formatters/gradient.md +23 -0
  441. package/docs-llm/dsl/formatters/lerp-examples-json.md +40 -0
  442. package/docs-llm/dsl/formatters/lerp-examples-react.md +28 -0
  443. package/docs-llm/dsl/formatters/lerp.md +19 -0
  444. package/docs-llm/dsl/formatters/match-value-examples-json.md +65 -0
  445. package/docs-llm/dsl/formatters/match-value-examples-react.md +37 -0
  446. package/docs-llm/dsl/formatters/match-value.md +13 -0
  447. package/docs-llm/dsl/formatters/max-contrast-examples-json.md +39 -0
  448. package/docs-llm/dsl/formatters/max-contrast-examples-react.md +27 -0
  449. package/docs-llm/dsl/formatters/max-contrast.md +9 -0
  450. package/docs-llm/dsl/formatters/multi-format-examples-json.md +67 -0
  451. package/docs-llm/dsl/formatters/multi-format-examples-react.md +49 -0
  452. package/docs-llm/dsl/formatters/multi-format.md +12 -0
  453. package/docs-llm/dsl/formatters/objects-examples-json.md +49 -0
  454. package/docs-llm/dsl/formatters/objects-examples-react.md +37 -0
  455. package/docs-llm/dsl/formatters/objects.md +3 -0
  456. package/docs-llm/dsl/formatters/pick-examples-json.md +59 -0
  457. package/docs-llm/dsl/formatters/pick-examples-react.md +30 -0
  458. package/docs-llm/dsl/formatters/pick.md +9 -0
  459. package/docs-llm/dsl/formatters/prefix-examples-json.md +29 -0
  460. package/docs-llm/dsl/formatters/prefix-examples-react.md +19 -0
  461. package/docs-llm/dsl/formatters/prefix.md +3 -0
  462. package/docs-llm/dsl/formatters/prepend-examples-json.md +51 -0
  463. package/docs-llm/dsl/formatters/prepend-examples-react.md +33 -0
  464. package/docs-llm/dsl/formatters/prepend.md +9 -0
  465. package/docs-llm/dsl/formatters/range-value-examples-json.md +48 -0
  466. package/docs-llm/dsl/formatters/range-value-examples-react.md +34 -0
  467. package/docs-llm/dsl/formatters/range-value.md +15 -0
  468. package/docs-llm/dsl/formatters/set-color-channel-examples-json.md +40 -0
  469. package/docs-llm/dsl/formatters/set-color-channel-examples-react.md +31 -0
  470. package/docs-llm/dsl/formatters/set-color-channel.md +9 -0
  471. package/docs-llm/dsl/formatters/suffix-examples-json.md +29 -0
  472. package/docs-llm/dsl/formatters/suffix-examples-react.md +19 -0
  473. package/docs-llm/dsl/formatters/suffix.md +3 -0
  474. package/docs-llm/dsl/formatters/type-examples-json.md +37 -0
  475. package/docs-llm/dsl/formatters/type-examples-react.md +20 -0
  476. package/docs-llm/dsl/formatters/type.md +3 -0
  477. package/docs-llm/dsl/overview.md +41 -0
  478. package/docs-llm/dsl/selectors/abs.md +7 -0
  479. package/docs-llm/dsl/selectors/ceil.md +7 -0
  480. package/docs-llm/dsl/selectors/data-frame-average-examples-json.md +41 -0
  481. package/docs-llm/dsl/selectors/data-frame-average-examples-react.md +36 -0
  482. package/docs-llm/dsl/selectors/data-frame-average.md +7 -0
  483. package/docs-llm/dsl/selectors/data-frame-count-examples-json.md +41 -0
  484. package/docs-llm/dsl/selectors/data-frame-count-examples-react.md +36 -0
  485. package/docs-llm/dsl/selectors/data-frame-count.md +7 -0
  486. package/docs-llm/dsl/selectors/data-frame-examples-json.md +830 -0
  487. package/docs-llm/dsl/selectors/data-frame-examples-react.md +929 -0
  488. package/docs-llm/dsl/selectors/data-frame-get-field-examples-json.md +89 -0
  489. package/docs-llm/dsl/selectors/data-frame-get-field-examples-react.md +124 -0
  490. package/docs-llm/dsl/selectors/data-frame-get-field.md +5 -0
  491. package/docs-llm/dsl/selectors/data-frame-get-raw-value.md +5 -0
  492. package/docs-llm/dsl/selectors/data-frame-get-type.md +5 -0
  493. package/docs-llm/dsl/selectors/data-frame-get-value.md +5 -0
  494. package/docs-llm/dsl/selectors/data-frame-max-examples-json.md +51 -0
  495. package/docs-llm/dsl/selectors/data-frame-max-examples-react.md +41 -0
  496. package/docs-llm/dsl/selectors/data-frame-max.md +7 -0
  497. package/docs-llm/dsl/selectors/data-frame-min-examples-json.md +51 -0
  498. package/docs-llm/dsl/selectors/data-frame-min-examples-react.md +41 -0
  499. package/docs-llm/dsl/selectors/data-frame-min.md +7 -0
  500. package/docs-llm/dsl/selectors/data-frame-percentile-examples-json.md +41 -0
  501. package/docs-llm/dsl/selectors/data-frame-percentile-examples-react.md +36 -0
  502. package/docs-llm/dsl/selectors/data-frame-percentile.md +8 -0
  503. package/docs-llm/dsl/selectors/data-frame-set-value.md +5 -0
  504. package/docs-llm/dsl/selectors/data-frame-sum-examples-json.md +51 -0
  505. package/docs-llm/dsl/selectors/data-frame-sum-examples-react.md +41 -0
  506. package/docs-llm/dsl/selectors/data-frame-sum.md +7 -0
  507. package/docs-llm/dsl/selectors/data-frame.md +4 -0
  508. package/docs-llm/dsl/selectors/data-point-get-field.md +5 -0
  509. package/docs-llm/dsl/selectors/data-point-get-raw-value.md +4 -0
  510. package/docs-llm/dsl/selectors/data-point-get-type.md +5 -0
  511. package/docs-llm/dsl/selectors/data-point-get-value.md +5 -0
  512. package/docs-llm/dsl/selectors/data-point-set-value.md +4 -0
  513. package/docs-llm/dsl/selectors/data-point.md +5 -0
  514. package/docs-llm/dsl/selectors/data-series-average.md +22 -0
  515. package/docs-llm/dsl/selectors/data-series-count.md +14 -0
  516. package/docs-llm/dsl/selectors/data-series-get-field.md +5 -0
  517. package/docs-llm/dsl/selectors/data-series-get-raw-value.md +4 -0
  518. package/docs-llm/dsl/selectors/data-series-get-type.md +5 -0
  519. package/docs-llm/dsl/selectors/data-series-get-value.md +4 -0
  520. package/docs-llm/dsl/selectors/data-series-max.md +5 -0
  521. package/docs-llm/dsl/selectors/data-series-min.md +5 -0
  522. package/docs-llm/dsl/selectors/data-series-percentile.md +17 -0
  523. package/docs-llm/dsl/selectors/data-series-set-value.md +4 -0
  524. package/docs-llm/dsl/selectors/data-series-sum.md +24 -0
  525. package/docs-llm/dsl/selectors/data-series.md +4 -0
  526. package/docs-llm/dsl/selectors/delta.md +7 -0
  527. package/docs-llm/dsl/selectors/divide.md +8 -0
  528. package/docs-llm/dsl/selectors/first-point.md +5 -0
  529. package/docs-llm/dsl/selectors/floor.md +7 -0
  530. package/docs-llm/dsl/selectors/frame-by-series-index-range-examples-json.md +89 -0
  531. package/docs-llm/dsl/selectors/frame-by-series-index-range-examples-react.md +88 -0
  532. package/docs-llm/dsl/selectors/frame-by-series-index-range.md +10 -0
  533. package/docs-llm/dsl/selectors/frame-by-series-indexes-examples-json.md +88 -0
  534. package/docs-llm/dsl/selectors/frame-by-series-indexes-examples-react.md +87 -0
  535. package/docs-llm/dsl/selectors/frame-by-series-indexes.md +9 -0
  536. package/docs-llm/dsl/selectors/frame-by-series-names-examples-json.md +89 -0
  537. package/docs-llm/dsl/selectors/frame-by-series-names-examples-react.md +88 -0
  538. package/docs-llm/dsl/selectors/frame-by-series-names-or-indexes-examples-json.md +89 -0
  539. package/docs-llm/dsl/selectors/frame-by-series-names-or-indexes-examples-react.md +88 -0
  540. package/docs-llm/dsl/selectors/frame-by-series-names-or-indexes.md +9 -0
  541. package/docs-llm/dsl/selectors/frame-by-series-names.md +9 -0
  542. package/docs-llm/dsl/selectors/frame-by-series-types-examples-json.md +89 -0
  543. package/docs-llm/dsl/selectors/frame-by-series-types-examples-react.md +88 -0
  544. package/docs-llm/dsl/selectors/frame-by-series-types.md +9 -0
  545. package/docs-llm/dsl/selectors/frame-without-internal-fields-examples-json.md +137 -0
  546. package/docs-llm/dsl/selectors/frame-without-internal-fields-examples-react.md +135 -0
  547. package/docs-llm/dsl/selectors/frame-without-internal-fields-except-examples-json.md +157 -0
  548. package/docs-llm/dsl/selectors/frame-without-internal-fields-except-examples-react.md +155 -0
  549. package/docs-llm/dsl/selectors/frame-without-internal-fields-except.md +21 -0
  550. package/docs-llm/dsl/selectors/frame-without-internal-fields.md +17 -0
  551. package/docs-llm/dsl/selectors/frame-without-series-names.md +8 -0
  552. package/docs-llm/dsl/selectors/last-point.md +5 -0
  553. package/docs-llm/dsl/selectors/minus.md +8 -0
  554. package/docs-llm/dsl/selectors/multiply.md +8 -0
  555. package/docs-llm/dsl/selectors/plus.md +8 -0
  556. package/docs-llm/dsl/selectors/point-by-index.md +6 -0
  557. package/docs-llm/dsl/selectors/points-by-indexes.md +6 -0
  558. package/docs-llm/dsl/selectors/round.md +7 -0
  559. package/docs-llm/dsl/selectors/series-by-index-examples-json.md +49 -0
  560. package/docs-llm/dsl/selectors/series-by-index-examples-react.md +39 -0
  561. package/docs-llm/dsl/selectors/series-by-index.md +8 -0
  562. package/docs-llm/dsl/selectors/series-by-name-examples-json.md +49 -0
  563. package/docs-llm/dsl/selectors/series-by-name-examples-react.md +39 -0
  564. package/docs-llm/dsl/selectors/series-by-name.md +8 -0
  565. package/docs-llm/dsl/selectors/series-by-prioritized-types-examples-json.md +47 -0
  566. package/docs-llm/dsl/selectors/series-by-prioritized-types-examples-react.md +39 -0
  567. package/docs-llm/dsl/selectors/series-by-prioritized-types.md +10 -0
  568. package/docs-llm/dsl/selectors/series-by-type-examples-json.md +49 -0
  569. package/docs-llm/dsl/selectors/series-by-type-examples-react.md +39 -0
  570. package/docs-llm/dsl/selectors/series-by-type.md +10 -0
  571. package/docs-llm/dsl/selectors/series-by-types.md +6 -0
  572. package/docs-llm/ellipse/examples-json.md +5 -0
  573. package/docs-llm/ellipse/examples-react.md +5 -0
  574. package/docs-llm/ellipse/options.md +16 -0
  575. package/docs-llm/ellipse/overview.md +5 -0
  576. package/docs-llm/events/examples-json.md +705 -0
  577. package/docs-llm/events/examples-react.md +536 -0
  578. package/docs-llm/events/options.md +18 -0
  579. package/docs-llm/events/overview.md +5 -0
  580. package/docs-llm/filler-gauge/examples-json.md +376 -0
  581. package/docs-llm/filler-gauge/examples-react.md +274 -0
  582. package/docs-llm/filler-gauge/options.md +26 -0
  583. package/docs-llm/filler-gauge/overview.md +5 -0
  584. package/docs-llm/image/examples-json.md +39 -0
  585. package/docs-llm/image/examples-react.md +65 -0
  586. package/docs-llm/image/options.md +13 -0
  587. package/docs-llm/image/overview.md +5 -0
  588. package/docs-llm/line/examples-json.md +3724 -0
  589. package/docs-llm/line/examples-react.md +2683 -0
  590. package/docs-llm/line/options.md +95 -0
  591. package/docs-llm/line/overview.md +29 -0
  592. package/docs-llm/link-graph/examples-json.md +5 -0
  593. package/docs-llm/link-graph/examples-react.md +5 -0
  594. package/docs-llm/link-graph/options.md +26 -0
  595. package/docs-llm/link-graph/overview.md +16 -0
  596. package/docs-llm/map/examples-json.md +13973 -0
  597. package/docs-llm/map/examples-react.md +6154 -0
  598. package/docs-llm/map/options.md +22 -0
  599. package/docs-llm/map/overview.md +32 -0
  600. package/docs-llm/markdown/examples-json.md +63 -0
  601. package/docs-llm/markdown/examples-react.md +98 -0
  602. package/docs-llm/markdown/options.md +17 -0
  603. package/docs-llm/markdown/overview.md +5 -0
  604. package/docs-llm/marker-gauge/examples-json.md +436 -0
  605. package/docs-llm/marker-gauge/examples-react.md +367 -0
  606. package/docs-llm/marker-gauge/options.md +26 -0
  607. package/docs-llm/marker-gauge/overview.md +5 -0
  608. package/docs-llm/network-graph/examples-json.md +8843 -0
  609. package/docs-llm/network-graph/examples-react.md +7339 -0
  610. package/docs-llm/network-graph/options.md +50 -0
  611. package/docs-llm/network-graph/overview.md +28 -0
  612. package/docs-llm/parallel-coordinates/examples-json.md +8376 -0
  613. package/docs-llm/parallel-coordinates/examples-react.md +2771 -0
  614. package/docs-llm/parallel-coordinates/options.md +14 -0
  615. package/docs-llm/parallel-coordinates/overview.md +22 -0
  616. package/docs-llm/pie/examples-json.md +851 -0
  617. package/docs-llm/pie/examples-react.md +606 -0
  618. package/docs-llm/pie/options.md +34 -0
  619. package/docs-llm/pie/overview.md +23 -0
  620. package/docs-llm/process-tree/options.md +32 -0
  621. package/docs-llm/punchcard/examples-json.md +6134 -0
  622. package/docs-llm/punchcard/examples-react.md +4562 -0
  623. package/docs-llm/punchcard/options.md +33 -0
  624. package/docs-llm/punchcard/overview.md +5 -0
  625. package/docs-llm/pure-rich-text/options.md +28 -0
  626. package/docs-llm/rectangle/examples-json.md +5 -0
  627. package/docs-llm/rectangle/examples-react.md +5 -0
  628. package/docs-llm/rectangle/options.md +19 -0
  629. package/docs-llm/rectangle/overview.md +5 -0
  630. package/docs-llm/rich-text/examples-json.md +96 -0
  631. package/docs-llm/rich-text/examples-react.md +119 -0
  632. package/docs-llm/rich-text/options.md +28 -0
  633. package/docs-llm/rich-text/overview.md +5 -0
  634. package/docs-llm/sankey/examples-json.md +844 -0
  635. package/docs-llm/sankey/examples-react.md +546 -0
  636. package/docs-llm/sankey/options.md +19 -0
  637. package/docs-llm/sankey/overview.md +24 -0
  638. package/docs-llm/scatter/examples-json.md +4012 -0
  639. package/docs-llm/scatter/examples-react.md +3914 -0
  640. package/docs-llm/scatter/options.md +68 -0
  641. package/docs-llm/scatter/overview.md +25 -0
  642. package/docs-llm/single-value/examples-json.md +2613 -0
  643. package/docs-llm/single-value/examples-react.md +2296 -0
  644. package/docs-llm/single-value/options.md +49 -0
  645. package/docs-llm/single-value/overview.md +23 -0
  646. package/docs-llm/single-value-icon/examples-json.md +1686 -0
  647. package/docs-llm/single-value-icon/examples-react.md +1573 -0
  648. package/docs-llm/single-value-icon/options.md +43 -0
  649. package/docs-llm/single-value-icon/overview.md +5 -0
  650. package/docs-llm/single-value-radial/examples-json.md +1178 -0
  651. package/docs-llm/single-value-radial/examples-react.md +1028 -0
  652. package/docs-llm/single-value-radial/options.md +41 -0
  653. package/docs-llm/single-value-radial/overview.md +5 -0
  654. package/docs-llm/table/examples-json.md +5 -0
  655. package/docs-llm/table/examples-react.md +5 -0
  656. package/docs-llm/table/options.md +25 -0
  657. package/docs-llm/table/overview.md +24 -0
  658. package/docs-llm/timeline/examples-json.md +5 -0
  659. package/docs-llm/timeline/examples-react.md +5 -0
  660. package/docs-llm/timeline/options.md +27 -0
  661. package/docs-llm/timeline/overview.md +24 -0
  662. package/package.json +39 -30
  663. package/LICENSE.md +0 -449
@@ -0,0 +1,1573 @@
1
+ # Single Value Icon Examples
2
+
3
+ **Component Reference:** Single Value Icon or @splunk/visualizations/SingleValueIcon
4
+
5
+ ## Basic Single Value Icon
6
+
7
+ - **Key:** Basic
8
+
9
+ ```jsx
10
+ import React from 'react';
11
+ import SingleValueIcon from '@splunk/visualizations/SingleValueIcon';
12
+
13
+ export default () => (
14
+ <SingleValueIcon
15
+ options={{}}
16
+ dataSources={{
17
+ primary: {
18
+ data: {
19
+ columns: [
20
+ ['1', '62', '103', '308', '587', '876', '930', '1320'],
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
51
+
52
+ ```jsx
53
+ import React from 'react';
54
+ import SingleValue from '@splunk/visualizations/SingleValueIcon';
55
+
56
+ export default () => (
57
+ <SingleValue
58
+ options={{
59
+ backgroundColor: '#FF0000',
60
+ }}
61
+ dataSources={{
62
+ primary: {
63
+ data: {
64
+ columns: [
65
+ ['1', '62', '103', '308', '587', '876', '930', '1320'],
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
+ ## Background Color - Based on third value of Bar Field
94
+
95
+ - **Key:** Backgroundcolorthirdvaluebar
96
+
97
+ ```jsx
98
+ import React from 'react';
99
+ import SingleValueIcon from '@splunk/visualizations/SingleValueIcon';
100
+
101
+ export default () => (
102
+ <SingleValueIcon
103
+ options={{
104
+ majorValue: '> primary | seriesByName("foo") | lastPoint()',
105
+ trendValue: '> primary | seriesByName("foo") | delta(-2)',
106
+ backgroundColor: '> primary | seriesByName("bar") | pointByIndex(2)',
107
+ }}
108
+ dataSources={{
109
+ primary: {
110
+ data: {
111
+ columns: [
112
+ ['1', '62', '103', '308', '587', '876', '930', '1320'],
113
+ [
114
+ '#FF0000',
115
+ '#00FFFF',
116
+ '#0000FF',
117
+ '#800080',
118
+ '#FFFF00',
119
+ '#FFA500',
120
+ '#A52A2A',
121
+ '#008000',
122
+ ],
123
+ ],
124
+ fields: [
125
+ {
126
+ name: 'foo',
127
+ },
128
+ {
129
+ name: 'bar',
130
+ },
131
+ ],
132
+ },
133
+ meta: {},
134
+ },
135
+ }}
136
+ />
137
+ );
138
+ ```
139
+
140
+ ## Background Color - Based on last value of Foo Field
141
+
142
+ - **Key:** Last Indexfoo
143
+
144
+ ```jsx
145
+ import React from 'react';
146
+ import SingleValueIcon from '@splunk/visualizations/SingleValueIcon';
147
+
148
+ export default () => (
149
+ <SingleValueIcon
150
+ context={{
151
+ backgroundColors: [
152
+ {
153
+ from: 5000,
154
+ value: '#A52A2A',
155
+ },
156
+ {
157
+ from: 1000,
158
+ to: 5000,
159
+ value: '#FFA500',
160
+ },
161
+ {
162
+ from: 500,
163
+ to: 1000,
164
+ value: '#FFFF00',
165
+ },
166
+ {
167
+ from: 100,
168
+ to: 500,
169
+ value: '#800080',
170
+ },
171
+ {
172
+ to: 100,
173
+ value: '#0000FF',
174
+ },
175
+ ],
176
+ }}
177
+ options={{
178
+ majorValue: '> primary | seriesByName("foo") | lastPoint()',
179
+ trendValue: '> primary | seriesByName("foo") | delta(-2)',
180
+ backgroundColor: '> majorValue | rangeValue(backgroundColors)',
181
+ }}
182
+ dataSources={{
183
+ primary: {
184
+ data: {
185
+ columns: [
186
+ ['1', '62', '103', '308', '587', '876', '930', '1320'],
187
+ [
188
+ '#FF0000',
189
+ '#00FFFF',
190
+ '#0000FF',
191
+ '#800080',
192
+ '#FFFF00',
193
+ '#FFA500',
194
+ '#A52A2A',
195
+ '#008000',
196
+ ],
197
+ ],
198
+ fields: [
199
+ {
200
+ name: 'foo',
201
+ },
202
+ {
203
+ name: 'bar',
204
+ },
205
+ ],
206
+ },
207
+ meta: {},
208
+ },
209
+ }}
210
+ />
211
+ );
212
+ ```
213
+
214
+ ## Background Color - Based on third value of Foo Field
215
+
216
+ - **Key:** Backgroundcolorthirdvaluefoo
217
+
218
+ ```jsx
219
+ import React from 'react';
220
+ import SingleValueIcon from '@splunk/visualizations/SingleValueIcon';
221
+
222
+ export default () => (
223
+ <SingleValueIcon
224
+ context={{
225
+ backgroundColors: [
226
+ {
227
+ from: 100,
228
+ value: '#A52A2A',
229
+ },
230
+ {
231
+ from: 40,
232
+ to: 100,
233
+ value: '#FFA500',
234
+ },
235
+ {
236
+ from: 13,
237
+ to: 40,
238
+ value: '#FFFF00',
239
+ },
240
+ {
241
+ from: 1,
242
+ to: 13,
243
+ value: '#800080',
244
+ },
245
+ {
246
+ from: 0,
247
+ to: 1,
248
+ value: '#0000FF',
249
+ },
250
+ {
251
+ to: 0,
252
+ value: '#000000',
253
+ },
254
+ ],
255
+ }}
256
+ options={{
257
+ majorValue: '> primary | seriesByName("foo") | lastPoint()',
258
+ trendValue: '> primary | seriesByName("foo") | delta(-2)',
259
+ backgroundColor:
260
+ '> primary | seriesByName("foo") | pointByIndex(2) | rangeValue(backgroundColors)',
261
+ }}
262
+ dataSources={{
263
+ primary: {
264
+ data: {
265
+ columns: [
266
+ ['1', '62', '103', '308', '587', '876', '930', '1320'],
267
+ [
268
+ '#FF0000',
269
+ '#00FFFF',
270
+ '#0000FF',
271
+ '#800080',
272
+ '#FFFF00',
273
+ '#FFA500',
274
+ '#A52A2A',
275
+ '#008000',
276
+ ],
277
+ ],
278
+ fields: [
279
+ {
280
+ name: 'foo',
281
+ },
282
+ {
283
+ name: 'bar',
284
+ },
285
+ ],
286
+ },
287
+ meta: {},
288
+ },
289
+ }}
290
+ />
291
+ );
292
+ ```
293
+
294
+ ## Background Color - Based on Data Series Color
295
+
296
+ - **Key:** Color Data Series
297
+
298
+ ```jsx
299
+ import React from 'react';
300
+ import SingleValueIcon from '@splunk/visualizations/SingleValueIcon';
301
+
302
+ export default () => (
303
+ <SingleValueIcon
304
+ options={{
305
+ majorValue: '> primary | seriesByName("foo") | lastPoint()',
306
+ trendValue: '> primary | seriesByName("foo") | delta(-2)',
307
+ backgroundColor: '> primary | seriesByName("bar") | lastPoint()',
308
+ }}
309
+ dataSources={{
310
+ primary: {
311
+ data: {
312
+ columns: [
313
+ ['1', '62', '103', '308', '587', '876', '930', '1320'],
314
+ [
315
+ '#FF0000',
316
+ '#00FFFF',
317
+ '#0000FF',
318
+ '#800080',
319
+ '#FFFF00',
320
+ '#FFA500',
321
+ '#A52A2A',
322
+ '#008000',
323
+ ],
324
+ ],
325
+ fields: [
326
+ {
327
+ name: 'foo',
328
+ },
329
+ {
330
+ name: 'bar',
331
+ },
332
+ ],
333
+ },
334
+ meta: {},
335
+ },
336
+ }}
337
+ />
338
+ );
339
+ ```
340
+
341
+ ## Icon - Clock
342
+
343
+ - **Key:** Fix Icon
344
+
345
+ ```jsx
346
+ import React from 'react';
347
+ import SingleValueIcon from '@splunk/visualizations/SingleValueIcon';
348
+
349
+ export default () => (
350
+ <SingleValueIcon
351
+ options={{
352
+ icon: 'clock',
353
+ majorValue: '> primary | seriesByName("foo") | lastPoint()',
354
+ }}
355
+ dataSources={{
356
+ primary: {
357
+ data: {
358
+ columns: [
359
+ ['1', '62', '103', '308', '587', '876', '930', '1320'],
360
+ [
361
+ '2018-08-19T00:00:00.000+00:00',
362
+ '2018-08-20T00:00:00.000+00:00',
363
+ '2018-08-21T00:00:00.000+00:00',
364
+ '2018-08-22T00:00:00.000+00:00',
365
+ '2018-08-23T00:00:00.000+00:00',
366
+ '2018-08-24T00:00:00.000+00:00',
367
+ '2018-08-25T00:00:00.000+00:00',
368
+ '2018-08-26T00:00:00.000+00:00',
369
+ ],
370
+ ],
371
+ fields: [
372
+ {
373
+ name: 'foo',
374
+ },
375
+ {
376
+ name: '_time',
377
+ },
378
+ ],
379
+ },
380
+ meta: {},
381
+ },
382
+ }}
383
+ />
384
+ );
385
+ ```
386
+
387
+ ## Icon - Persisted Icon in IconRegistry
388
+
389
+ - **Key:** Remote Icon
390
+
391
+ ```jsx
392
+ import React from 'react';
393
+ import { IconContextProvider } from '@splunk/visualization-context/IconContext';
394
+ import IconRegistry from '@splunk/visualization-context/IconRegistry';
395
+ import MockedProvider from '@splunk/visualization-context/MockedProvider';
396
+ import SingleValueIcon from '@splunk/visualizations/SingleValueIcon';
397
+
398
+ const iconRegistry = IconRegistry.create();
399
+ const mockedProvider = new MockedProvider();
400
+ iconRegistry.addProvider(mockedProvider);
401
+ mockedProvider.upload('https://upload.wikimedia.org/wikipedia/commons/3/36/Ladder_%28example%29.svg');
402
+
403
+ export default () => (
404
+ <IconContextProvider value={iconRegistry}>
405
+ <SingleValueIcon
406
+ options={{
407
+ icon: 'mock://0',
408
+ }}
409
+ dataSources={{
410
+ primary: {
411
+ data: {
412
+ columns: [
413
+ ['1', '62', '103', '308', '587', '876', '930', '1320'],
414
+ [
415
+ '2018-08-19T00:00:00.000+00:00',
416
+ '2018-08-20T00:00:00.000+00:00',
417
+ '2018-08-21T00:00:00.000+00:00',
418
+ '2018-08-22T00:00:00.000+00:00',
419
+ '2018-08-23T00:00:00.000+00:00',
420
+ '2018-08-24T00:00:00.000+00:00',
421
+ '2018-08-25T00:00:00.000+00:00',
422
+ '2018-08-26T00:00:00.000+00:00',
423
+ ],
424
+ ],
425
+ fields: [
426
+ {
427
+ name: 'foo',
428
+ },
429
+ {
430
+ name: '_time',
431
+ },
432
+ ],
433
+ },
434
+ meta: {},
435
+ },
436
+ }}
437
+ />
438
+ </IconContextProvider>
439
+ );
440
+ ```
441
+
442
+ ## Icon - Custom SVG Icon
443
+
444
+ - **Key:** Custom Svg Icon
445
+
446
+ ```jsx
447
+ import React from 'react';
448
+ import { IconContextProvider } from '@splunk/visualization-context/IconContext';
449
+ import IconRegistry from '@splunk/visualization-context/IconRegistry';
450
+ import MockedProvider from '@splunk/visualization-context/MockedProvider';
451
+ import SingleValueIcon from '@splunk/visualizations/SingleValueIcon';
452
+
453
+ const iconRegistry = IconRegistry.create();
454
+ const provider = new MockedProvider();
455
+ iconRegistry.addProvider(provider);
456
+
457
+ const svgIcon =
458
+ '<svg aria-hidden="true" height="100%" tabindex="-1" viewBox="0 0 24 24" width="100%" xmlns="http://www.w3.org/2000/svg" class="SVG__StyledSVG-sc-13m0oii-0 gBwlHY"><path d="M4.70711 11.707C4.31658 12.0975 3.68342 12.0975 3.29289 11.707C2.90237 11.3164 2.90237 10.6833 3.29289 10.2927L10.5858 2.99985C11.3668 2.2188 12.6332 2.2188 13.4142 2.99985L20.7071 10.2927C21.0976 10.6833 21.0976 11.3164 20.7071 11.707C20.3166 12.0975 19.6834 12.0975 19.2929 11.707L12 4.41406L4.70711 11.707Z"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M4.03608 19.9998C3.13181 19.9998 2.67895 18.9065 3.31836 18.2671L11.2822 10.3033C11.6785 9.90698 12.3212 9.90695 12.7176 10.3033L20.6814 18.2671C21.3208 18.9066 20.8679 19.9998 19.9637 19.9998H4.03608Z"></path></svg>';
459
+ const svgBase64 = `data:image/svg+xml;base64,${btoa(svgIcon)}`;
460
+ const imageId = provider.upload(svgBase64, {});
461
+
462
+ export default () => (
463
+ <IconContextProvider value={iconRegistry}>
464
+ <SingleValueIcon
465
+ options={{
466
+ icon: `mock://${imageId}`,
467
+ iconColor: '#53a051',
468
+ }}
469
+ dataSources={{
470
+ primary: {
471
+ data: {
472
+ columns: [
473
+ ['930', '1320'],
474
+ ['2018-08-25T00:00:00.000+00:00', '2018-08-26T00:00:00.000+00:00'],
475
+ ],
476
+ fields: [
477
+ {
478
+ name: 'foo',
479
+ },
480
+ {
481
+ name: '_time',
482
+ },
483
+ ],
484
+ },
485
+ meta: {},
486
+ },
487
+ }}
488
+ />
489
+ </IconContextProvider>
490
+ );
491
+ ```
492
+
493
+ ## Icon - Activity, Show Value - False
494
+
495
+ - **Key:** Fix Icon No Values
496
+
497
+ ```jsx
498
+ import React from 'react';
499
+ import SingleValueIcon from '@splunk/visualizations/SingleValueIcon';
500
+
501
+ export default () => (
502
+ <SingleValueIcon
503
+ options={{
504
+ icon: 'activity',
505
+ showValue: false,
506
+ majorValue: '> primary | seriesByName("foo") | lastPoint()',
507
+ }}
508
+ dataSources={{
509
+ primary: {
510
+ data: {
511
+ columns: [
512
+ ['1', '62', '103', '308', '587', '876', '930', '1320'],
513
+ [
514
+ '2018-08-19T00:00:00.000+00:00',
515
+ '2018-08-20T00:00:00.000+00:00',
516
+ '2018-08-21T00:00:00.000+00:00',
517
+ '2018-08-22T00:00:00.000+00:00',
518
+ '2018-08-23T00:00:00.000+00:00',
519
+ '2018-08-24T00:00:00.000+00:00',
520
+ '2018-08-25T00:00:00.000+00:00',
521
+ '2018-08-26T00:00:00.000+00:00',
522
+ ],
523
+ ],
524
+ fields: [
525
+ {
526
+ name: 'foo',
527
+ },
528
+ {
529
+ name: '_time',
530
+ },
531
+ ],
532
+ },
533
+ meta: {},
534
+ },
535
+ }}
536
+ />
537
+ );
538
+ ```
539
+
540
+ ## Icon - Based on Threshold Value
541
+
542
+ - **Key:** Icon By Threshold
543
+
544
+ ```jsx
545
+ import React from 'react';
546
+ import SingleValueIcon from '@splunk/visualizations/SingleValueIcon';
547
+
548
+ export default () => (
549
+ <SingleValueIcon
550
+ context={{
551
+ iconMatches: [
552
+ {
553
+ from: 1560,
554
+ value: 'default',
555
+ },
556
+ {
557
+ from: 70,
558
+ to: 1560,
559
+ value: 'star',
560
+ },
561
+ {
562
+ from: 30,
563
+ to: 70,
564
+ value: 'pencil',
565
+ },
566
+ {
567
+ from: 0,
568
+ to: 30,
569
+ value: 'clock',
570
+ },
571
+ {
572
+ to: 0,
573
+ value: 'activity',
574
+ },
575
+ ],
576
+ }}
577
+ options={{
578
+ majorValue: '> primary | seriesByName("foo") | lastPoint()',
579
+ icon: '> majorValue | rangeValue(iconMatches)',
580
+ }}
581
+ dataSources={{
582
+ primary: {
583
+ data: {
584
+ columns: [
585
+ ['1', '62', '103', '308', '587', '876', '930', '1320'],
586
+ [
587
+ '2018-08-19T00:00:00.000+00:00',
588
+ '2018-08-20T00:00:00.000+00:00',
589
+ '2018-08-21T00:00:00.000+00:00',
590
+ '2018-08-22T00:00:00.000+00:00',
591
+ '2018-08-23T00:00:00.000+00:00',
592
+ '2018-08-24T00:00:00.000+00:00',
593
+ '2018-08-25T00:00:00.000+00:00',
594
+ '2018-08-26T00:00:00.000+00:00',
595
+ ],
596
+ ],
597
+ fields: [
598
+ {
599
+ name: 'foo',
600
+ },
601
+ {
602
+ name: '_time',
603
+ },
604
+ ],
605
+ },
606
+ meta: {},
607
+ },
608
+ }}
609
+ />
610
+ );
611
+ ```
612
+
613
+ ## Icon Color - Blue
614
+
615
+ - **Key:** Icon Color
616
+
617
+ ```jsx
618
+ import React from 'react';
619
+ import SingleValueIcon from '@splunk/visualizations/SingleValueIcon';
620
+
621
+ export default () => (
622
+ <SingleValueIcon
623
+ options={{
624
+ iconColor: '#0000FF',
625
+ }}
626
+ dataSources={{
627
+ primary: {
628
+ data: {
629
+ columns: [
630
+ ['1', '62', '103', '308', '587', '876', '930', '1320'],
631
+ [
632
+ '2018-08-19T00:00:00.000+00:00',
633
+ '2018-08-20T00:00:00.000+00:00',
634
+ '2018-08-21T00:00:00.000+00:00',
635
+ '2018-08-22T00:00:00.000+00:00',
636
+ '2018-08-23T00:00:00.000+00:00',
637
+ '2018-08-24T00:00:00.000+00:00',
638
+ '2018-08-25T00:00:00.000+00:00',
639
+ '2018-08-26T00:00:00.000+00:00',
640
+ ],
641
+ ],
642
+ fields: [
643
+ {
644
+ name: 'foo',
645
+ },
646
+ {
647
+ name: '_time',
648
+ },
649
+ ],
650
+ },
651
+ meta: {},
652
+ },
653
+ }}
654
+ />
655
+ );
656
+ ```
657
+
658
+ ## Icon Color - Based on Major Value
659
+
660
+ - **Key:** Icon Color Using Major Value
661
+
662
+ ```jsx
663
+ import React from 'react';
664
+ import SingleValueIcon from '@splunk/visualizations/SingleValueIcon';
665
+
666
+ export default () => (
667
+ <SingleValueIcon
668
+ context={{
669
+ iconColors: [
670
+ {
671
+ from: 5000,
672
+ value: '#A52A2A',
673
+ },
674
+ {
675
+ from: 1000,
676
+ to: 5000,
677
+ value: '#FFA500',
678
+ },
679
+ {
680
+ from: 500,
681
+ to: 1000,
682
+ value: '#FFFF00',
683
+ },
684
+ {
685
+ from: 100,
686
+ to: 500,
687
+ value: '#800080',
688
+ },
689
+ {
690
+ to: 100,
691
+ value: '#0000FF',
692
+ },
693
+ ],
694
+ }}
695
+ options={{
696
+ majorValue: '> primary | seriesByName("foo") | lastPoint()',
697
+ trendValue: '> primary | seriesByName("foo") | delta(-2)',
698
+ iconColor: '> majorValue | rangeValue(iconColors)',
699
+ }}
700
+ dataSources={{
701
+ primary: {
702
+ data: {
703
+ columns: [
704
+ ['1', '62', '103', '308', '587', '876', '930', '1320'],
705
+ [
706
+ '#FF0000',
707
+ '#00FFFF',
708
+ '#0000FF',
709
+ '#800080',
710
+ '#FFFF00',
711
+ '#FFA500',
712
+ '#A52A2A',
713
+ '#008000',
714
+ ],
715
+ ],
716
+ fields: [
717
+ {
718
+ name: 'foo',
719
+ },
720
+ {
721
+ name: 'bar',
722
+ },
723
+ ],
724
+ },
725
+ meta: {},
726
+ },
727
+ }}
728
+ />
729
+ );
730
+ ```
731
+
732
+ ## Icon Color - Based on Trend Value
733
+
734
+ - **Key:** Icon Color Using Trend Value
735
+
736
+ ```jsx
737
+ import React from 'react';
738
+ import SingleValueIcon from '@splunk/visualizations/SingleValueIcon';
739
+
740
+ export default () => (
741
+ <SingleValueIcon
742
+ context={{
743
+ iconColors: [
744
+ {
745
+ from: 5000,
746
+ value: '#A52A2A',
747
+ },
748
+ {
749
+ from: 1000,
750
+ to: 5000,
751
+ value: '#FFA500',
752
+ },
753
+ {
754
+ from: 500,
755
+ to: 1000,
756
+ value: '#FFFF00',
757
+ },
758
+ {
759
+ from: 100,
760
+ to: 500,
761
+ value: '#800080',
762
+ },
763
+ {
764
+ to: 100,
765
+ value: '#0000FF',
766
+ },
767
+ ],
768
+ }}
769
+ options={{
770
+ majorValue: '> primary | seriesByName("foo") | lastPoint()',
771
+ trendValue: '> primary | seriesByName("foo") | delta(-2)',
772
+ iconColor: '> trendValue | rangeValue(iconColors)',
773
+ }}
774
+ dataSources={{
775
+ primary: {
776
+ data: {
777
+ columns: [
778
+ ['1', '62', '103', '308', '587', '876', '930', '1320'],
779
+ [
780
+ '#FF0000',
781
+ '#00FFFF',
782
+ '#0000FF',
783
+ '#800080',
784
+ '#FFFF00',
785
+ '#FFA500',
786
+ '#A52A2A',
787
+ '#008000',
788
+ ],
789
+ ],
790
+ fields: [
791
+ {
792
+ name: 'foo',
793
+ },
794
+ {
795
+ name: 'bar',
796
+ },
797
+ ],
798
+ },
799
+ meta: {},
800
+ },
801
+ }}
802
+ />
803
+ );
804
+ ```
805
+
806
+ ## Icon Opacity - 0.2, Under Label - Specified
807
+
808
+ - **Key:** Icon Opacity
809
+
810
+ ```jsx
811
+ import React from 'react';
812
+ import SingleValueIcon from '@splunk/visualizations/SingleValueIcon';
813
+
814
+ export default () => (
815
+ <SingleValueIcon
816
+ options={{
817
+ iconOpacity: 0.2,
818
+ underLabel: 'Under Label Test',
819
+ }}
820
+ dataSources={{
821
+ primary: {
822
+ data: {
823
+ columns: [
824
+ ['1', '62', '103', '308', '587', '876', '930', '1320'],
825
+ [
826
+ '2018-08-19T00:00:00.000+00:00',
827
+ '2018-08-20T00:00:00.000+00:00',
828
+ '2018-08-21T00:00:00.000+00:00',
829
+ '2018-08-22T00:00:00.000+00:00',
830
+ '2018-08-23T00:00:00.000+00:00',
831
+ '2018-08-24T00:00:00.000+00:00',
832
+ '2018-08-25T00:00:00.000+00:00',
833
+ '2018-08-26T00:00:00.000+00:00',
834
+ ],
835
+ ],
836
+ fields: [
837
+ {
838
+ name: 'foo',
839
+ },
840
+ {
841
+ name: '_time',
842
+ },
843
+ ],
844
+ },
845
+ meta: {},
846
+ },
847
+ }}
848
+ />
849
+ );
850
+ ```
851
+
852
+ ## Icon Position - After
853
+
854
+ - **Key:** Fix Icon After
855
+
856
+ ```jsx
857
+ import React from 'react';
858
+ import SingleValueIcon from '@splunk/visualizations/SingleValueIcon';
859
+
860
+ export default () => (
861
+ <SingleValueIcon
862
+ options={{
863
+ icon: 'clock',
864
+ iconPosition: 'after',
865
+ majorValue: '> primary | seriesByName("foo") | lastPoint()',
866
+ }}
867
+ dataSources={{
868
+ primary: {
869
+ data: {
870
+ columns: [
871
+ ['1', '62', '103', '308', '587', '876', '930', '1320'],
872
+ [
873
+ '2018-08-19T00:00:00.000+00:00',
874
+ '2018-08-20T00:00:00.000+00:00',
875
+ '2018-08-21T00:00:00.000+00:00',
876
+ '2018-08-22T00:00:00.000+00:00',
877
+ '2018-08-23T00:00:00.000+00:00',
878
+ '2018-08-24T00:00:00.000+00:00',
879
+ '2018-08-25T00:00:00.000+00:00',
880
+ '2018-08-26T00:00:00.000+00:00',
881
+ ],
882
+ ],
883
+ fields: [
884
+ {
885
+ name: 'foo',
886
+ },
887
+ {
888
+ name: '_time',
889
+ },
890
+ ],
891
+ },
892
+ meta: {},
893
+ },
894
+ }}
895
+ />
896
+ );
897
+ ```
898
+
899
+ ## Icon - Pencil, Icon Position - Top, Unit - Specified, Unit Position - Before
900
+
901
+ - **Key:** Fix Icon Top
902
+
903
+ ```jsx
904
+ import React from 'react';
905
+ import SingleValueIcon from '@splunk/visualizations/SingleValueIcon';
906
+
907
+ export default () => (
908
+ <SingleValueIcon
909
+ options={{
910
+ icon: 'pencil',
911
+ iconPosition: 'top',
912
+ majorValue: '> primary | seriesByName("foo") | lastPoint()',
913
+ unit: '$',
914
+ unitPosition: 'before',
915
+ }}
916
+ dataSources={{
917
+ primary: {
918
+ data: {
919
+ columns: [
920
+ ['1', '62', '103', '308', '587', '876', '930', '1320'],
921
+ [
922
+ '2018-08-19T00:00:00.000+00:00',
923
+ '2018-08-20T00:00:00.000+00:00',
924
+ '2018-08-21T00:00:00.000+00:00',
925
+ '2018-08-22T00:00:00.000+00:00',
926
+ '2018-08-23T00:00:00.000+00:00',
927
+ '2018-08-24T00:00:00.000+00:00',
928
+ '2018-08-25T00:00:00.000+00:00',
929
+ '2018-08-26T00:00:00.000+00:00',
930
+ ],
931
+ ],
932
+ fields: [
933
+ {
934
+ name: 'foo',
935
+ },
936
+ {
937
+ name: '_time',
938
+ },
939
+ ],
940
+ },
941
+ meta: {},
942
+ },
943
+ }}
944
+ />
945
+ );
946
+ ```
947
+
948
+ ## Icon - Star, Icon Position - Below
949
+
950
+ - **Key:** Fix Icon Below
951
+
952
+ ```jsx
953
+ import React from 'react';
954
+ import SingleValueIcon from '@splunk/visualizations/SingleValueIcon';
955
+
956
+ export default () => (
957
+ <SingleValueIcon
958
+ options={{
959
+ icon: 'star',
960
+ iconPosition: 'below',
961
+ majorValue: '> primary | seriesByName("foo") | lastPoint()',
962
+ }}
963
+ dataSources={{
964
+ primary: {
965
+ data: {
966
+ columns: [
967
+ ['1', '62', '103', '308', '587', '876', '930', '1320'],
968
+ [
969
+ '2018-08-19T00:00:00.000+00:00',
970
+ '2018-08-20T00:00:00.000+00:00',
971
+ '2018-08-21T00:00:00.000+00:00',
972
+ '2018-08-22T00:00:00.000+00:00',
973
+ '2018-08-23T00:00:00.000+00:00',
974
+ '2018-08-24T00:00:00.000+00:00',
975
+ '2018-08-25T00:00:00.000+00:00',
976
+ '2018-08-26T00:00:00.000+00:00',
977
+ ],
978
+ ],
979
+ fields: [
980
+ {
981
+ name: 'foo',
982
+ },
983
+ {
984
+ name: '_time',
985
+ },
986
+ ],
987
+ },
988
+ meta: {},
989
+ },
990
+ }}
991
+ />
992
+ );
993
+ ```
994
+
995
+ ## Icon Position - Based on Major Value
996
+
997
+ - **Key:** Fix Icon Dynamic
998
+
999
+ ```jsx
1000
+ import React from 'react';
1001
+ import SingleValueIcon from '@splunk/visualizations/SingleValueIcon';
1002
+
1003
+ export default () => (
1004
+ <SingleValueIcon
1005
+ context={{
1006
+ iconPositionValues: [
1007
+ {
1008
+ from: '1321',
1009
+ value: 'top',
1010
+ },
1011
+ {
1012
+ to: '1321',
1013
+ value: 'below',
1014
+ },
1015
+ ],
1016
+ }}
1017
+ options={{
1018
+ icon: 'clock',
1019
+ iconPosition: '> majorValue | rangeValue(iconPositionValues)',
1020
+ majorValue: '> primary | seriesByName("foo") | lastPoint()',
1021
+ }}
1022
+ dataSources={{
1023
+ primary: {
1024
+ data: {
1025
+ columns: [
1026
+ ['1', '62', '103', '308', '587', '876', '930', '1320'],
1027
+ [
1028
+ '2018-08-19T00:00:00.000+00:00',
1029
+ '2018-08-20T00:00:00.000+00:00',
1030
+ '2018-08-21T00:00:00.000+00:00',
1031
+ '2018-08-22T00:00:00.000+00:00',
1032
+ '2018-08-23T00:00:00.000+00:00',
1033
+ '2018-08-24T00:00:00.000+00:00',
1034
+ '2018-08-25T00:00:00.000+00:00',
1035
+ '2018-08-26T00:00:00.000+00:00',
1036
+ ],
1037
+ ],
1038
+ fields: [
1039
+ {
1040
+ name: 'foo',
1041
+ },
1042
+ {
1043
+ name: '_time',
1044
+ },
1045
+ ],
1046
+ },
1047
+ meta: {},
1048
+ },
1049
+ }}
1050
+ />
1051
+ );
1052
+ ```
1053
+
1054
+ ## Major Color - Based on Major Value
1055
+
1056
+ - **Key:** Major Color Using Major Value
1057
+
1058
+ ```jsx
1059
+ import React from 'react';
1060
+ import SingleValueIcon from '@splunk/visualizations/SingleValueIcon';
1061
+
1062
+ export default () => (
1063
+ <SingleValueIcon
1064
+ context={{
1065
+ majorColors: [
1066
+ {
1067
+ from: 5000,
1068
+ value: '#A52A2A',
1069
+ },
1070
+ {
1071
+ from: 1000,
1072
+ to: 5000,
1073
+ value: '#FFA500',
1074
+ },
1075
+ {
1076
+ from: 500,
1077
+ to: 1000,
1078
+ value: '#FFFF00',
1079
+ },
1080
+ {
1081
+ from: 100,
1082
+ to: 500,
1083
+ value: '#800080',
1084
+ },
1085
+ {
1086
+ to: 100,
1087
+ value: '#0000FF',
1088
+ },
1089
+ ],
1090
+ }}
1091
+ options={{
1092
+ majorValue: '> primary | seriesByName("foo") | lastPoint()',
1093
+ trendValue: '> primary | seriesByName("foo") | delta(-2)',
1094
+ majorColor: '> majorValue | rangeValue(majorColors)',
1095
+ }}
1096
+ dataSources={{
1097
+ primary: {
1098
+ data: {
1099
+ columns: [
1100
+ ['1', '62', '103', '308', '587', '876', '930', '1320'],
1101
+ [
1102
+ '#FF0000',
1103
+ '#00FFFF',
1104
+ '#0000FF',
1105
+ '#800080',
1106
+ '#FFFF00',
1107
+ '#FFA500',
1108
+ '#A52A2A',
1109
+ '#008000',
1110
+ ],
1111
+ ],
1112
+ fields: [
1113
+ {
1114
+ name: 'foo',
1115
+ },
1116
+ {
1117
+ name: 'bar',
1118
+ },
1119
+ ],
1120
+ },
1121
+ meta: {},
1122
+ },
1123
+ }}
1124
+ />
1125
+ );
1126
+ ```
1127
+
1128
+ ## Major Color - Based on Trend Value, Major Font Size - 80
1129
+
1130
+ - **Key:** Major Color Using Trend Value
1131
+
1132
+ ```jsx
1133
+ import React from 'react';
1134
+ import SingleValueIcon from '@splunk/visualizations/SingleValueIcon';
1135
+
1136
+ export default () => (
1137
+ <SingleValueIcon
1138
+ context={{
1139
+ majorColors: [
1140
+ {
1141
+ from: 5000,
1142
+ value: '#A52A2A',
1143
+ },
1144
+ {
1145
+ from: 1000,
1146
+ to: 5000,
1147
+ value: '#FFA500',
1148
+ },
1149
+ {
1150
+ from: 500,
1151
+ to: 1000,
1152
+ value: '#FFFF00',
1153
+ },
1154
+ {
1155
+ from: 100,
1156
+ to: 500,
1157
+ value: '#800080',
1158
+ },
1159
+ {
1160
+ to: 100,
1161
+ value: '#0000FF',
1162
+ },
1163
+ ],
1164
+ }}
1165
+ options={{
1166
+ majorValue: '> primary | seriesByName("foo") | lastPoint()',
1167
+ trendValue: '> primary | seriesByName("foo") | delta(-2)',
1168
+ majorColor: '> trendValue | rangeValue(majorColors)',
1169
+ majorFontSize: 80,
1170
+ }}
1171
+ dataSources={{
1172
+ primary: {
1173
+ data: {
1174
+ columns: [
1175
+ ['1', '62', '103', '308', '587', '876', '930', '1320'],
1176
+ [
1177
+ '#FF0000',
1178
+ '#00FFFF',
1179
+ '#0000FF',
1180
+ '#800080',
1181
+ '#FFFF00',
1182
+ '#FFA500',
1183
+ '#A52A2A',
1184
+ '#008000',
1185
+ ],
1186
+ ],
1187
+ fields: [
1188
+ {
1189
+ name: 'foo',
1190
+ },
1191
+ {
1192
+ name: 'bar',
1193
+ },
1194
+ ],
1195
+ },
1196
+ meta: {},
1197
+ },
1198
+ }}
1199
+ />
1200
+ );
1201
+ ```
1202
+
1203
+ ## Major Value and Trend Value - Based on majorValueDisplay
1204
+
1205
+ - **Key:** Majorvaluebasedonmajorvaluedisplay
1206
+
1207
+ ```jsx
1208
+ import React from 'react';
1209
+ import SingleValueIcon from '@splunk/visualizations/SingleValueIcon';
1210
+
1211
+ export default () => (
1212
+ <SingleValueIcon
1213
+ options={{
1214
+ trendValue: '> primary | seriesByName("ingested_bytes") | delta(-2)',
1215
+ trendDisplay: 'percent',
1216
+ majorValue: '> primary | seriesByName("ingested_bytes") | lastPoint()',
1217
+ majorValueDisplay: '> majorValue | formatByType(byteFormatConfig)',
1218
+ }}
1219
+ context={{
1220
+ byteFormatConfig: {
1221
+ number: {
1222
+ output: 'byte',
1223
+ base: 'decimal',
1224
+ mantissa: 2,
1225
+ },
1226
+ },
1227
+ }}
1228
+ dataSources={{
1229
+ primary: {
1230
+ requestParams: { offset: 0, count: 20 },
1231
+ data: {
1232
+ columns: [['154305299', '126949782']],
1233
+ fields: [
1234
+ {
1235
+ name: 'ingested_bytes',
1236
+ },
1237
+ ],
1238
+ },
1239
+ meta: {},
1240
+ },
1241
+ }}
1242
+ />
1243
+ );
1244
+ ```
1245
+
1246
+ ## Major Value and Trend Value - Based on Foo Field
1247
+
1248
+ - **Key:** Field Foo
1249
+
1250
+ ```jsx
1251
+ import React from 'react';
1252
+ import SingleValueIcon from '@splunk/visualizations/SingleValueIcon';
1253
+
1254
+ export default () => (
1255
+ <SingleValueIcon
1256
+ options={{
1257
+ majorValue: '> primary | seriesByName("foo") | lastPoint()',
1258
+ trendValue: '> primary | seriesByName("foo") | delta(-2)',
1259
+ }}
1260
+ dataSources={{
1261
+ primary: {
1262
+ data: {
1263
+ columns: [
1264
+ ['1', '62', '103', '308', '587', '876', '930', '1320'],
1265
+ ['1', '62', '103', '308', '587', '876', '1195', '1220'],
1266
+ ],
1267
+ fields: [
1268
+ {
1269
+ name: 'foo',
1270
+ },
1271
+ {
1272
+ name: 'bar',
1273
+ },
1274
+ ],
1275
+ },
1276
+ meta: {},
1277
+ },
1278
+ }}
1279
+ />
1280
+ );
1281
+ ```
1282
+
1283
+ ## Major Value and Trend Value - Based on Bar Field
1284
+
1285
+ - **Key:** Field Bar
1286
+
1287
+ ```jsx
1288
+ import React from 'react';
1289
+ import SingleValueIcon from '@splunk/visualizations/SingleValueIcon';
1290
+
1291
+ export default () => (
1292
+ <SingleValueIcon
1293
+ options={{
1294
+ majorValue: '> primary | seriesByName("bar") | lastPoint()',
1295
+ trendValue: '> primary | seriesByName("bar") | delta(-2)',
1296
+ }}
1297
+ dataSources={{
1298
+ primary: {
1299
+ data: {
1300
+ columns: [
1301
+ ['1', '62', '103', '308', '587', '876', '930', '1320'],
1302
+ ['1', '62', '103', '308', '587', '876', '1195', '1220'],
1303
+ ],
1304
+ fields: [
1305
+ {
1306
+ name: 'foo',
1307
+ },
1308
+ {
1309
+ name: 'bar',
1310
+ },
1311
+ ],
1312
+ },
1313
+ meta: {},
1314
+ },
1315
+ }}
1316
+ />
1317
+ );
1318
+ ```
1319
+
1320
+ ## Trend Color - Based on Major Value
1321
+
1322
+ - **Key:** Trend Color Using Major Value
1323
+
1324
+ ```jsx
1325
+ import React from 'react';
1326
+ import SingleValueIcon from '@splunk/visualizations/SingleValueIcon';
1327
+
1328
+ export default () => (
1329
+ <SingleValueIcon
1330
+ context={{
1331
+ trendColorThresholds: [
1332
+ {
1333
+ from: 5000,
1334
+ value: '#A52A2A',
1335
+ },
1336
+ {
1337
+ from: 1000,
1338
+ to: 5000,
1339
+ value: '#FFA500',
1340
+ },
1341
+ {
1342
+ from: 500,
1343
+ to: 1000,
1344
+ value: '#FFFF00',
1345
+ },
1346
+ {
1347
+ from: 100,
1348
+ to: 500,
1349
+ value: '#800080',
1350
+ },
1351
+ {
1352
+ to: 100,
1353
+ value: '#0000FF',
1354
+ },
1355
+ ],
1356
+ }}
1357
+ options={{
1358
+ majorValue: '> primary | seriesByName("foo") | lastPoint()',
1359
+ trendValue: '> primary | seriesByName("foo") | delta(-2)',
1360
+ trendColor: '> majorValue | rangeValue(trendColorThresholds)',
1361
+ }}
1362
+ dataSources={{
1363
+ primary: {
1364
+ data: {
1365
+ columns: [
1366
+ ['1', '62', '103', '308', '587', '876', '930', '1320'],
1367
+ [
1368
+ '#FF0000',
1369
+ '#00FFFF',
1370
+ '#0000FF',
1371
+ '#800080',
1372
+ '#FFFF00',
1373
+ '#FFA500',
1374
+ '#A52A2A',
1375
+ '#008000',
1376
+ ],
1377
+ ],
1378
+ fields: [
1379
+ {
1380
+ name: 'foo',
1381
+ },
1382
+ {
1383
+ name: 'bar',
1384
+ },
1385
+ ],
1386
+ },
1387
+ meta: {},
1388
+ },
1389
+ }}
1390
+ />
1391
+ );
1392
+ ```
1393
+
1394
+ ## Trend Color - Based on Trend Value, Trend Font Size - 60
1395
+
1396
+ - **Key:** Trend Color Using Trend Value
1397
+
1398
+ ```jsx
1399
+ import React from 'react';
1400
+ import SingleValueIcon from '@splunk/visualizations/SingleValueIcon';
1401
+
1402
+ export default () => (
1403
+ <SingleValueIcon
1404
+ context={{
1405
+ trendColorThresholds: [
1406
+ {
1407
+ from: 5000,
1408
+ value: '#A52A2A',
1409
+ },
1410
+ {
1411
+ from: 1000,
1412
+ to: 5000,
1413
+ value: '#FFA500',
1414
+ },
1415
+ {
1416
+ from: 500,
1417
+ to: 1000,
1418
+ value: '#FFFF00',
1419
+ },
1420
+ {
1421
+ from: 100,
1422
+ to: 500,
1423
+ value: '#800080',
1424
+ },
1425
+ {
1426
+ to: 100,
1427
+ value: '#0000FF',
1428
+ },
1429
+ ],
1430
+ }}
1431
+ options={{
1432
+ majorValue: '> primary | seriesByName("foo") | lastPoint()',
1433
+ trendValue: '> primary | seriesByName("foo") | delta(-2)',
1434
+ trendColor: '> trendValue | rangeValue(trendColorThresholds)',
1435
+ trendFontSize: 60,
1436
+ }}
1437
+ dataSources={{
1438
+ primary: {
1439
+ data: {
1440
+ columns: [
1441
+ ['1', '62', '103', '308', '587', '876', '930', '1320'],
1442
+ [
1443
+ '#FF0000',
1444
+ '#00FFFF',
1445
+ '#0000FF',
1446
+ '#800080',
1447
+ '#FFFF00',
1448
+ '#FFA500',
1449
+ '#A52A2A',
1450
+ '#008000',
1451
+ ],
1452
+ ],
1453
+ fields: [
1454
+ {
1455
+ name: 'foo',
1456
+ },
1457
+ {
1458
+ name: 'bar',
1459
+ },
1460
+ ],
1461
+ },
1462
+ meta: {},
1463
+ },
1464
+ }}
1465
+ />
1466
+ );
1467
+ ```
1468
+
1469
+ ## Trend Display Mode - Based on Threshold Value
1470
+
1471
+ - **Key:** Trend Display Mode
1472
+
1473
+ ```jsx
1474
+ import React from 'react';
1475
+ import SingleValue from '@splunk/visualizations/SingleValueIcon';
1476
+
1477
+ export default () => (
1478
+ <SingleValue
1479
+ context={{
1480
+ trendDisplayModeValues: [
1481
+ {
1482
+ from: '391',
1483
+ value: 'absolute',
1484
+ },
1485
+ {
1486
+ to: '391',
1487
+ value: 'percent',
1488
+ },
1489
+ ],
1490
+ }}
1491
+ options={{
1492
+ majorValue: '> primary | seriesByName("foo") | lastPoint()',
1493
+ trendValue: '> primary | seriesByName("foo") | delta(-2)',
1494
+ trendDisplayMode: '> trendValue | rangeValue(trendDisplayModeValues)',
1495
+ }}
1496
+ dataSources={{
1497
+ primary: {
1498
+ data: {
1499
+ columns: [
1500
+ ['1', '62', '103', '308', '587', '876', '930', '1320'],
1501
+ [
1502
+ '2018-08-19T00:00:00.000+00:00',
1503
+ '2018-08-20T00:00:00.000+00:00',
1504
+ '2018-08-21T00:00:00.000+00:00',
1505
+ '2018-08-22T00:00:00.000+00:00',
1506
+ '2018-08-23T00:00:00.000+00:00',
1507
+ '2018-08-24T00:00:00.000+00:00',
1508
+ '2018-08-25T00:00:00.000+00:00',
1509
+ '2018-08-26T00:00:00.000+00:00',
1510
+ ],
1511
+ ],
1512
+ fields: [
1513
+ {
1514
+ name: 'foo',
1515
+ },
1516
+ {
1517
+ name: '_time',
1518
+ },
1519
+ ],
1520
+ },
1521
+ meta: {},
1522
+ },
1523
+ }}
1524
+ />
1525
+ );
1526
+ ```
1527
+
1528
+ ## Trellis
1529
+
1530
+ - **Key:** Trellis
1531
+
1532
+ ```jsx
1533
+ import React from 'react';
1534
+ import { FeatureFlagContextProvider } from '@splunk/visualization-context/FeatureFlagContext';
1535
+ import SingleValueIcon from '@splunk/visualizations/SingleValueIcon';
1536
+
1537
+ export default () => (
1538
+ <FeatureFlagContextProvider value={{ visualizations_enableTrellis: true }}>
1539
+ <SingleValueIcon
1540
+ height={300}
1541
+ options={{
1542
+ splitByLayout: 'trellis',
1543
+ trellisSplitBy: 'component',
1544
+ icon: 'clock',
1545
+ trellisColumns: 3,
1546
+ trellis: {
1547
+ minColumnWidth: 400,
1548
+ },
1549
+ }}
1550
+ dataSources={{
1551
+ primary: {
1552
+ data: {
1553
+ fields: [
1554
+ {
1555
+ name: 'component',
1556
+ groupby_rank: '0',
1557
+ },
1558
+ {
1559
+ name: 'foo',
1560
+ },
1561
+ ],
1562
+ columns: [
1563
+ ['Database', 'API', 'Cache', 'Queue', 'Frontend', 'Backend'],
1564
+ ['1523', '2847', '1956', '3124', '2135', '2689'],
1565
+ ],
1566
+ },
1567
+ meta: {},
1568
+ },
1569
+ }}
1570
+ />
1571
+ </FeatureFlagContextProvider>
1572
+ );
1573
+ ```