$(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: [[975628800000,0.19493],[975715200000,0.19493],[975801600000,0.19493],[975888000000,0.19493],[975974400000,0.19479],[976060800000,0.19451],[976147200000,0.19464],[976233600000,0.19464],[976320000000,0.1945],[976406400000,0.1945],[976492800000,0.1945],[976579200000,0.1945],[976665600000,0.19451],[976752000000,0.19437],[976838400000,0.19471],[976924800000,0.19435],[977011200000,0.19435],[977097600000,0.19435],[977184000000,0.19448],[977270400000,0.19448],[977356800000,0.1944],[977443200000,0.1944],[977529600000,0.19432],[977616000000,0.19432],[977702400000,0.19432],[977788800000,0.19432],[977875200000,0.19362],[977961600000,0.193],[978048000000,0.19299],[978134400000,0.19299],[978220800000,0.19299]], 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: [[975628800000, 0.194930],[975628800000, 0.194930],[975715200000, 0.194930],[975801600000, 0.194930],[975888000000, 0.194930],[975974400000, 0.194790],[976060800000, 0.194510],[976147200000, 0.194640],[976233600000, 0.194640],[976320000000, 0.194500],[976406400000, 0.194500],[976492800000, 0.194500],[976579200000, 0.194500],[976665600000, 0.194510],[976752000000, 0.194370],[976838400000, 0.194710],[976924800000, 0.194350],[977011200000, 0.194350],[977097600000, 0.194350],[977184000000, 0.194480],[977270400000, 0.194480],[977356800000, 0.194400],[977443200000, 0.194400],[977529600000, 0.194320],[977616000000, 0.194320],[977702400000, 0.194320],[977788800000, 0.194320],[977875200000, 0.193620],[977961600000, 0.193000],[978048000000, 0.192990],[978134400000, 0.192990],[978220800000, 0.192990]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });