如何在kendo ui折线图中显示传说" X"轴?

时间:2017-01-03 12:26:13

标签: javascript jquery kendo-ui

我正在使用Kendo UI折线图在" X"上显示多个日期。轴。 但问题是传奇没有表现出来。 我尝试了太多但没有成功。 我在这里举个例子,请帮我展示传说。

http://dojo.telerik.com/uFemi/7

由于

1 个答案:

答案 0 :(得分:0)

设置系列的名称属性:

   series: [{
      name: "value1",
      field: "value1",
      categoryField: "date1",
      categoryAxis: "cat1",
      tooltip: {
                visible: true,
                template: "#=kendo.format(\'{0:d}\', dataItem.date1)#: #= value #"
            }, 
    }, {
      name: "value2",
      field: "value2",
      categoryField: "date2",
      categoryAxis: "cat2",
      tooltip: {
                visible: true,
                template: " #= kendo.format(\'{0:d}\', dataItem.date2) #: #= value #"
            },          
    }],