WSChart icon indicating copy to clipboard operation
WSChart copied to clipboard

X-Axis not auto-scaling when no explicit rowWidth given

Open premdevmobi opened this issue 11 years ago • 3 comments

For the LineChart when i did not give any explicit rowWidth, say lineChart.rowWidth = 0;

then X-Axis not scaled automatically and because of that the graph image looks like this snap 2013-06-07 at 13 49 05

I think the code in WSBaseChartView generateXAxisInfos method not working properly. Please check it.

Thanks.

premdevmobi avatar Jun 07 '13 11:06 premdevmobi

For area, line ,column and combo charts, the rowWidth must be greater than zero. It doesn't just represent the coordinate spacing on X axis,it's also a flag that distinguish different style of charts.

pyanfield avatar Jun 08 '13 06:06 pyanfield

For now , it's not for X-Axis auto-scaling. And you can try to modify the code to add this feature. If it's done, you can pull request to submit your code. so I can merge your feature to wschart.

pyanfield avatar Jun 08 '13 06:06 pyanfield

I don't know how to do that .. can you improve the code for X-Axis auto-scaling ?

premdevmobi avatar Jul 01 '13 08:07 premdevmobi