kendo-chart

kendo chart legend : label at left, color at right

北慕城南 提交于 2019-11-28 11:39:19
I have kendo-chart at my js code. By default, the legend area layout is that, there is list of colors, and the right of every color - there is label with series name. I want to reverse the order: put label first, and color second, and align it to right. I think the best way to do it is by legend.item, but I don't know how to do it. see the current state: and here is demo of what I want will be: You can create a custom legend visual using the Kendo legend methods. legend: { item: { visual: function (e) { // get the default color for the legend shape var color = e.options.markers.background; //

Kendo chart rendering very slow

↘锁芯ラ 提交于 2019-11-27 08:43:33
问题 I have kendo chart as below. I have to plot the graph which has more than 20k points. The problem i am facing here is the chart is rendering very slow. How to improve the peformance of this. Any help on this is highly appreciated? @(Html.Kendo().PanelBar() .Name("linePanelBar") //.ExpandMode(PanelBarExpandMode.Multiple) .HtmlAttributes(new { style = "width:100%;height:300px;background-color:transparent;" }) .Items(panelbar => { panelbar.Add().Text("Correlation") .Expanded(true) .Content(@<div

Legend and Bar Chart Colors do not match

五迷三道 提交于 2019-11-27 08:25:00
问题 I have the following implementation and I used colorField to assign colors. However, even though I color the bar stack objects properly, but this color does not match with legend color. I thought it should be bound somehow, how should I fix it? I have used colorField because I want to assign the same color for paired objects in the bar stack column. dataSample: data[0] = { "value": 29, "series": 1, "category": "Men", "fname": "NY", "valueColor": "black" }, http://jsfiddle.net/fm79hsms/13/ 回答1

kendo chart legend : label at left, color at right

◇◆丶佛笑我妖孽 提交于 2019-11-27 06:19:12
问题 I have kendo-chart at my js code. By default, the legend area layout is that, there is list of colors, and the right of every color - there is label with series name. I want to reverse the order: put label first, and color second, and align it to right. I think the best way to do it is by legend.item, but I don't know how to do it. see the current state: and here is demo of what I want will be: 回答1: You can create a custom legend visual using the Kendo legend methods. legend: { item: { visual