Android XYPlot设置线宽,点的大小并禁用图例 [英] Android XYPlot set width of line, size of point and disable legend
问题描述
我正在尝试更改XYPlot中线的宽度和点的大小,有什么建议吗?
I'm trying to change width of line in XYPlot and size of point, any suggestion?
另一个问题-如何将图例禁用到SimpleXYSeries?设置为空会导致错误.
And another question - how i disable legend to SimpleXYSeries? Set to null cause Error.
推荐答案
我正在尝试更改
XYPlot
中的线宽和点的大小.有什么建议吗?
I'm trying to change width of line in
XYPlot
and size of point. Any suggestion?
如此处所示,您可以在所选渲染器中使用setSeriesStroke()
或setBaseStroke()
更改线条粗细.假设XYLineAndShapeRenderer
,您可以使用此处所示的方法来更改渲染的Shape
.
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?
您可以将legend
参数的false
传递给所选的ChartFactory
方法或JFreeChart
构造函数.
You can pass false
for the legend
parameter to your chosen ChartFactory
method or JFreeChart
constructor.
这篇关于Android XYPlot设置线宽,点的大小并禁用图例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!