This is a migrated thread and some comments may be shown as answers.

Stacked Bar Chart not showing all series

1 Answer 344 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Kranthi
Top achievements
Rank 1
Kranthi asked on 07 Oct 2014, 01:03 PM
Hi,
I am building a stacked bar chart with three series. I am fetching the data from a remote service and binding to the chart. But the problem is that my chart does not show all three series. it shows only two series. But if i remove the stack:true property, it shows all three series in the normal column chart. Could any body help if I am missing anything to show all the series. Below is my code.
         
  function createChart() {
            $("#chart").kendoChart({
             dataSource: {
                    transport: {
                        read: {
                            url: "http://localhost:8080/rest/service/summary",
                            dataType: "json"
                        }
                    },
                },
                title: {
                    text: "Summary"
                },
                legend: {
                    visible: false
                },
                seriesDefaults: {
                    type: "column",
                    /stack: true
                },
                series: [{
                    field:"A",
                    name: "A",   
                    color: "#3CB371"
                }, {
                   field:"B",
                    name: "B",
                   color: "#FFA500"
                },{
                name: "C",
                field:"C",
                color: "#FF0000"
                }],
                valueAxis: {

                    line: {
                        visible: true
                    },
                    minorGridLines: {
                        visible: true
                    }
                },
                categoryAxis: {
                    field:"boothId",
                    majorGridLines: {
                        visible: false
                    }
                },
                tooltip: {
                    visible: true,
                    template: "#= series.name #: #= value #"
                }
            });
        }
        $(document).ready(createChart);
        $(document).bind("kendo:skinChange", createChart);

1 Answer, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 09 Oct 2014, 07:09 AM
Hi Kranthi,

I tried to reproduce the issue but to no avail (dojo example). Could you please modify my example with your data and try to demonstrate the problem - this way I would be able to check what exactly is going wrong and provide concrete recommendations? Thank you in advance for your time and cooperation. 

Regards,
Iliana Nikolova
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Charts
Asked by
Kranthi
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Share this question
or