how to start draw line from X - Y axis at o in JFreeChart ChartFactory.createLineChart

落花浮王杯 提交于 2019-12-04 16:11:06

"1", "2", "3", "4" and "5" are categories in your example. You don't have a category "0", so there cannot be a line to it. Either add a category "0" and adapt the axis-margin if you want 0 to be on the left border of the plot. Or probably better: use an XYPlot and corresponding methodes from ChartFactory like createXYLineChart().

hth,
- martin

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