Bar Chart No Gap
by Amir Sharifian
HTML
<script src="http://cdn.kendostatic.com/2012.2.710/js/kendo.all.min.js"></script>
<link rel="stylesheet" href="http://cdn.kendostatic.com/2012.2.710/styles/kendo.common.min.css">
<link rel="stylesheet" href="http://cdn.kendostatic.com/2012.2.710/styles/kendo.default.min.css">
<link rel="stylesheet" href="http://cdn.kendostatic.com/2012.2.710/styles/kendo.dataviz.min.css">
<div id="chart"></div>
JavaScript
$("#chart").kendoChart({
title: {
text: "Test Chart"
},
legend: {
position: "bottom"
},
seriesDefaults: {
type: "column"
//stack: true
},
series: [{
spacing: 0,
name: " Low Voltage Service Points",
data: [50, 23, 74, 20, 20, 10],
color: "#1A5FED",
// Line chart marker type
markers: {
type: "square"
}
}, {
name: " High Voltage Service Points",
data: [52, 34, 78, 68, 23, 40],
color: "#ed3024"
}],
valueAxis: {
line: {
visible: false
},
labels: {
// format: "{0}%"
},
axisCrossingValue: 0
},
categoryAxis: {
categories: ["Jan", "Feb", "Mar", "Apr", "May", "Jun"],
color: "#ff0000",
majorGridLines: {
visible: false
},
line: {
visible: false
},
labels: {
template: "#=value#"
}
},
tooltip: {
visible: true,
format: "{0}",
template: "#= series.name #: #= category # = #= value # "
}
});