Skip to content

dataZoom.startValue - Type 'string' is not assignable to type 'number' #14412

Description

@dileepyelleti

Version

5.0.2

Steps to reproduce

Using datazoom option for line chart similar to https://echarts.apache.org/examples/en/editor.html?c=line-aqi inside angular.
import { EChartsOption } from 'echarts';
{
....
dataZoom: {
type: 'inside',
startValue: '2014-06-01'
}
....
}

What is expected?

As per documentation number, string, Date are allowed in dataZoom.startValue.

What is actually happening?

Type error is getting thrown Type 'string' is not assignable to type 'number'. node_modules/echarts/types/dist/echarts.d.ts:8213:5 startValue?: number;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions