@splunk/visualization-schemas 28.7.0 → 28.8.1
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/dist/cjs/index.js
CHANGED
|
@@ -106,6 +106,7 @@ __export(src_exports, {
|
|
|
106
106
|
singleValueRadialOptionsSchema: () => singleValueRadialOptionsSchema,
|
|
107
107
|
tableOptionsSchema: () => tableOptionsSchema,
|
|
108
108
|
timelineOptionsSchema: () => timelineOptionsSchema,
|
|
109
|
+
treemapOptionsSchema: () => treemapOptionsSchema,
|
|
109
110
|
validAlignments: () => validAlignments,
|
|
110
111
|
validCellRenderers: () => validCellRenderers,
|
|
111
112
|
validColumnAlignments: () => validColumnAlignments,
|
|
@@ -4381,6 +4382,12 @@ var pureRichTextOptionsSchema = {
|
|
|
4381
4382
|
description: "HTML content for the rich text editor. Inline styles should only include differences from default text styles.",
|
|
4382
4383
|
type: "string",
|
|
4383
4384
|
default: "<p></p>"
|
|
4385
|
+
},
|
|
4386
|
+
// Data display
|
|
4387
|
+
previewTokenValues: {
|
|
4388
|
+
description: "When true, resolved token values are shown in the editor while in edit mode. When false (default), $token$ patterns are displayed as-is in edit mode. Tokens always resolve in view mode regardless of this setting.",
|
|
4389
|
+
type: "boolean",
|
|
4390
|
+
default: false
|
|
4384
4391
|
}
|
|
4385
4392
|
};
|
|
4386
4393
|
var richTextOptionsSchema = pureRichTextOptionsSchema;
|
|
@@ -5541,6 +5548,11 @@ var tableOptionsSchema = enhanceOptionsSchemaWithDynamicOptions({
|
|
|
5541
5548
|
type: "number",
|
|
5542
5549
|
default: 10
|
|
5543
5550
|
},
|
|
5551
|
+
dynamicHeight: {
|
|
5552
|
+
default: false,
|
|
5553
|
+
description: "In view mode, allow the table to grow or shrink to fit the data. Ignored in edit mode.",
|
|
5554
|
+
type: "boolean"
|
|
5555
|
+
},
|
|
5544
5556
|
font: {
|
|
5545
5557
|
default: "proportional",
|
|
5546
5558
|
description: "Specify the font style to use for table content.",
|
|
@@ -5846,4 +5858,112 @@ var timelineOptionsSchema = enhanceOptionsSchemaWithDynamicOptions({
|
|
|
5846
5858
|
type: "number"
|
|
5847
5859
|
}
|
|
5848
5860
|
});
|
|
5861
|
+
|
|
5862
|
+
// src/optionsSchemas/treemap.ts
|
|
5863
|
+
var treemapOptionsSchema = enhanceOptionsSchemaWithDynamicOptions({
|
|
5864
|
+
additionalTooltipFields: {
|
|
5865
|
+
default: [],
|
|
5866
|
+
description: "Specify additional fields to display in the tooltip for each node.",
|
|
5867
|
+
type: "array",
|
|
5868
|
+
items: {
|
|
5869
|
+
type: "string"
|
|
5870
|
+
}
|
|
5871
|
+
},
|
|
5872
|
+
backgroundColor: {
|
|
5873
|
+
default: "> themes.defaultBackgroundColor",
|
|
5874
|
+
description: 'Specify the color for the background. You may use a dataSource to apply the color. The default for enterprise light is "#ffffff". The default for enterprise dark is "#000000". The default for prisma dark is "#0b0c0e".',
|
|
5875
|
+
pattern: COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
|
|
5876
|
+
type: "string"
|
|
5877
|
+
},
|
|
5878
|
+
dataColors: {
|
|
5879
|
+
description: 'Specify the colors to use for treemap nodes. You can use an array of colors to be picked from, or you can use a data source to apply dynamic coloring. For example, "> primary | seriesByName("population") | rangeValue(colorRangeConfig)". By default, the dataColors option is not defined and seriesColors is used for categorical coloring.',
|
|
5880
|
+
type: ["string", "array"],
|
|
5881
|
+
items: {
|
|
5882
|
+
type: "string"
|
|
5883
|
+
}
|
|
5884
|
+
},
|
|
5885
|
+
dataColorValues: {
|
|
5886
|
+
default: `> primary | seriesByType('number')`,
|
|
5887
|
+
description: "Specify the array of values used for dynamic treemap coloring.",
|
|
5888
|
+
type: "array",
|
|
5889
|
+
items: {
|
|
5890
|
+
type: ["number", "string"]
|
|
5891
|
+
}
|
|
5892
|
+
},
|
|
5893
|
+
legendDisplay: {
|
|
5894
|
+
default: "off",
|
|
5895
|
+
description: "Specify the location of the legend on the panel.",
|
|
5896
|
+
pattern: getPattern(["bottom", "off"]),
|
|
5897
|
+
type: "string"
|
|
5898
|
+
},
|
|
5899
|
+
nodeIds: {
|
|
5900
|
+
default: '> primary | seriesByType("string")',
|
|
5901
|
+
description: "Specify the array of node IDs in the hierarchy.",
|
|
5902
|
+
type: "array",
|
|
5903
|
+
items: {
|
|
5904
|
+
type: "string"
|
|
5905
|
+
}
|
|
5906
|
+
},
|
|
5907
|
+
nodeLabels: {
|
|
5908
|
+
default: '> primary | seriesByType("string")',
|
|
5909
|
+
description: "Specify the array of display labels for treemap nodes.",
|
|
5910
|
+
type: "array",
|
|
5911
|
+
items: {
|
|
5912
|
+
type: "string"
|
|
5913
|
+
}
|
|
5914
|
+
},
|
|
5915
|
+
parent: {
|
|
5916
|
+
description: "Specify the array of parent node names in the hierarchy.",
|
|
5917
|
+
type: "array",
|
|
5918
|
+
items: {
|
|
5919
|
+
type: "string"
|
|
5920
|
+
}
|
|
5921
|
+
},
|
|
5922
|
+
resultLimit: {
|
|
5923
|
+
description: "Specify the maximum number of treemap data points rendered.",
|
|
5924
|
+
default: 1e4,
|
|
5925
|
+
type: "number"
|
|
5926
|
+
},
|
|
5927
|
+
seriesColors: {
|
|
5928
|
+
default: visualization_color_palettes_exports.VIZ_CATEGORICAL,
|
|
5929
|
+
description: 'Specify the colors used for root categories. For example, ["#FF0000", "#0000FF", "#008000"].',
|
|
5930
|
+
type: "array",
|
|
5931
|
+
items: {
|
|
5932
|
+
type: "string"
|
|
5933
|
+
}
|
|
5934
|
+
},
|
|
5935
|
+
showChildValues: {
|
|
5936
|
+
default: true,
|
|
5937
|
+
description: "Specify whether to display values for child and leaf nodes.",
|
|
5938
|
+
type: "boolean"
|
|
5939
|
+
},
|
|
5940
|
+
showParentValues: {
|
|
5941
|
+
default: true,
|
|
5942
|
+
description: "Specify whether to display the values of each parent node. This only applies when showSubdivisions is true.",
|
|
5943
|
+
type: "boolean"
|
|
5944
|
+
},
|
|
5945
|
+
showSubdivisions: {
|
|
5946
|
+
default: true,
|
|
5947
|
+
description: "Specify whether to display nested subdivisions inside parent nodes.",
|
|
5948
|
+
type: "boolean"
|
|
5949
|
+
},
|
|
5950
|
+
showTooltip: {
|
|
5951
|
+
default: false,
|
|
5952
|
+
description: "Specify whether to display the tooltip when hovering over nodes.",
|
|
5953
|
+
type: "boolean"
|
|
5954
|
+
},
|
|
5955
|
+
sumFromLeafNodes: {
|
|
5956
|
+
default: false,
|
|
5957
|
+
description: "Specify whether parent values are calculated from leaf children instead of using provided parent values.",
|
|
5958
|
+
type: "boolean"
|
|
5959
|
+
},
|
|
5960
|
+
value: {
|
|
5961
|
+
default: `> primary | seriesByType('number')`,
|
|
5962
|
+
description: "Specify the numeric field used to determine the size (area) of each treemap node.",
|
|
5963
|
+
type: "array",
|
|
5964
|
+
items: {
|
|
5965
|
+
type: "number"
|
|
5966
|
+
}
|
|
5967
|
+
}
|
|
5968
|
+
});
|
|
5849
5969
|
//# sourceMappingURL=index.js.map
|