需要找出KendoChart中两个系列对象之间的差异

时间:2018-06-22 07:16:25

标签: javascript jquery kendo-ui

我有用Kendo UI编写的代码部分,是否可以在kendoChart中找到“目标”和“实际销售”之间的区别?如果是,该怎么做?

$("#chart").kendoChart({
    dataSource: {
        data: data
    },
    title: {
        text: "Stores Sales Comparison"
    },
    legend: {
        position: "top"
    },
    seriesDefaults: {
        type: "bar"
    },
    series: [{
        field: "ActualSales",
        categoryField: "Store",
        name: "Sales Rate",
        stack: {
            group: "a"
        }
    }, goalSales, {
        field: "ActualRate",
        categoryField: "Store",
        name: "Actual Rate of Sales",
        stack: {
            group: "b"
        }
    }, {
        field: "Goal",
        categoryField: "Store",
        name: "Goal for Sales",
        stack: {
            group: "c"
        }
    }],
    tooltip: {
        visible: true,
        template: "#= series.name #: #= value #"
    }
})

是否有可能找到(“ Goal”-“ ActualSales”)的结果,对您的帮助将不胜感激
谢谢

0 个答案:

没有答案