Android XYPlot set width of line, size of point and disable legend

不羁岁月 提交于 2019-12-24 06:38:40

问题


I'm trying to change width of line in XYPlot and size of point, any suggestion?

And another question - how i disable legend to SimpleXYSeries? Set to null cause Error.


回答1:


I'm trying to change width of line in XYPlot and size of point. Any suggestion?

As shown here, you can alter the line thickness using either setSeriesStroke() or setBaseStroke() in your chosen renderer. Assuming XYLineAndShapeRenderer, you can change the rendered Shape using the approach shown here.

How I disable the legend?

You can pass false for the legend parameter to your chosen ChartFactory method or JFreeChart constructor.



来源:https://stackoverflow.com/questions/10914216/android-xyplot-set-width-of-line-size-of-point-and-disable-legend

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