WSChart
WSChart copied to clipboard
X-Axis not auto-scaling when no explicit rowWidth given
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
I think the code in WSBaseChartView generateXAxisInfos method not working properly. Please check it.
Thanks.
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.
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.
I don't know how to do that .. can you improve the code for X-Axis auto-scaling ?