$(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: [[1130803200000,0.17717],[1130889600000,0.17669],[1130976000000,0.17669],[1131062400000,0.17686],[1131148800000,0.17686],[1131235200000,0.17686],[1131321600000,0.17686],[1131408000000,0.1756],[1131494400000,0.17511],[1131580800000,0.17518],[1131667200000,0.17527],[1131753600000,0.17487],[1131840000000,0.17487],[1131926400000,0.17487],[1132012800000,0.1752],[1132099200000,0.17504],[1132185600000,0.17512],[1132272000000,0.17489],[1132358400000,0.17508],[1132444800000,0.17508],[1132531200000,0.17508],[1132617600000,0.1755],[1132704000000,0.17528],[1132790400000,0.17579],[1132876800000,0.17571],[1132963200000,0.17541],[1133049600000,0.17541],[1133136000000,0.17541],[1133222400000,0.17492],[1133308800000,0.17577]], 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: [[1130803200000, 0.177170],[1130803200000, 0.177170],[1130889600000, 0.176690],[1130976000000, 0.176690],[1131062400000, 0.176860],[1131148800000, 0.176860],[1131235200000, 0.176860],[1131321600000, 0.176860],[1131408000000, 0.175600],[1131494400000, 0.175110],[1131580800000, 0.175180],[1131667200000, 0.175270],[1131753600000, 0.174870],[1131840000000, 0.174870],[1131926400000, 0.174870],[1132012800000, 0.175200],[1132099200000, 0.175040],[1132185600000, 0.175120],[1132272000000, 0.174890],[1132358400000, 0.175080],[1132444800000, 0.175080],[1132531200000, 0.175080],[1132617600000, 0.175500],[1132704000000, 0.175280],[1132790400000, 0.175790],[1132876800000, 0.175710],[1132963200000, 0.175410],[1133049600000, 0.175410],[1133136000000, 0.175410],[1133222400000, 0.174920],[1133308800000, 0.175770]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });