problem with auto scaling in group chart

4 posts, 0 answers
  1. Gabrielle
    Gabrielle avatar
    4 posts
    Member since:
    Jul 2013

    Posted 13 Sep 2013 Link to this post

    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"
                }
            });
        }
  2. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2622 posts

    Posted 17 Sep 2013 Link to this post

    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!
  3. Gabrielle
    Gabrielle avatar
    4 posts
    Member since:
    Jul 2013

    Posted 17 Sep 2013 Link to this post

    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! 
  4. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2622 posts

    Posted 18 Sep 2013 Link to this post

    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!
Back to Top