1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    91
    Answers
    6
    Vote Rating
    0
    alex9311 is on a distinguished road

      0  

    Default Answered: Using theme to change chart axes title label color, MVC

    Answered: Using theme to change chart axes title label color, MVC


    I have a chart with axes label titles and I want to change the color of the labels from black to red. I've looked here: http://www.sencha.com/learn/drawing-and-charting/ under "theming" and I think I can do what I want by defining a custom theme and do something like this:

    Code:
    axisTitleTop: {     
       fill: '#000',     
       font: '11px Arial' 
    }, axisTitleLeft: { 
           fill: '#000',     
       font: '11px Arial' 
    }, axisTitleRight: { 
           fill: '#000',     
       font: '11px Arial' 
    }, axisTitleBottom: {     
       fill: '#000',     
       font: '11px Arial' 
    },
    to mess with the axes titles.
    My question is: using MVC, where do I define my custom theme class and how do I include it?

  2. Thanks! I actually found a way to do it without using themes.

    To configure the title label color of an axes just add the label title configuarion to that axes:

    labelTitle:{

    fill:"#B22222"
    }

  3. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    4,781
    Answers
    356
    Vote Rating
    167
    slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold

      1  

    Default


    You might look through the theming guide to see the details on how to incorporate a custom theme in an MVC build.
    http://docs.sencha.com/extjs/4.2.0/#!/guide/theming

  4. #3
    Sencha User
    Join Date
    Aug 2012
    Posts
    91
    Answers
    6
    Vote Rating
    0
    alex9311 is on a distinguished road

      0  

    Default


    Thanks! I actually found a way to do it without using themes.

    To configure the title label color of an axes just add the label title configuarion to that axes:

    labelTitle:{

    fill:"#B22222"
    }

Thread Participants: 1

Tags for this Thread