自定义Kendo折线图?

时间:2017-05-25 08:22:11

标签: kendo-ui

kendo line chart customization

我可以使用kendo实现上述图表吗?这个想法是一行中的“line”和“Longdash”类型。

非常感谢任何帮助/建议。

1 个答案:

答案 0 :(得分:0)

您可以为虚线添加单独的系列,并将其隐藏在图例中:

series: [{
    name: "India",
    data: [3.907, 7.943, 7.848, 9.284, 9.263, 9.801, 3.890, 8.238, 9.552, null]
},{
    name: "World",
    data: [1.988, 2.733, 3.994, 3.464, 4.001, 3.939, 1.333, -2.245, 4.339, null]
},{
    name: "India-predict",
    data: [null, null, null, null, null, null, null, null, 9.552, 10.855],
    dashType: "dash",
    visibleInLegend: false,
    color: "red"
},{
    name: "World-predict",
    data: [null, null, null, null, null, null, null, null,  4.339, 5.727],
    dashType: "dash",
    visibleInLegend: false,
    color: "red"
}],

DEMO