$(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: [[1301616000000,0.0961549],[1301702400000,0.0949413],[1301788800000,0.0949413],[1301875200000,0.0949413],[1301961600000,0.0948349],[1302048000000,0.0944958],[1302134400000,0.0934947],[1302220800000,0.0934756],[1302307200000,0.0934036],[1302393600000,0.0934036],[1302480000000,0.0934036],[1302566400000,0.0940205],[1302652800000,0.0945994],[1302739200000,0.0947957],[1302825600000,0.0957327],[1302912000000,0.0956435],[1302998400000,0.0956435],[1303084800000,0.0956435],[1303171200000,0.0962032],[1303257600000,0.0963555],[1303344000000,0.0962439],[1303430400000,0.0971949],[1303516800000,0.0971949],[1303603200000,0.0971949],[1303689600000,0.0971949],[1303776000000,0.0971949],[1303862400000,0.0974883],[1303948800000,0.0968312],[1304035200000,0.0974127],[1304121600000,0.0980893]], 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: [[1301616000000, 0.096155],[1301616000000, 0.096155],[1301702400000, 0.094941],[1301788800000, 0.094941],[1301875200000, 0.094941],[1301961600000, 0.094835],[1302048000000, 0.094496],[1302134400000, 0.093495],[1302220800000, 0.093476],[1302307200000, 0.093404],[1302393600000, 0.093404],[1302480000000, 0.093404],[1302566400000, 0.094021],[1302652800000, 0.094599],[1302739200000, 0.094796],[1302825600000, 0.095733],[1302912000000, 0.095644],[1302998400000, 0.095644],[1303084800000, 0.095644],[1303171200000, 0.096203],[1303257600000, 0.096355],[1303344000000, 0.096244],[1303430400000, 0.097195],[1303516800000, 0.097195],[1303603200000, 0.097195],[1303689600000, 0.097195],[1303776000000, 0.097195],[1303862400000, 0.097488],[1303948800000, 0.096831],[1304035200000, 0.097413],[1304121600000, 0.098089]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });