Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8379177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:06:27+00:00 2026-06-09T16:06:27+00:00

I am working on extjs & i want to make a bar chart from

  • 0

I am working on extjs & i want to make a bar chart from xml
Here is my XML

http://pastebin.ca/2150257

I hav made grid like this

columns: [
{text: "Department Performance", flex: 1,dataIndex: 'DepartmentPerformance', sortable: true},
{text : 'Domestic',
columns: [
{text: "YTD", width: 50, dataIndex: 'DomesticYTD', sortable: true},
{text: "MTD", width: 50, dataIndex: 'DomesticMTD', sortable: true},
{text: "Daily", width: 50, dataIndex: 'DomesticDaily', sortable: true}
]},
{text : 'Other',
columns: [
{text: "YTD", width: 50, dataIndex: 'OtherYTD', sortable: true},
{text: "MTD", width: 50, dataIndex: 'OtherMTD', sortable: true},
{text: "Daily", width: 50, dataIndex: 'OtherDaily', sortable: true},
]},
{text : 'Total',
columns: [
{text: "YTD", width: 50, dataIndex: 'TotalYTD', sortable: true},
{text: "MTD", width: 50, dataIndex: 'TotalMTD', sortable: true},
{text: "Daily", width: 50, dataIndex: 'TotalDaily', sortable: true},
]},

{text : 'OEM',
columns: [
{text: "YTD", width: 50, dataIndex: 'OEMYTD', sortable: true},
{text: "MTD", width: 50, dataIndex: 'OEMMTD', sortable: true},
]},

],

& i want to make a graph by row as click on row I dont know how to use listeners & make a column chart

like on X-axis 3 sections Domestic & Other & Total , in each section YTD,MTD,DAILY
& Y -axis only values 0 to max value

I tried a lot but not able create chart by row value

Please Help……………..
Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T16:06:29+00:00Added an answer on June 9, 2026 at 4:06 pm

    To Generate the chart on grid click event we use listener selectionchange event
    On selection change generate new store which is assign to bar chart

    selectionchange: function (view, selections, options) {
                              //console.log(view, selections, options);
                              record = selections[0];
                              //var v = record.get('Field1');
                              //alert(''+v);
                              //alert(''+index)
                             // alert('hiiii')
    
    
                            record = selections[0];
    
                            myData=[['Domestic',record.get('field1'),record.get('field2'),record.get('field3')],
                                         ['Export',record.get('field4'),record.get('field5'),record.get('field6')],
                                         ['Other',record.get('field7'),record.get('field8'),record.get('field8'),
                                         ]]
    
                            }
    

    Here is the example demo link…..

    http://dev.sencha.com/deploy/ext-4.1.0-gpl/examples/charts/FormDashboard.html
    

    Thanks…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using ExtJS to make a form that generates a report from the data
I am working on an Extjs portal example and downloaded the example from extjs4-mvc-portal
I'm working on some management system using PHP & some ExtJS. Generally, I generate
i am working with Extjs 4 & using Designer 1.2.0 i am facing problems
I am working with Extjs 3.2 ,my Editor grid consist of 5 column, 4
I am working with extjs designer 2. It works ok and i designed a
Working with Reporting Services 2008 r2. So here's my issue: We have 5 reports
I'm working with a long form/survey in extjs which calls a script which then
I am working on extjs4, my case is: Extjs mvc is used to build
I am using a star rating plugin with ExtJS that is working well, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.