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

  • Home
  • SEARCH
  • 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 8599593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T01:25:50+00:00 2026-06-12T01:25:50+00:00

Am having a pie chart and a grid displaying below it, both of which

  • 0

Am having a pie chart and a grid displaying below it, both of which use the same store.

And, in the store, am having the following fields:

Total, Allocated, Used, Remaining.

Is it possible to make the pie chart to have only three of the fields from the four, as i dont want the total field to appear in the pie chart, but the grid should have it. so, could anyone please tell me what is the best way to to this?

Code as follows:

Pie chart

var chart1 = Ext.create('Ext.chart.Chart', {
        id : 'chart1',
        xtype : 'chart',
        theme : '',
        animate : true,
        shadow : true,
        height : 250,
        width : 250,
        store : LicSumStore,
        series : [{
            type : 'pie',
            angleField : 'value',

            showInLegend : true,
            highlight :{
                segment :{
                    margin :20
                }
            } ,
            label : {
                field : 'title',
                display :'rotate',
                contrast : true,
                font : '12px Arial'
            },
            title : 'Licenses',

        }],

    });

Grid

   var licSummaryGrid = Ext.create('Ext.grid.Panel',{
        title :'LicenseSummary',
        store : LicSumStore,
        enableColumnResize : false,
        columns : [
            {
                text : 'License Type', 
                dataIndex : 'title',
                width : 150,
                sortable : false,
                hideable : false,

            },
            {
                text : 'Count', 
                dataIndex : 'value', 
                width : 100,
                sortable : false,
                hideable : false,


            }
        ],

        height : 180,
        width : 255

    });
  • 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-12T01:25:51+00:00Added an answer on June 12, 2026 at 1:25 am

    Solved this, by adding the total field in the grid, using the summary type,instead of modifying the data in the pie chart. Thus, i got rid of the total field in the store, and calculated it in the grid.

    Here is the code:

    {
        text: 'License Type',
        dataIndex: 'title',
        width: 150,
        sortable: false,
        hideable: false,
        summaryRenderer: function () {
            return Ext.String.format('Total');
        }
    }, {
        text: 'Count',
        dataIndex: 'value',
        width: 100,
        sortable: false,
        hideable: false,
        summaryType: 'sum'
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having problem with the pie chart in ggplot. Here is example of the
I have a simple has_many/belongs_to relationship between Report and Chart. The issue I'm having
Having trouble getting fancybox to display my image correctly, I use ASP.NET: <a class=fancybox
Having issue with prefetching data and displaying on uitableview. So basically I want to
Having the following code: template<typename T, typename OutStream = std::ostream> struct print { OutStream
Having the following domain class: class Message{ } Want to get all messages with
I am having multiple highchart charts of various types(Bar,Pie, Scatter type) in a single
having a file with the following for example: DEFINE('INTERESTS_1','a'); DEFINE('INTERESTS_2','d'); DEFINE('INTERESTS_3','g'); DEFINE('INTERESTS_4','c'); Is it
I am using the code at http://jsfiddle.net/MX7JC/9/ to build a pie chart. But I
I'm having a bit of trouble understanding what's going wrong with the following function:

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.