$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1517443200000,1.66666],[1517529600000,1.66982],[1517616000000,1.67304],[1517702400000,1.67304],[1517788800000,1.67304],[1517875200000,1.66886],[1517961600000,1.65258],[1518048000000,1.63435],[1518134400000,1.63271],[1518220800000,1.62618],[1518307200000,1.62618],[1518393600000,1.62618],[1518480000000,1.60871],[1518566400000,1.59591],[1518652800000,1.59021],[1518739200000,1.5959],[1518825600000,1.61494],[1518912000000,1.61494],[1518998400000,1.61494],[1519084800000,1.61843],[1519171200000,1.6275],[1519257600000,1.62068],[1519344000000,1.62407],[1519430400000,1.61641],[1519516800000,1.61641],[1519603200000,1.61641],[1519689600000,1.6172],[1519776000000,1.61424]], 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: [[1517443200000, 1.666656],[1517443200000, 1.666656],[1517529600000, 1.669820],[1517616000000, 1.673044],[1517702400000, 1.673044],[1517788800000, 1.673044],[1517875200000, 1.668859],[1517961600000, 1.652577],[1518048000000, 1.634353],[1518134400000, 1.632708],[1518220800000, 1.626183],[1518307200000, 1.626183],[1518393600000, 1.626183],[1518480000000, 1.608710],[1518566400000, 1.595914],[1518652800000, 1.590209],[1518739200000, 1.595904],[1518825600000, 1.614935],[1518912000000, 1.614935],[1518998400000, 1.614935],[1519084800000, 1.618430],[1519171200000, 1.627498],[1519257600000, 1.620679],[1519344000000, 1.624073],[1519430400000, 1.616407],[1519516800000, 1.616407],[1519603200000, 1.616407],[1519689600000, 1.617201],[1519776000000, 1.614244]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });