VisualizationBuilder🔗
Constructor🔗
Methods🔗
build🔗
Builds the object.
actions🔗
Define interactive HTTP requests that can be triggered from data visualizations.
axisBorderShow🔗
axisCenteredZero🔗
axisColorMode🔗
axisGridShow🔗
axisLabel🔗
axisPlacement🔗
axisSoftMax🔗
axisSoftMin🔗
axisWidth🔗
barAlignment🔗
barMaxWidth🔗
barWidthFactor🔗
candleStyle🔗
Sets the style of the candlesticks
colorScheme🔗
Panel color configuration
colorStrategy🔗
Sets the color strategy for the candlesticks
colors🔗
Set which colors are used when the price movement is up or down
dataLinks🔗
The behavior when clicking on a result
decimals🔗
Specify the number of decimals Grafana includes in the rendered value.
If you leave this field blank, Grafana automatically truncates the number of decimals based on the value.
For example 1.1234 will display as 1.12 and 100.456 will display as 100.
To display all decimals, set the unit to String.
description🔗
Human readable field metadata
displayName🔗
The display value for this field. This supports template variables blank is auto
displayNameFromDS🔗
This can be used by data sources that return and explicit naming structure for values and labels
When this property is configured, this value is used rather than the default naming strategy.
drawStyle🔗
fieldMinMax🔗
Calculate min max per field
fields🔗
Map fields to appropriate dimension
fillBelowTo🔗
fillColor🔗
fillOpacity🔗
gradientMode🔗
hideFrom🔗
includeAllFields🔗
When enabled, all fields will be sent to the graph
insertNulls🔗
legend🔗
lineColor🔗
lineInterpolation🔗
lineStyle🔗
lineWidth🔗
mappings🔗
Convert input values into a display string
max🔗
The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields.
min🔗
The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields.
mode🔗
Sets which dimensions are used for the visualization
noValue🔗
Alternative to empty string
nullValueMode🔗
How null values should be handled when calculating field stats
"null" - Include null values, "connected" - Ignore nulls, "null as zero" - Treat nulls as zero
override🔗
Overrides are the options applied to specific fields overriding the defaults.
public VisualizationBuilder override(String systemRef, MatcherConfig matcher, List<DynamicConfigValue> properties)
overrideByFieldType🔗
Adds override rules for all the fields of the given type.
public VisualizationBuilder overrideByFieldType(String fieldType, List<DynamicConfigValue> properties)
overrideByName🔗
Adds override rules for a specific field, referred to by its name.
overrideByQuery🔗
overrideByRegexp🔗
Adds override rules for the fields whose name match the given regexp.
overrides🔗
Overrides are the options applied to specific fields overriding the defaults.
public VisualizationBuilder overrides(List<com.grafana.foundation.cog.Builder<Dashboardv2beta1FieldConfigSourceOverrides>> overrides)
path🔗
An explicit path to the field in the datasource. When the frame meta includes a path,
This will default to `${frame.meta.path}/${field.name}
When defined, this value can be used as an identifier within the datasource scope, and
may be used to update the results
pointColor🔗
pointSize🔗
pointSymbol🔗
scaleDistribution🔗
public VisualizationBuilder scaleDistribution(com.grafana.foundation.cog.Builder<ScaleDistributionConfig> scaleDistribution)
showPoints🔗
spanNulls🔗
Indicate if null values should be treated as gaps or connected.
When the value is a number, it represents the maximum delta in the
X axis that should be considered connected. For timeseries, this is milliseconds
stacking🔗
thresholds🔗
Map numeric values to states
public VisualizationBuilder thresholds(com.grafana.foundation.cog.Builder<ThresholdsConfig> thresholds)
thresholdsStyle🔗
public VisualizationBuilder thresholdsStyle(com.grafana.foundation.cog.Builder<GraphThresholdsStyleConfig> thresholdsStyle)
tooltip🔗
transform🔗
unit🔗
Unit a field should use. The unit you select is applied to all fields except time.
You can use the units ID availables in Grafana or a custom unit.
Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts
As custom unit, you can use the following formats:
suffix:<suffix> for custom unit that should go after value.
prefix:<prefix> for custom unit that should go before value.
time:<format> For custom date time formats type for example time:YYYY-MM-DD.
si:<base scale><unit characters> for custom SI units. For example: si: mF. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character.
count:<unit> for a custom count unit.
currency:<unit> for custom a currency unit.