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

[BUG] kendo Chart applies only the last series

2 Answers 13 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Ofir
Top achievements
Rank 1
Ofir asked on 23 Mar 2014, 01:37 PM
Hi, I have a really weird situation...
This is the object that I apply on the "#chart" div:
var jsonObj= '{"theme":"flat","title":{"text":"Chart Example"},"legend":{"position":"bottom"},"seriesDefaults":{"type":"area","stack":false},"valueAxis":{"labels":{"format":"{0}"},"line":{"visible":false}},"categoryAxis":{"majorGridLines":{"visible":false},"categories":["January","February","March"]},"tooltip":{"visible":true,"format":"{0","template":"#= series.name #: #= value #"},"series":[{"name":"Laptops","data":["580128.76","605738.43","623952.02"]},{"type":"line","color":"black","name":"Desktops","data":["341256.83","349459.64","372171.72"]},{"name":"Monitors","data":["216312.2","198456.88","190986.52"]},{"name":"screen","type":"line","data":["1070735.75","1378216.47","1451521.87"]},{"name":"Printers, Scanners & Fax","data":["413073.94","389794.43","386159.53"]},{"name":"Computers Accessories","data":["125405.48","116073.28","115902.61"]}]}';

var obj = JSON.parse(jsonObj);

http://trykendoui.telerik.com/aXIl

As you see the series data is different in one series to another.
BUT!, when I put it in my workarea it's look like this:
http://trykendoui.telerik.com/aXIl/2

what can I do?










2 Answers, 1 is accepted

Sort by
0
Iliana Nikolova
Telerik team
answered on 25 Mar 2014, 02:50 PM
Hi Ofir,

I am not quite sure if I understand correctly what the issue is - the provided json configuration (example) differs from the chart rendered in the first example (http://trykendoui.telerik.com/aXIl). Also the second example (http://trykendoui.telerik.com/aXIl/2) does not contain any code. Could you please elaborate a bit more - this way I would be able to advice you further and provide concrete recommendations? Thank you in advance for your time and cooperation.

Regards,
Iliana Nikolova
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
0
Ofir
Top achievements
Rank 1
answered on 25 Mar 2014, 07:29 PM
Sorry, I already manage to fix that, and examples are not up to date.
tnx for you help!
Tags
Charts
Asked by
Ofir
Top achievements
Rank 1
Answers by
Iliana Nikolova
Telerik team
Ofir
Top achievements
Rank 1
Share this question
or