Results 1 to 3 of 3

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

  1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    91
    Answers
    6
    Vote Rating
    0
      0  

    Default 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
    6,154
    Answers
    501
    Vote Rating
    249
      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
      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"
    }

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •