Closed Eraz19 closed 2 years ago
5.3.2
No response
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
On you website environment the code show a markpoint but not in my react app
The markPoint should appear.
- OS:Pop!_OS 22.04 LTS - Browser:firefox 100.0 - Framework: react 17.0.2
I fixed it ... I forgot to add the MarkPointComponent in echarts.use so it would not appear ... I close the Issue
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
Expected Behavior
The markPoint should appear.
Environment
Any additional comments?
No response