Android XYPlot设置线宽,点的大小并禁用图例 [英] Android XYPlot set width of line, size of point and disable legend

查看:120
本文介绍了Android XYPlot设置线宽,点的大小并禁用图例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试更改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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