ngx-echarts
ngx-echarts copied to clipboard
user 'graphic' but no convertToPixel & convertFromPixel
i want to use 'graphic ' to drag a line,but ngx-echarts has no convertToPixel & convertFromPixel .could anyone help me solve this issue.thanks!
@cwtgogo
convertToPixel is a method of echartsInstance. You can get echartsInstance from (chartInit)
event.
For example:
<div echarts class="demo-chart" [options]="chartOptions" (chartInit)="onChartInit($event)"></div>
onChartInit(ec) {
this.myChart = ec;
this.myChart.convertToPixel('geo', [128.3324, 89.5344]);
}
Thanks for your answer!I will try it again!
你好,请问用'graphic '拖动线,你成功了吗?我对照echarts官方示例,在angular上还是不行。
I am having trouble implementing this as well.