apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.76k stars 19.62k forks source link

[Bug] :MarkPoint don't show #16988

Closed Eraz19 closed 2 years ago

Eraz19 commented 2 years ago

Version

5.3.2

Link to Minimal Reproduction

No response

Steps to Reproduce

the code that works on you website environment:

option = { xAxis: [ { type: 'category' } ], yAxis: [ { type: 'value' } ], series: [ { name: 'Evaporation', type: 'bar', xAxisIndex: 0, yAxisIndex: 0, data: [ ['Jan', 12003], ['Fev', 14973], ['Ran', 20998] ], markPoint: { data: [ { xAxis: "Fev", yAxis: 20000 } ] }, } ] };

In my code: myChart.current.setOption({ xAxis: [ { type: 'category' } ], yAxis: [ { type: 'value' } ], series: [ { name: 'Evaporation', type: 'bar', xAxisIndex: 0, yAxisIndex: 0, data: [ ['Jan', 12003], ['Fev', 14973], ['Ran', 20998] ], markPoint: { data: [ { xAxis: "Fev", yAxis: 20000 } ] }, } ] }, true);

I'm using echarts in react

Current Behavior

On you website environment the code show a markpoint but not in my react app Screenshot from 2022-05-06 11-51-03 Screenshot from 2022-05-06 11-51-32

Expected Behavior

The markPoint should appear.

Environment

- OS:Pop!_OS 22.04 LTS
- Browser:firefox 100.0
- Framework: react 17.0.2

Any additional comments?

No response

Eraz19 commented 2 years ago

I fixed it ... I forgot to add the MarkPointComponent in echarts.use so it would not appear ... I close the Issue