$(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: [[1107216000000,0.0512253],[1107302400000,0.0511153],[1107388800000,0.0511802],[1107475200000,0.0508501],[1107561600000,0.0509913],[1107648000000,0.0509913],[1107734400000,0.0509913],[1107820800000,0.0508133],[1107907200000,0.0501672],[1107993600000,0.0501565],[1108080000000,0.0498046],[1108166400000,0.0500505],[1108252800000,0.0500505],[1108339200000,0.0500505],[1108425600000,0.0504532],[1108512000000,0.0505622],[1108598400000,0.0504381],[1108684800000,0.0501492],[1108771200000,0.0502034],[1108857600000,0.0502034],[1108944000000,0.0502034],[1109030400000,0.0502176],[1109116800000,0.050874],[1109203200000,0.0505338],[1109289600000,0.0505247],[1109376000000,0.0502821],[1109462400000,0.0502821],[1109548800000,0.0502821]], 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: [[1107216000000, 0.051225],[1107216000000, 0.051225],[1107302400000, 0.051115],[1107388800000, 0.051180],[1107475200000, 0.050850],[1107561600000, 0.050991],[1107648000000, 0.050991],[1107734400000, 0.050991],[1107820800000, 0.050813],[1107907200000, 0.050167],[1107993600000, 0.050156],[1108080000000, 0.049805],[1108166400000, 0.050050],[1108252800000, 0.050050],[1108339200000, 0.050050],[1108425600000, 0.050453],[1108512000000, 0.050562],[1108598400000, 0.050438],[1108684800000, 0.050149],[1108771200000, 0.050203],[1108857600000, 0.050203],[1108944000000, 0.050203],[1109030400000, 0.050218],[1109116800000, 0.050874],[1109203200000, 0.050534],[1109289600000, 0.050525],[1109376000000, 0.050282],[1109462400000, 0.050282],[1109548800000, 0.050282]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });