dataZoom.startValue - Type 'string' is not assignable to type 'number' #14412
Labels
bug
difficulty: easy
Issues that can be fixed more easily than the average.
en
This issue is in English
typescript
waiting-for: community
Milestone
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;
The text was updated successfully, but these errors were encountered: