Results 1 to 3 of 3

Thread: Custom namespace for Chart themes

  1. #1
    Sencha Premium Member
    Join Date
    Feb 2012
    Location
    Toulouse, France
    Posts
    12
    Vote Rating
    0
      0  

    Default Custom namespace for Chart themes

    Hi,

    I'm learning how to use the Charting module of ExtJS 4.1.1, and I was wondering if I could create my own themes using my application's namespace (Kiwi).

    My folder structure is this :

    Code:
    app/
    controller/ model/ store/ view/
    chart/
    themes/
    So I was wondering if I could define my themes like this :
    Code:
    Kiwi.view.chart.theme.Custom = Ext.extend(Ext.chart.theme.Base, {
        constructor: function(config) {
            Ext.chart.theme.Base.prototype.constructor.call(this, Ext.apply({
                colors: colors
            }, config));
        }
    });
    And then give some parameter to the chart, so he can find the theme

    Any advice appreciated.

    Thanks.

    Romain

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,551
    Vote Rating
    1271
      0  

    Default

    They currently have to have the Ext.chart.theme namespace.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha Premium Member
    Join Date
    Feb 2012
    Location
    Toulouse, France
    Posts
    12
    Vote Rating
    0
      0  

    Default

    OK, thanks for the info !

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
  •