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

Method setTimeInterval

src/scale/Time.ts:261–269  ·  view source on GitHub ↗
(opt: {
        interval: number;
        approxInterval: number;
        minLevelUnit: TimeUnit;
    })

Source from the content-addressed store, hash-verified

259 }
260
261 setTimeInterval(opt: {
262 interval: number;
263 approxInterval: number;
264 minLevelUnit: TimeUnit;
265 }): void {
266 this._interval = opt.interval;
267 this._approxInterval = opt.approxInterval;
268 this._minLevelUnit = opt.minLevelUnit;
269 }
270
271 static parse(val: number | string | Date): number {
272 // `val` might be a float (e.g., calculated from percent), so call `round`.

Callers 1

calcNiceForTimeScaleFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected