Does anyone have an idea how to use the FieldConfig units property? I have a datasource which pulls from a backend service. I want to set the default units setting in the dataframe. Does anyone have some sample code on how to make that happen?
* True if data source can write a value to the path. Auth/authz are supported separately
*/
writeable?: boolean;
/**
* True if data source field supports ad-hoc filters
*/
filterable?: boolean;
// Numeric Options
unit?: string;
decimals?: DecimalCount; // Significant digits (for display)
min?: number | null;
max?: number | null;
// Interval indicates the expected regular step between values in the series.
// When an interval exists, consumers can identify "missing" values when the expected value is not present.
// The grafana timeseries visualization will render disconnected values when missing values are found it the time field.
// The interval uses the same units as the values. For time.Time, this is defined in milliseconds.
interval?: number | null;
Any assistance would be greatly appreciated.