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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Vote Rating
    1381
      0  

    Default

    They currently have to have the Ext.chart.theme namespace.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    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
  •