PDA

View Full Version : Bar Chart--change color of XY axis fields



JohnJones357
15 Sep 2014, 9:45 AM
Id like to change the font color for the x and y axis fields for a bar chart. For the axis labels I
used the

labelTitle:{
fill:"#FFFFFF"
}

config to change the color to white. How can i do the same for the axis fields?

thanks

scottmartin
15 Sep 2014, 5:19 PM
Something like this?
https://fiddle.sencha.com/#fiddle/ada

JohnJones357
17 Sep 2014, 9:32 AM
Hi Scott,

I tried this approach but its throwing the following error:

Invalid value for <text> attribute y="NaN"


I first created a separate class for my theme and then called this class using the theme property in my chart class. My question is, do I need to use the Ext namespace or can I use my own? I assume when I do

theme:"MyChartTheme",

its looking for MyChartTheme class under the Ext namespace.

I also tried:

theme: "App.view.chart.theme.MyChartTheme",

but this did not work either.

scottmartin
17 Sep 2014, 10:11 AM
You need to use the ext, as it is an override.

JohnJones357
17 Sep 2014, 10:34 AM
hi Scott, isnt the theme class extending instead of overriding?