剑道堆积条形图

时间:2019-02-22 19:33:15

标签: c# kendo-ui telerik-charting

我正在用Kendo Chart替换旧的图表控件。我需要将6条中的2条堆叠在一起。可以使用stack标签在系列中完成所有操作吗?

  

我需要在JSON返回中做任何事情吗?

series:
      [{
      field: "collegetuition",
      stack: "tuition",
      categoryField: "Date",
      name: "Current College Tuition"
      },{
      field: "preyearcollegetuition",
      stack: "tuition",
      categoryField: "Date",
      name: "Previous Year College Tuition"
      },{
      field: "Books",
      categoryField: "Date",
      name: "Books"
      },{
      field: "Transportation",
      stack: "Transportation",
      categoryField: "Date",
      name: "Transportation"
      },{
      field: "preyeartransportation",
      stack: "Transportation",
      categoryField: "Date",
      name: "Previous Year Transportation"
      },{
      type: "line",
      field: "tuition",
      name: "Trend",
      color: "#ec5e0a",
      categoryField: "Date",
      }],

0 个答案:

没有答案