TimeSeries: Support for log scale and negative numbers (#54812)

This commit is contained in:
Leon Sorokin
2022-09-08 11:52:57 -05:00
committed by GitHub
parent 6a7e1caced
commit eb90d0c4b5
8 changed files with 86 additions and 28 deletions

View File

@@ -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

View File

@@ -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;
}