$(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: 'Курс JPY, грн'}, 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: 'Курс JPY', data: [[1130803200000,0.0434805],[1130889600000,0.0433084],[1130976000000,0.0431767],[1131062400000,0.0431991],[1131148800000,0.0428847],[1131235200000,0.0428847],[1131321600000,0.0428847],[1131408000000,0.0428867],[1131494400000,0.0428969],[1131580800000,0.0430541],[1131667200000,0.0429146],[1131753600000,0.0427701],[1131840000000,0.0427701],[1131926400000,0.0427701],[1132012800000,0.0425361],[1132099200000,0.0423538],[1132185600000,0.0423019],[1132272000000,0.0425332],[1132358400000,0.0423486],[1132444800000,0.0423486],[1132531200000,0.0423486],[1132617600000,0.0424796],[1132704000000,0.0422918],[1132790400000,0.0425446],[1132876800000,0.0424939],[1132963200000,0.0422979],[1133049600000,0.0422979],[1133136000000,0.0422979],[1133222400000,0.0421799],[1133308800000,0.0423665]], 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.043480],[1130803200000, 0.043480],[1130889600000, 0.043308],[1130976000000, 0.043177],[1131062400000, 0.043199],[1131148800000, 0.042885],[1131235200000, 0.042885],[1131321600000, 0.042885],[1131408000000, 0.042887],[1131494400000, 0.042897],[1131580800000, 0.043054],[1131667200000, 0.042915],[1131753600000, 0.042770],[1131840000000, 0.042770],[1131926400000, 0.042770],[1132012800000, 0.042536],[1132099200000, 0.042354],[1132185600000, 0.042302],[1132272000000, 0.042533],[1132358400000, 0.042349],[1132444800000, 0.042349],[1132531200000, 0.042349],[1132617600000, 0.042480],[1132704000000, 0.042292],[1132790400000, 0.042545],[1132876800000, 0.042494],[1132963200000, 0.042298],[1133049600000, 0.042298],[1133136000000, 0.042298],[1133222400000, 0.042180],[1133308800000, 0.042367]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });