KendoChart带条纹条

时间:2015-09-18 01:44:32

标签: kendo-ui telerik kendo-chart

我正在尝试创建一个KendoChart,然后我希望条形格式化。怎么做?我想我需要添加" style" in" seriesDefaults"部分或在"系列"部分。

我有以下代码段:

$("#chart").kendoChart({
            title: {
                text: "Sample"
            },
            seriesDefaults: {
                type: "column"
            },
            series: [{
                name: "India",
                data: [3.907, 7.943, 7.848]
            },{
                name: "World",
                data: [1.988, 2.733, 3.994]
            }],
            valueAxis: {
                labels: {
                    format: "{0}%"
                },
                line: {
                    visible: false
                },
                axisCrossingValue: -10
            },
            categoryAxis: {
                categories: [2002, 2003, 2004],
                majorGridLines: {
                    visible: false
                },
                labels: {
                    rotation: "auto"
                }
            },
            tooltip: {
                visible: true,
                format: "{0}%",
                template: "#= series.name #: #= value #"
            }
        });

0 个答案:

没有答案