$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1030838400000,0.16882],[1030924800000,0.16882],[1031011200000,0.16862],[1031097600000,0.16859],[1031184000000,0.16859],[1031270400000,0.16858],[1031356800000,0.16858],[1031443200000,0.16858],[1031529600000,0.1685],[1031616000000,0.16849],[1031702400000,0.16843],[1031788800000,0.1684],[1031875200000,0.16844],[1031961600000,0.16844],[1032048000000,0.16844],[1032134400000,0.16844],[1032220800000,0.16851],[1032307200000,0.16852],[1032393600000,0.16843],[1032480000000,0.16845],[1032566400000,0.16845],[1032652800000,0.16845],[1032739200000,0.16848],[1032825600000,0.16847],[1032912000000,0.16845],[1032998400000,0.16847],[1033084800000,0.16846],[1033171200000,0.16846],[1033257600000,0.16846],[1033344000000,0.16846]], 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: [[1030838400000, 0.168820],[1030838400000, 0.168820],[1030924800000, 0.168820],[1031011200000, 0.168620],[1031097600000, 0.168590],[1031184000000, 0.168590],[1031270400000, 0.168580],[1031356800000, 0.168580],[1031443200000, 0.168580],[1031529600000, 0.168500],[1031616000000, 0.168490],[1031702400000, 0.168430],[1031788800000, 0.168400],[1031875200000, 0.168440],[1031961600000, 0.168440],[1032048000000, 0.168440],[1032134400000, 0.168440],[1032220800000, 0.168510],[1032307200000, 0.168520],[1032393600000, 0.168430],[1032480000000, 0.168450],[1032566400000, 0.168450],[1032652800000, 0.168450],[1032739200000, 0.168480],[1032825600000, 0.168470],[1032912000000, 0.168450],[1032998400000, 0.168470],[1033084800000, 0.168460],[1033171200000, 0.168460],[1033257600000, 0.168460],[1033344000000, 0.168460]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });