简体   繁体   English

Android XYPlot设置线宽,点的大小并禁用图例

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

I'm trying to change width of line in XYPlot and size of point, any suggestion? 我正在尝试更改XYPlot中线的宽度和点的大小,有什么建议吗?

And another question - how i disable legend to SimpleXYSeries? 另一个问题-如何将图例禁用到SimpleXYSeries? Set to null cause Error. 设置为null原因错误。

I'm trying to change width of line in XYPlot and size of point. 我正在尝试更改XYPlot宽度和点的大小。 Any suggestion? 有什么建议吗?

As shown here , you can alter the line thickness using either setSeriesStroke() or setBaseStroke() in your chosen renderer. 如图所示在这里 ,你可以改变使用或者线的粗细setSeriesStroke()setBaseStroke()在你选择的渲染器。 Assuming XYLineAndShapeRenderer , you can change the rendered Shape using the approach shown here . 假定为XYLineAndShapeRenderer ,则可以使用此处显示的方法更改渲染的Shape

How I disable the legend? 如何禁用图例?

You can pass false for the legend parameter to your chosen ChartFactory method or JFreeChart constructor. 您可以将legend参数的false传递给所选的ChartFactory方法或JFreeChart构造函数。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM