@splunk/visualizations 27.2.1 → 27.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/Area.config.js +17 -3
  2. package/Area.config.js.map +2 -2
  3. package/Area.js +34 -12
  4. package/Area.js.map +2 -2
  5. package/Bar.config.js +17 -3
  6. package/Bar.config.js.map +3 -3
  7. package/Bar.js +34 -12
  8. package/Bar.js.map +3 -3
  9. package/Bubble.config.js +1 -1
  10. package/Bubble.config.js.map +2 -2
  11. package/Bubble.js +9 -9
  12. package/Bubble.js.map +2 -2
  13. package/CHANGELOG.external.md +1610 -0
  14. package/ChoroplethSvg.js +6 -7
  15. package/ChoroplethSvg.js.map +2 -2
  16. package/Column.config.js +17 -3
  17. package/Column.config.js.map +3 -3
  18. package/Column.js +34 -12
  19. package/Column.js.map +3 -3
  20. package/Ellipse.js +6 -7
  21. package/Ellipse.js.map +2 -2
  22. package/Events.js +24 -24
  23. package/Events.js.map +3 -3
  24. package/FillerGauge.config.js +8 -28
  25. package/FillerGauge.config.js.map +2 -2
  26. package/FillerGauge.js +14 -35
  27. package/FillerGauge.js.map +2 -2
  28. package/Image.js +6 -7
  29. package/Image.js.map +2 -2
  30. package/Line.config.js +17 -3
  31. package/Line.config.js.map +3 -3
  32. package/Line.js +34 -12
  33. package/Line.js.map +3 -3
  34. package/LinkGraph.js +25 -25
  35. package/LinkGraph.js.map +3 -3
  36. package/Map.config.js +11 -0
  37. package/Map.config.js.map +2 -2
  38. package/Map.js +68 -32
  39. package/Map.js.map +2 -2
  40. package/Markdown.js +6 -7
  41. package/Markdown.js.map +2 -2
  42. package/MarkerGauge.config.js +8 -25
  43. package/MarkerGauge.config.js.map +2 -2
  44. package/MarkerGauge.js +14 -32
  45. package/MarkerGauge.js.map +2 -2
  46. package/ParallelCoordinates.js +6 -7
  47. package/ParallelCoordinates.js.map +2 -2
  48. package/Pie.config.js +123 -3
  49. package/Pie.config.js.map +3 -3
  50. package/Pie.js +742 -22
  51. package/Pie.js.map +4 -4
  52. package/Punchcard.js +6 -7
  53. package/Punchcard.js.map +2 -2
  54. package/Rectangle.js +6 -7
  55. package/Rectangle.js.map +2 -2
  56. package/Sankey.js +11 -11
  57. package/Sankey.js.map +2 -2
  58. package/Scatter.config.js +313 -113
  59. package/Scatter.config.js.map +4 -4
  60. package/Scatter.js +928 -131
  61. package/Scatter.js.map +4 -4
  62. package/SingleValue.js +15 -8
  63. package/SingleValue.js.map +2 -2
  64. package/SingleValueIcon.js +15 -8
  65. package/SingleValueIcon.js.map +2 -2
  66. package/SingleValueRadial.js +15 -8
  67. package/SingleValueRadial.js.map +2 -2
  68. package/TRELLIS.md +12 -3
  69. package/Table.js +6 -7
  70. package/Table.js.map +2 -2
  71. package/Timeline.js +151 -83
  72. package/Timeline.js.map +4 -4
  73. package/common/Charting.js +2 -1
  74. package/common/Charting.js.map +2 -2
  75. package/common/utils/dataUtils.js +2 -1
  76. package/common/utils/dataUtils.js.map +2 -2
  77. package/common/utils/mapUtils.js +16 -8
  78. package/common/utils/mapUtils.js.map +2 -2
  79. package/common/utils/styleUtils.js +29 -0
  80. package/common/utils/styleUtils.js.map +7 -0
  81. package/common/utils/trellisUtils.js +9 -1
  82. package/common/utils/trellisUtils.js.map +2 -2
  83. package/common/withDashboardViz.js +6 -7
  84. package/common/withDashboardViz.js.map +2 -2
  85. package/package.json +21 -20
package/TRELLIS.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Trellis layout
2
2
 
3
- > Trellis is only available for Area, Bar, Column, Line and Single value visualizations.
3
+ > Trellis is only available for Area, Bar, Column, Line, Pie, Scatter and Single value visualizations.
4
4
 
5
5
  Organize your search results with the trellis layout for a holistic view of your data. Trellis layout visualizes your search results by separating each value field or aggregation.
6
6
 
