jQWidgets Forums

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Pie Chart Change Data Source Pie Chart Change Data Source #74454

    Digilera58
    Participant

    Hello again,

    I want to get value of selected pie serie.
    But i can’t get the value.

    So how can i get the selected pie’s value from jqxchart ?
    Could you please send me an example or link ?

    Best Regards

    in reply to: Pie Chart Change Data Source Pie Chart Change Data Source #74444

    Digilera58
    Participant

    Pie_Chart

    public JsonResult Get_Pie_DocumentCost()

    I use this method for getting data on SQL.

    var url="/Report/Get_Pie_DocumentCost";
                var source =
                {
                    datatype: "json",
                    datafields: [
                        { name: 'Type' },
                        { name: 'DocumentCost' }
                    ],
                    url:url
                };

    This is javascript code for pie chart source.

    I want when I click blue part of the chart method give me value for TypeID=1 or click green part TypeID=2. Then I gave it to my method for getting data on SQL.

    public JsonResult Get_Pie_DocumentCost_ByBranchID(int TypeID)

    After that my datafields change like this.

    var url="/Report/Get_Pie_DocumentCost_ByTypeID";
                var source =
                {
                    datatype: "json",
                    datafields: [
                        { name: 'DocumentCost' },
                        { name: 'ServiceCost' },
                        { name: 'WorkmanshipCost' },
                        { name: 'SupplyCost' },
                        { name: 'ShipmentCost' },
                        { name: 'GlassCost' }
                    ],
                    url:url
                };

    I hope you can understand this time.
    58

Viewing 2 posts - 1 through 2 (of 2 total)