$(function ()
{
$('#graph_wspeed').highcharts(
{
title: { text: 'Средняя скорость ветра и порывы, м/с' },
legend: { enabled: false },
xAxis:
{
title: false,
type: 'datetime',
minorTickPosition: 'inside',
gridLineWidth: 1,
gridLineDashStyle: 'Dot',
},
yAxis:
{
title: false,
min: 0, allowDecimals: false,
showEmpty: false,
gridLineDashStyle: 'Dot',
plotLines: [{ value: 0, color: '#f00', width: 2, dashStyle: 'ShortDot'}]
},
tooltip:
{
formatter: function()
{
return '' + this.y + ' м/с в ' + moment.utc(this.x).format("HH:mm
DD.MM.YYYY");
}
},
credits: { enabled: false },
series:
[
{
type: 'area', marker: { enabled: false }, data: [ ]
}
,{
type: 'scatter',
marker: { radius: 3 },
dashStyle: 'Dot',
color: 0,
data: [ ]
}
]
});
});