$(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: 'Курс TRY, грн'}, 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: 'Курс TRY', data: [[1233446400000,4.66146],[1233532800000,4.66146],[1233619200000,4.63562],[1233705600000,4.68054],[1233792000000,4.68343],[1233878400000,4.69681],[1233964800000,4.71635],[1234051200000,4.71635],[1234137600000,4.71635],[1234224000000,4.77506],[1234310400000,4.75683],[1234396800000,4.69431],[1234483200000,4.65029],[1234569600000,null],[1234656000000,null],[1234742400000,4.67284],[1234828800000,4.62587],[1234915200000,4.58682],[1235001600000,4.54537],[1235088000000,4.57977],[1235174400000,4.49158],[1235260800000,4.49158],[1235347200000,4.49158],[1235433600000,4.57241],[1235520000000,4.53403],[1235606400000,4.56013],[1235692800000,4.56077],[1235779200000,4.51613]], 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, 4.661464],[1233446400000, 4.661464],[1233532800000, 4.661464],[1233619200000, 4.635622],[1233705600000, 4.680542],[1233792000000, 4.683430],[1233878400000, 4.696810],[1233964800000, 4.716347],[1234051200000, 4.716347],[1234137600000, 4.716347],[1234224000000, 4.775057],[1234310400000, 4.756832],[1234396800000, 4.694308],[1234483200000, 4.650294],[1234742400000, 4.672840],[1234828800000, 4.625871],[1234915200000, 4.586817],[1235001600000, 4.545374],[1235088000000, 4.579772],[1235174400000, 4.491577],[1235260800000, 4.491577],[1235347200000, 4.491577],[1235433600000, 4.572411],[1235520000000, 4.534030],[1235606400000, 4.560125],[1235692800000, 4.560769],[1235779200000, 4.516133]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });