The kendo chart is not displaying numbers correctly.

2 posts, 0 answers
  1. Jason
    Jason avatar
    1 posts
    Member since:
    Jun 2016

    Posted 14 Oct Link to this post

    Here is the markup:
    <div kendo-chart='chart1' k-data-source="WidgetDatasource3" k-title="{ text: 'Comments per day', visible: true, align:'left' }" k-legend="{visible:true}" k-series-defaults="{type: 'bar', labels: {visible: true, background: 'transparent'}}" k-category-axis="{ field: 'sales', name: 'Sales', type: 'number'}"  k-series="[{field: 'sales', name: 'Sales', dataType:'number'}]" ></div>

    Here is the datasource:

    widget3.WidgetData.Resultset = "[{ sales: 200},{ sales:450}]";

    The output is attached.  Any number over 9 is being broken up.  i.e. 19 ==> 1   9


    Please advise.
  2. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 18 Oct Link to this post

    Hi,

    I used the provided code to create the following dojo example: http://dojo.telerik.com/eYUwA/12. Is this the expected result as it is different from the provided in your post image?

    In addition review the API documentation regarding categoryAxis.type property: http://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/chart#configuration-categoryAxis.type. The supported values are only "category" and "date". Also I am not finding series.dataType in the API reference.

    I removed the mentioned two property configurations and the behavior of the control is the same: http://dojo.telerik.com/EKOjU



    Regards,
    Stanimir
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Telerik UI for ASP.NET Core is out
Back to Top