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

Stack bar chart legend color issue

2 Answers 340 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Amol
Top achievements
Rank 1
Amol asked on 01 Nov 2012, 07:18 PM
Hi,

I am looking for a way to assign color to a legend field. Please take a look at http://jsfiddle.net/ashriva/Cke4n/3/
In the above example I am trying to assign green color to the "Short" legend element to match its value field; similarly "Long" should be blue and "Flat" red. 

Any help is greatly appreciated. 

Thanks!

2 Answers, 1 is accepted

Sort by
0
Oleg
Top achievements
Rank 1
answered on 01 Jul 2013, 07:45 PM
The same issue here  - we try to use custom colors for different columns,
however the legend displays default colors only.
In the demo -  http://demos.kendoui.com/dataviz/bar-charts/local-data.html  Telerik  gets  "smart"  and just hides the legend.
Is there a way to either hide default (wrong) colors in legend or assign them manually?
Thanks.
0
Iliana Dyankova
Telerik team
answered on 02 Jul 2013, 08:23 AM
Hello guys,

Please check the following forum threads which discuss the same topics and contain possible solutions: 

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