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

problem with auto scaling in group chart

3 Answers 150 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Gabrielle
Top achievements
Rank 1
Gabrielle asked on 13 Sep 2013, 02:53 PM
Hi,

The problem here is obvious. The autoScale for value axis is not working for some reason. I can set up min and max value which works but the data comming from server can vary greatly so we really need autoscale option.
here is the code. Any help or point st the right direction would be appreciated. thanks

    function createSalesChart() {
        return $("#report-sales-chart").height(400).kendoChart({
            title: "Sales Report Chart",
            dataSource: chart_data,
            autoBind: false,
            seriesDefaults: { type: "line", stack: false, missingValues: "interpolate" },
            series: [
                {
                    field: "Gross_Total",
                    name: "Gross Total",
                    groupNameTemplate: "#= group.value # (#= series.name #)",
                    //name: "#= group.value # (#= series.name #)",
                    groupName: "#= group.value #",
                    axis: "currency"
                }
            ],
            categoryAxis: {
                field: "Date",
                baseUnit: "days",
                labels: {
                    format: "MMM",
                    skip: 4,
                    step: 4
                }
            },
            valueAxis: {
                name: "currency",
/*                autoScale: true,
                AutoScale: true,
                autoscale: true,*/
                color: "blue",
                labels: { format: currency_prefix+"{0}"+currency_suffix },
                //min:0,
                //max:1000
            },
            legend: { position: "bottom" },
            tooltip: { visible: true, format: "0" },
            plotArea:{
                background: "#EEE"
            }
        });
    }

3 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 17 Sep 2013, 10:31 AM
Hi Gabrielle,

Basically autoScale is not a valid configuration option for Kendo UI Chart valueAxis - the valueAxis should automatically scale depending on the data and no additional configurations are needed. The provided Chart configuration looks OK and I am not quite why the valueAxis is not automatically scaled. Is it possible to provide a small runnable example which demonstrates the issue and which I can test locally? 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!
0
Gabrielle
Top achievements
Rank 1
answered on 17 Sep 2013, 11:12 AM
Hi Iliana,

Thanks for the replay.  The autoscaling issue is resolved. I was using the kendo.all.js  (source) . It works as expected when using kendo.all.min (minified) version.
That leads me to another question - shouldn't have the source and the production version identical behavior?

Best! 
0
Iliana Dyankova
Telerik team
answered on 18 Sep 2013, 01:17 PM
Hi Gabrielle,

This is a known issue which is already resolved - the fix is included in the latest internal build (which you can download from your account). Please give it a try and let me know if you still observe any problems.

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
Gabrielle
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Gabrielle
Top achievements
Rank 1
Share this question
or