PDA

View Full Version : How can I change the color of the labels on a Radar Chart



JanKaiser
14 Oct 2011, 7:06 AM
Hey there,

after trying hard for some hours, I think I will now need some help from the community. I want to change the color of the label text in a radar chart from black (Standard) to white. I have tried every option I could think of. label, labelColor, fill on every possible spot, in axes, in series, everywhere. But the text stays black.

For example here: http://dev.sencha.com/deploy/ext-4.0.2a/examples/charts/Radar.html

How could I change the color of the months white?

Thank you very much in advance! :">

skirtle
14 Oct 2011, 8:34 AM
From looking at the source code, I don't see any way to configure that.

I managed to beat it into submission with something like this:


var chart = Ext.ComponentQuery.query('chart')[0];
var labels = chart.axes.first().labelArray;

Ext.each(labels, function(label) {
label.setAttributes({
stroke: '#0F0'
});
});

chart.redraw();

JanKaiser
16 Oct 2011, 11:27 PM
That did the trick. Thank you very much! :D