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

The kendo chart is not displaying numbers correctly.

1 Answer 89 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 14 Oct 2016, 08:24 PM
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.

1 Answer, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 18 Oct 2016, 06:30 AM
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
Tags
Chart
Asked by
Jason
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Share this question
or