@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.
- package/Area.config.js +17 -3
- package/Area.config.js.map +2 -2
- package/Area.js +34 -12
- package/Area.js.map +2 -2
- package/Bar.config.js +17 -3
- package/Bar.config.js.map +3 -3
- package/Bar.js +34 -12
- package/Bar.js.map +3 -3
- package/Bubble.config.js +1 -1
- package/Bubble.config.js.map +2 -2
- package/Bubble.js +9 -9
- package/Bubble.js.map +2 -2
- package/CHANGELOG.external.md +1610 -0
- package/ChoroplethSvg.js +6 -7
- package/ChoroplethSvg.js.map +2 -2
- package/Column.config.js +17 -3
- package/Column.config.js.map +3 -3
- package/Column.js +34 -12
- package/Column.js.map +3 -3
- package/Ellipse.js +6 -7
- package/Ellipse.js.map +2 -2
- package/Events.js +24 -24
- package/Events.js.map +3 -3
- package/FillerGauge.config.js +8 -28
- package/FillerGauge.config.js.map +2 -2
- package/FillerGauge.js +14 -35
- package/FillerGauge.js.map +2 -2
- package/Image.js +6 -7
- package/Image.js.map +2 -2
- package/Line.config.js +17 -3
- package/Line.config.js.map +3 -3
- package/Line.js +34 -12
- package/Line.js.map +3 -3
- package/LinkGraph.js +25 -25
- package/LinkGraph.js.map +3 -3
- package/Map.config.js +11 -0
- package/Map.config.js.map +2 -2
- package/Map.js +68 -32
- package/Map.js.map +2 -2
- package/Markdown.js +6 -7
- package/Markdown.js.map +2 -2
- package/MarkerGauge.config.js +8 -25
- package/MarkerGauge.config.js.map +2 -2
- package/MarkerGauge.js +14 -32
- package/MarkerGauge.js.map +2 -2
- package/ParallelCoordinates.js +6 -7
- package/ParallelCoordinates.js.map +2 -2
- package/Pie.config.js +123 -3
- package/Pie.config.js.map +3 -3
- package/Pie.js +742 -22
- package/Pie.js.map +4 -4
- package/Punchcard.js +6 -7
- package/Punchcard.js.map +2 -2
- package/Rectangle.js +6 -7
- package/Rectangle.js.map +2 -2
- package/Sankey.js +11 -11
- package/Sankey.js.map +2 -2
- package/Scatter.config.js +313 -113
- package/Scatter.config.js.map +4 -4
- package/Scatter.js +928 -131
- package/Scatter.js.map +4 -4
- package/SingleValue.js +15 -8
- package/SingleValue.js.map +2 -2
- package/SingleValueIcon.js +15 -8
- package/SingleValueIcon.js.map +2 -2
- package/SingleValueRadial.js +15 -8
- package/SingleValueRadial.js.map +2 -2
- package/TRELLIS.md +12 -3
- package/Table.js +6 -7
- package/Table.js.map +2 -2
- package/Timeline.js +151 -83
- package/Timeline.js.map +4 -4
- package/common/Charting.js +2 -1
- package/common/Charting.js.map +2 -2
- package/common/utils/dataUtils.js +2 -1
- package/common/utils/dataUtils.js.map +2 -2
- package/common/utils/mapUtils.js +16 -8
- package/common/utils/mapUtils.js.map +2 -2
- package/common/utils/styleUtils.js +29 -0
- package/common/utils/styleUtils.js.map +7 -0
- package/common/utils/trellisUtils.js +9 -1
- package/common/utils/trellisUtils.js.map +2 -2
- package/common/withDashboardViz.js +6 -7
- package/common/withDashboardViz.js.map +2 -2
- 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
|

|
|
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.
|
|
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.
|
|
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
|
-
|
|
1795
|
+
const clonedEvaluatedOptions = __spreadValues({}, evaluatedOptionsToUse);
|
|
1796
1796
|
if (isTrellisOn) {
|
|
1797
|
-
clonedEvaluatedOptions =
|
|
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
|
|
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"], {});
|