Set axis type to datetime irregular
Description
The following code shows how to set axis type to datetime irregular.
Example
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script>
<script type='text/javascript'>
$(function () {<!--from ww w . j a v a 2 s. c om-->
$('#container').highcharts({
xAxis: {
type: 'datetime'
},
series: [{
data: [
[Date.UTC(2014, 0, 1), 29.9],
[Date.UTC(2014, 0, 2), 71.5],
[Date.UTC(2014, 0, 3), 16.4],
[Date.UTC(2014, 0, 6), 19.2],
[Date.UTC(2014, 0, 7), 14.0],
[Date.UTC(2014, 0, 8), 16.0]
]
}]
});
});
</script>
</head>
<body>
<script src="http://code.highcharts.com/highcharts.js"></script>
<div id="container" style="height: 400px"></div>
</body>
</html>