PDA

View Full Version : Chart background doesn't work



vasily_87
20 Jun 2012, 10:54 PM
i try to set background blue color


background: { fill: '#00f' }

but chart is still white

sword-it
20 Jun 2012, 11:53 PM
Hi!

try to use extraStyle

sample is following:-




extraStyle : {
background : {
color : 'red'
}
}

vasily_87
21 Jun 2012, 1:46 AM
extraStyle doesn't work too . By the way, there is no such property in sources.

vasily_87
21 Jun 2012, 3:03 AM
Solution was in using custom theme . Base theme has background equals false therefore there is no background. But I can't still change the theme, something like
chart.theme = 'MyTheme';
// do Something to redraw chart with new theme