MCPcopy Index your code
hub / github.com/apache/echarts / constructor

Method constructor

src/scale/Interval.ts:96–115  ·  view source on GitHub ↗
(setting?: IntervalScaleSetting)

Source from the content-addressed store, hash-verified

94
95
96 constructor(setting?: IntervalScaleSetting) {
97 super();
98
99 this.parse = IntervalScale.parse;
100
101 setting = setting || {};
102
103 const breakParsed = simplyParseBreakOption(this, setting);
104
105 const res = initBreakOrLinearMapper(this, breakParsed, null);
106 // @ts-ignore
107 this.brk = res.brk;
108
109 this._cfg = {
110 interval: 0,
111 intervalPrecision: 2,
112 intervalCount: undefined,
113 niceExtent: undefined,
114 };
115 }
116
117 static parse(val: ScaleDataValue): number {
118 // `Scale#parse` (and its overrids) are typically applied at the axis values input

Callers

nothing calls this directly

Calls 2

simplyParseBreakOptionFunction · 0.90
initBreakOrLinearMapperFunction · 0.90

Tested by

no test coverage detected