$(document).ready(function () { chart = new Highcharts.StockChart({ chart: { renderTo: 'chart', type: 'line', animation: false, showAxes: true, height: 500 }, xAxis: { ordinal: false, type: 'datetime', showEmpty: true, gridLineWidth: 1, gridLineDashStyle: 'dot', ordinal: false }, yAxis: { title: {text: 'Курс SKK, грн'}, lineWidth: 3, gridLineWidth: 1, gridLineDashStyle: 'dash', ordinal: false }, plotOptions: { series: {connectNulls: true, shadow: false}, spline: {marker: {enabled: true}} }, tooltip: {valueDecimals: 8, xDateFormat: '%d %b %Y', shared: true}, series: [ { name: 'Курс SKK', data: [[1196467200000,0.224791],[1196553600000,0.224791],[1196640000000,0.224791],[1196726400000,0.222807],[1196812800000,0.223449],[1196899200000,0.2235],[1196985600000,0.221459],[1197072000000,0.223005],[1197158400000,0.223005],[1197244800000,0.223005],[1197331200000,0.224767],[1197417600000,0.223861],[1197504000000,0.223354],[1197590400000,0.222717],[1197676800000,0.219379],[1197763200000,0.219379],[1197849600000,0.219379],[1197936000000,0.216613],[1198022400000,0.216921],[1198108800000,0.215811],[1198195200000,0.215508],[1198281600000,0.216134],[1198368000000,0.216134],[1198454400000,0.216134],[1198540800000,0.216026],[1198627200000,0.216026],[1198713600000,0.216026],[1198800000000,0.218081],[1198886400000,0.220811]], tooltip: {valueSuffix: ' грн'}, type: 'area', step: true, color: '#888888', fillColor: { linearGradient: {x1: 0, y1: 0, x2: 0, y2: 1}, stops: [[0, '#CCCCCC'], [1, 'rgba(50,50,50,0)']] }, threshold: null }, { name: 'Среднее за период', data: [[1196467200000, 0.224791],[1196467200000, 0.224791],[1196553600000, 0.224791],[1196640000000, 0.224791],[1196726400000, 0.222807],[1196812800000, 0.223449],[1196899200000, 0.223500],[1196985600000, 0.221459],[1197072000000, 0.223005],[1197158400000, 0.223005],[1197244800000, 0.223005],[1197331200000, 0.224767],[1197417600000, 0.223861],[1197504000000, 0.223354],[1197590400000, 0.222717],[1197676800000, 0.219379],[1197763200000, 0.219379],[1197849600000, 0.219379],[1197936000000, 0.216613],[1198022400000, 0.216921],[1198108800000, 0.215811],[1198195200000, 0.215508],[1198281600000, 0.216134],[1198368000000, 0.216134],[1198454400000, 0.216134],[1198540800000, 0.216026],[1198627200000, 0.216026],[1198713600000, 0.216026],[1198800000000, 0.218081],[1198886400000, 0.220811]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });