mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
TimeSeries: Support for log scale and negative numbers (#54812)
This commit is contained in:
@@ -21,7 +21,7 @@ GraphTransform: "constant" | "negative-Y" @cue
|
||||
LineInterpolation: "linear" | "smooth" | "stepBefore" | "stepAfter" @cuetsy(kind="enum")
|
||||
|
||||
// TODO docs
|
||||
ScaleDistribution: "linear" | "log" | "ordinal" @cuetsy(kind="enum")
|
||||
ScaleDistribution: "linear" | "log" | "ordinal" | "symlog" @cuetsy(kind="enum")
|
||||
|
||||
// TODO docs
|
||||
GraphGradientMode: "none" | "opacity" | "hue" | "scheme" @cuetsy(kind="enum")
|
||||
@@ -83,6 +83,7 @@ PointsConfig: {
|
||||
ScaleDistributionConfig: {
|
||||
type: ScaleDistribution
|
||||
log?: number
|
||||
linearThreshold?: number
|
||||
} @cuetsy(kind="interface")
|
||||
|
||||
// TODO docs
|
||||
|
||||
@@ -46,6 +46,7 @@ export enum ScaleDistribution {
|
||||
Linear = 'linear',
|
||||
Log = 'log',
|
||||
Ordinal = 'ordinal',
|
||||
Symlog = 'symlog',
|
||||
}
|
||||
|
||||
export enum GraphGradientMode {
|
||||
@@ -116,6 +117,7 @@ export interface PointsConfig {
|
||||
}
|
||||
|
||||
export interface ScaleDistributionConfig {
|
||||
linearThreshold?: number;
|
||||
log?: number;
|
||||
type: ScaleDistribution;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user