$(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: [[1114905600000,0.18183],[1114992000000,0.18183],[1115078400000,0.18183],[1115164800000,0.18183],[1115251200000,0.18172],[1115337600000,0.18176],[1115424000000,0.18175],[1115510400000,0.18175],[1115596800000,0.18175],[1115683200000,0.18175],[1115769600000,0.18175],[1115856000000,0.18155],[1115942400000,0.18121],[1116028800000,0.18085],[1116115200000,0.18085],[1116201600000,0.18085],[1116288000000,0.18021],[1116374400000,0.1804],[1116460800000,0.18032],[1116547200000,0.18061],[1116633600000,0.18054],[1116720000000,0.18054],[1116806400000,0.18054],[1116892800000,0.17996],[1116979200000,0.18015],[1117065600000,0.18012],[1117152000000,0.17995],[1117238400000,0.17983],[1117324800000,0.17983],[1117411200000,0.17983],[1117497600000,0.17977]], 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: [[1114905600000, 0.181830],[1114905600000, 0.181830],[1114992000000, 0.181830],[1115078400000, 0.181830],[1115164800000, 0.181830],[1115251200000, 0.181720],[1115337600000, 0.181760],[1115424000000, 0.181750],[1115510400000, 0.181750],[1115596800000, 0.181750],[1115683200000, 0.181750],[1115769600000, 0.181750],[1115856000000, 0.181550],[1115942400000, 0.181210],[1116028800000, 0.180850],[1116115200000, 0.180850],[1116201600000, 0.180850],[1116288000000, 0.180210],[1116374400000, 0.180400],[1116460800000, 0.180320],[1116547200000, 0.180610],[1116633600000, 0.180540],[1116720000000, 0.180540],[1116806400000, 0.180540],[1116892800000, 0.179960],[1116979200000, 0.180150],[1117065600000, 0.180120],[1117152000000, 0.179950],[1117238400000, 0.179830],[1117324800000, 0.179830],[1117411200000, 0.179830],[1117497600000, 0.179770]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });