1. #1
    Sencha User
    Join Date
    Feb 2012
    Location
    Russia
    Posts
    30
    Vote Rating
    0
    vasily_87 is on a distinguished road

      0  

    Default Unanswered: Chart background doesn't work

    Unanswered: Chart background doesn't work


    i try to set background blue color
    Code:
     
    background: {  fill: '#00f' }
    but chart is still white

  2. #2
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Answers
    124
    Vote Rating
    85
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      0  

    Default


    Hi!

    try to use extraStyle

    sample is following:-

    Code:
    extraStyle : {
        background    : {
            color    : 'red'
        }
    }
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

  3. #3
    Sencha User
    Join Date
    Feb 2012
    Location
    Russia
    Posts
    30
    Vote Rating
    0
    vasily_87 is on a distinguished road

      0  

    Default


    extraStyle doesn't work too . By the way, there is no such property in sources.

  4. #4
    Sencha User
    Join Date
    Feb 2012
    Location
    Russia
    Posts
    30
    Vote Rating
    0
    vasily_87 is on a distinguished road

      0  

    Default


    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

Thread Participants: 1

Tags for this Thread