How to add more than 3 SERIES in a LINE or SCATTER chart?

霸气de小男生 提交于 2019-12-06 03:53:45

Just make sure you choose the marker type you are going to use in each one of the series. The types are defined in the class Ext.chart.Shape and they are the following:

  • circle
  • line
  • square
  • triangle
  • diamond
  • cross
  • plus
  • arrow
  • drop (this one didn't work for me)

The way to specify the marker type for the series is

series: [
   {
      ...
      markerConfig: { type: 'diamond' }
      ...          
   }    
]

This problem is caused when I leave to ExtJS the automatic choice of markers. If I setup a marker for each serie in the chart, the problem does not happen. That's it! :)

try this step by step:

chart.surface.removeAll();
chart.series.removeAll();
chart.series.addAll(NewSeries);
chart.redraw();
chart.refresh();
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!