@@ -18,7 +18,7 @@ Configure your visualization for the trellis layout by adding the `splitByLayout
18
18
 
19
19
  Customers with access to a Unified Dashboard Framework (UDF) **Edit** mode can create the trellis layout using the following steps. If you’re not using UDF, skip to step 4.
20
20
 
21
- 1. Select a visualization that supports trellis (Area, Bar, Column, Line, Single value) using the visual editor by clicking the **Add Chart** dropdown menu in the editing toolbar.
21
+ 1. Select a visualization that supports trellis (Area, Bar, Column, Line, Pie, Scatter, Single value) using the visual editor by clicking the **Add Chart** dropdown menu in the editing toolbar.
22
22
  2. Select the visualization on your dashboard so that it's highlighted with the blue editing outline.
23
23
  3. Set up a new data source by adding selecting **+ Create Search** and adding a search to the **Search query** window. Or, select an existing data source under the **Search**, **Saved Search**, or **Chain Search** dropdown lists.
24
24
  4. Activate the trellis layout by toggling on **Trellis Layout** in the **Data display** section of the Configuration panel.
@@ -36,7 +36,7 @@ Additionally, you can add the following trellis configurations to the `options`
36
36
  | trellisMinColumnWidth | number | 100 | Specify the minimum width, in pixels, of each visualization in the trellis container. If you resize the window or panel, you can view the remaining visualizations by scrolling. |
37
37
  | trellisPageCount | number | 20 | Specify the maximum number of visualizations to display on a single page in the trellis container. The remaining visualizations paginate accordingly. |
38
38
  | trellisRowHeight | number | 70 | Specify each visualization's height, in pixels, in the trellis container. If you resize the window or panel, you can view the remaining visualizations by scrolling. |
39
- | trellisSharedScale | boolean | true | If applicable, specify whether all visualizations will share the same scale in the trellis container. This only applies to Area, Bar, Column and Line chart. |
39
+ | trellisSharedScale | boolean | true | If applicable, specify whether all visualizations will share the same scale in the trellis container. This only applies to Area, Bar, Column, Scatter and Line chart. |
40
40
  | trellisSplitBy | string | n/a | If applicable, specify the column's field name with categories used or aggregations to split the data into individual visualizations for trellis display. If you use an SPL `timechart` command, this might default to the SPL `by` clause field. If you use an SPL `chart` command, this might default to the first string field. |
41
41
  ```
42
42
 
@@ -295,3 +295,12 @@ You can customize the number of visualizations to display in a single row of the
295
295
  The following example shows how visualizations might extend beyond the trellis panel with a `trellisMinColumnWidth: 150` and `trellisColumns: 6`.
296
296
 
297
297
  ![](./src/common/docs/images/trellis-col-3.png)
298
+
299
+ ## Event payload for trellis
300
+
301
+ When the Trellis layout is enabled, the event payload object includes two additional key-value pairs, along with the existing payload:
302
+
303
+ 1. `trellis.name` - The value set for the `trellisSplitBy` option.
304
+ 2. `trellis.value` - The specific value used in the title of each Trellis child visualization.
305
+
306
+ Examples can be found in the Events tab on the Trellis-supported visualizations page.
package/Table.js CHANGED
@@ -1062,7 +1062,7 @@ var withFixedSizeContainer = (Viz) => {
1062
1062
  FixSizeItem,
1063
1063
  {
1064
1064
  "data-test": "fix-size-item",
1065
- "data-splunk-visualization-version": "27.2.1 - 41b7410be",
1065
+ "data-splunk-visualization-version": "27.4.0 - 92ef39d5c",
1066
1066
  width,
1067
1067
  height,
1068
1068
  backgroundColor
@@ -1128,7 +1128,7 @@ var Cover = styled_components_default.div`
1128
1128
  bottom: 0;
1129
1129
  `;
1130
1130
  var Blocker = styled_components_default.div.attrs({
1131
- "data-splunk-visualization-version": "27.2.1 - 41b7410be"
1131
+ "data-splunk-visualization-version": "27.4.0 - 92ef39d5c"
1132
1132
  })`
1133
1133
  position: relative;
1134
1134
  width: 100%;
@@ -1792,11 +1792,9 @@ var withDashboardViz = (opts) => {
1792
1792
  useAsyncEvaluatedOptions
1793
1793
  ]);
1794
1794
  const evaluatedOptionsToUse = !useAsyncEvaluatedOptions ? evaluatedOptions : evaluatedOptionsAsync;
1795
- let clonedEvaluatedOptions = evaluatedOptionsToUse;
1795
+ const clonedEvaluatedOptions = __spreadValues({}, evaluatedOptionsToUse);
1796
1796
  if (isTrellisOn) {
1797
- clonedEvaluatedOptions = __spreadProps(__spreadValues({}, evaluatedOptionsToUse), {
1798
- backgroundColor: clonedEvaluatedOptions == null ? void 0 : clonedEvaluatedOptions.trellisBackgroundColor
1799
- });
1797
+ clonedEvaluatedOptions.backgroundColor = clonedEvaluatedOptions == null ? void 0 : clonedEvaluatedOptions.trellisBackgroundColor;
1800
1798
  }
1801
1799
  react_exports.useEffect(() => {
1802
1800
  onComputedProps(clonedEvaluatedOptions);
@@ -1855,7 +1853,8 @@ var withDashboardViz = (opts) => {
1855
1853
  }));
1856
1854
  let dataSourceMetadata = {};
1857
1855
  const OptionKey = "paginateDataSourceKey";
1858
- const paginateDataSourceKey = (0, lodash_exports.has)(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey] || "primary";
1856
+ const optsKey = (0, lodash_exports.has)(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey];
1857
+ const paginateDataSourceKey = typeof optsKey === "string" ? optsKey : "primary";
1859
1858
  if (vizConfig.supports.indexOf("page-and-sort" /* PAGE_AND_SORT */) > -1 && (0, lodash_exports.has)(dataSources, paginateDataSourceKey)) {
1860
1859
  const requestParams = (0, lodash_exports.get)(dataSources, [paginateDataSourceKey, "requestParams"], {});
1861
1860
  const meta = (0, lodash_exports.get)(dataSources, [paginateDataSourceKey, "meta"], {});