I am using Angular 9 along with "ngx-echarts": "5.2.2"
and "echarts": "5.0.0"
Everything works fine accept while setting icon: 'circle'
for legends. It says below thing.
Type '{ icon: string; top: string; left: string; orient: "vertical"; }' is not assignable to type 'LegendOption | ScrollableLegendOption | (LegendOption | ScrollableLegendOption)[]'.
As per example in ngx-echarts I can't use import { EChartOption } from 'echarts'
;
I have checked that icon is available in EchartOption instead of Echarts
Option
Is there anything i am missing?
After installing @types/echarts my code is working and showing legend with circle icon but have random error that it can't find EchartOption in echarts (My angular is not taking care of this and running application by ignoring this error)
RIght now i went with import { EChartsOption } from 'echarts';
and removed @types/echarts library. And i can't change legend icon for the moment :(
Any help?
Thanks, Jayesh