I am trying to draw line (step) on date axis with small spikes of data but seems like it auto compress.
Code
<body>
<div id=
"example"
>
<div class=
"demo-section k-content wide"
>
<div id=
"chart"
></div>
</div>
</div>
<script>
var
stats = [{ value: 0, date:
new
Date(
"2012/01/04"
) },
{ value: 30, date:
new
Date(
"2012/01/05 11:22AM"
) },
{ value: 0, date:
new
Date(
"2012/01/05 11:22:30AM"
) },
{ value: 0, date:
new
Date(
"2012/01/10"
) }];
function
createChart() {<br> $(
"#chart"
).kendoChart({<br> title: {<br> text:
"Units sold"
<br> },<br> dataSource: {<br> data: stats<br> },<br> series: [{<br> type:
"line"
,<br> style:
"step"
,<br> field:
"value"
,<br> categoryField:
"date"
<br> }],<br> categoryAxis: {<br> baseUnit:
"weeks"
<br> }<br> });<br> }<br> $(document).ready(createChart);<br> $(
"#example"
).bind(
"kendo:skinChange"
, createChart);<br> </script><br> </div><br></body>