Results 1 to 5 of 5

Thread: Sencha Chart for Extjs

  1. #1
    Sencha User
    Join Date
    Oct 2016
    Posts
    52
    Answers
    1

    Default Answered: Sencha Chart for Extjs

    Hello Everybody,
    I want to create a sencha chart project, I followed the documentation but could not create any.
    the error message is:

    HTTP404: RESSOURCE MANQUANTE. Le serveur n’a trouvé aucune correspondance pour l’URI demandé (Uniform Resource Identifier).
    (XHR): GET - http://localhost/workspace/Monitor/w...=1506335475903
    SCRIPT5022: [Ext.create] Unrecognized class name / alias: widget.bar
    Code:
                             {xtype:'bar',
    renderTo: Ext.getBody(),
        width: 500,
        height: 300,
        animate: true,
        store: store,
        axes: [{
            type: 'Numeric',
            position: 'bottom',
            fields: ['data'],
            label: {
                renderer: Ext.util.Format.numberRenderer('0,0')
            },
            title: 'Sample Values',
            grid: true,
            minimum: 0
        }, {
            type: 'Category',
            position: 'left',
            fields: ['name'],
            title: 'Sample Metrics'
        }],
        series: [{
            type: 'bar',
            axis: 'bottom',
            highlight: true,
            tips: {
              trackMouse: true,
              width: 140,
              height: 28,
              renderer: function(storeItem, item) {
                this.setTitle(storeItem.get('name') + ': ' + storeItem.get('data') + ' views');
              }
            },
            label: {
              display: 'insideEnd',
                field: 'data',
                renderer: Ext.util.Format.numberRenderer('0'),
                orientation: 'horizontal',
                color: '#333',
                'text-anchor': 'middle'
            },
            xField: 'name',
            yField: 'data'
        }]}


    thank you for making a quick return please i am grateful

  2. Have you put charts in the requires in the app.json?

  3. #2
    Sencha User
    Join Date
    Jun 2017
    Posts
    14
    Answers
    3

    Default

    Have you put charts in the requires in the app.json?

  4. #3
    Sencha User
    Join Date
    Oct 2016
    Posts
    52
    Answers
    1

    Default

    yes

  5. #4
    Sencha User
    Join Date
    Jun 2017
    Posts
    14
    Answers
    3

    Default

    Quote Originally Posted by souhail72 View Post
    yes
    I'm a little confused, you have marked my first reply as the answer. Did it actually fix your problem? Or did you end up working it out before seeing my comment?

  6. #5
    Sencha User
    Join Date
    Oct 2016
    Posts
    52
    Answers
    1

    Default

    yes i found the solution thanks for your help

Similar Threads

  1. Chart issue unable to find files related to chart in sencha touch 2.3.x
    By Shyamkumbhar in forum Sencha Touch 2.x: Q&A
    Replies: 3
    Last Post: 23 Apr 2015, 5:04 AM
  2. Replies: 1
    Last Post: 10 Apr 2015, 10:07 AM
  3. Replies: 21
    Last Post: 28 Jan 2015, 9:13 PM
  4. EXTjs 5 Chart Theming ('sencha-charts')
    By josh.tingle in forum Ext 5: Bugs
    Replies: 5
    Last Post: 7 Aug 2014, 1:00 AM

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
  •