$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1233446400000,10.9911],[1233532800000,10.9911],[1233619200000,10.8764],[1233705600000,10.9577],[1233792000000,11.0885],[1233878400000,11.2509],[1233964800000,11.3174],[1234051200000,11.3174],[1234137600000,11.3174],[1234224000000,11.4996],[1234310400000,11.3836],[1234396800000,11.0692],[1234483200000,10.9429],[1234569600000,null],[1234656000000,null],[1234742400000,11.1675],[1234828800000,10.9883],[1234915200000,10.9911],[1235001600000,10.9642],[1235088000000,11.0879],[1235174400000,11.0046],[1235260800000,11.0046],[1235347200000,11.0046],[1235433600000,11.2238],[1235520000000,11.1714],[1235606400000,11.0898],[1235692800000,11.0425],[1235779200000,10.9012]], 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: [[1233446400000, 10.991056],[1233446400000, 10.991056],[1233532800000, 10.991056],[1233619200000, 10.876404],[1233705600000, 10.957725],[1233792000000, 11.088484],[1233878400000, 11.250945],[1233964800000, 11.317390],[1234051200000, 11.317390],[1234137600000, 11.317390],[1234224000000, 11.499610],[1234310400000, 11.383639],[1234396800000, 11.069178],[1234483200000, 10.942868],[1234742400000, 11.167460],[1234828800000, 10.988317],[1234915200000, 10.991052],[1235001600000, 10.964187],[1235088000000, 11.087895],[1235174400000, 11.004620],[1235260800000, 11.004620],[1235347200000, 11.004620],[1235433600000, 11.223759],[1235520000000, 11.171433],[1235606400000, 11.089768],[1235692800000, 11.042455],[1235779200000, 10.901220]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });