Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the color of chart titles

Is there a way to change the color of chart titles (x-axis, y-axis, and chart heading) in aChartEngine? I changed my background to black, but can't get these labels to display, since they are also black.

like image 571
Ryan Avatar asked Jan 09 '13 09:01

Ryan


People also ask

How do I change the chart title color?

Right click on the chart title, now you can see the quick format bar and chart title properties menu. Select the 'Format Chart Title' option from the chart title properties menu. Now you can see the 'Format Chart Title' tool. We can use the this tool to format and change the fill or background color of the chart.

How do you change the color of the series in a chart?

In a chart, click to select the data series for which you want to change the colors. On the Format tab, in the Current Selection group, click Format Selection. tab, expand Fill, and then do one of the following: To vary the colors of data markers in a single-series chart, select the Vary colors by point check box.


1 Answers

Axis titles are changed using the renderer.setLabelsColor(Color); command. I'm not sure about the title, it may be changed using the same command. In case you'd like to change the data values on the axes, the renderer.setXLabelsColor(Color); and renderer.setYLabelsColor(scale, Color); commands will do that for you.

If you go to achartengine's website, you can download the javadoc as a zip file, extract it, then view it in your browser. It's got a decent amount of documentation on there to find what you need normally =)

like image 172
Matt Taylor Avatar answered Sep 21 '22 17:09

Matt Taylor