$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1467331200000,2.92486],[1467417600000,2.94341],[1467504000000,2.94341],[1467590400000,2.94341],[1467676800000,2.94323],[1467763200000,2.93582],[1467849600000,2.90454],[1467936000000,2.90054],[1468022400000,2.90377],[1468108800000,2.90377],[1468195200000,2.90377],[1468281600000,2.89775],[1468368000000,2.91673],[1468454400000,2.91223],[1468540800000,2.93044],[1468627200000,2.91948],[1468713600000,2.91948],[1468800000000,2.91948],[1468886400000,2.9018],[1468972800000,2.88475],[1469059200000,2.88592],[1469145600000,2.88538],[1469232000000,2.87732],[1469318400000,2.87732],[1469404800000,2.87732],[1469491200000,2.86335],[1469577600000,2.86535],[1469664000000,2.85987],[1469750400000,null],[1469836800000,2.88143],[1469923200000,2.88143]], 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: [[1467331200000, 2.924864],[1467331200000, 2.924864],[1467417600000, 2.943412],[1467504000000, 2.943412],[1467590400000, 2.943412],[1467676800000, 2.943229],[1467763200000, 2.935818],[1467849600000, 2.904538],[1467936000000, 2.900540],[1468022400000, 2.903772],[1468108800000, 2.903772],[1468195200000, 2.903772],[1468281600000, 2.897750],[1468368000000, 2.916733],[1468454400000, 2.912230],[1468540800000, 2.930439],[1468627200000, 2.919479],[1468713600000, 2.919479],[1468800000000, 2.919479],[1468886400000, 2.901803],[1468972800000, 2.884746],[1469059200000, 2.885916],[1469145600000, 2.885382],[1469232000000, 2.877325],[1469318400000, 2.877325],[1469404800000, 2.877325],[1469491200000, 2.863353],[1469577600000, 2.865349],[1469664000000, 2.859867],[1469836800000, 2.881431],[1469923200000, 2.881431]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });