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.
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.
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.
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 =)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With