$(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: [[1270080000000,0.0848258],[1270166400000,0.0845216],[1270252800000,0.0845216],[1270339200000,0.0845216],[1270425600000,0.0845216],[1270512000000,0.0845216],[1270598400000,0.0842298],[1270684800000,0.08454],[1270771200000,0.0851552],[1270857600000,0.0846404],[1270944000000,0.0846404],[1271030400000,0.0846404],[1271116800000,0.0847953],[1271203200000,0.0852168],[1271289600000,0.0846936],[1271376000000,0.0850745],[1271462400000,0.0856151],[1271548800000,0.0856151],[1271635200000,0.0856151],[1271721600000,0.086203],[1271808000000,0.0852894],[1271894400000,0.0850336],[1271980800000,0.0852393],[1272067200000,0.0843261],[1272153600000,0.0843261],[1272240000000,0.0843261],[1272326400000,0.0841572],[1272412800000,0.0844709],[1272499200000,0.0843337],[1272585600000,0.0842143]], 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: [[1270080000000, 0.084826],[1270080000000, 0.084826],[1270166400000, 0.084522],[1270252800000, 0.084522],[1270339200000, 0.084522],[1270425600000, 0.084522],[1270512000000, 0.084522],[1270598400000, 0.084230],[1270684800000, 0.084540],[1270771200000, 0.085155],[1270857600000, 0.084640],[1270944000000, 0.084640],[1271030400000, 0.084640],[1271116800000, 0.084795],[1271203200000, 0.085217],[1271289600000, 0.084694],[1271376000000, 0.085074],[1271462400000, 0.085615],[1271548800000, 0.085615],[1271635200000, 0.085615],[1271721600000, 0.086203],[1271808000000, 0.085289],[1271894400000, 0.085034],[1271980800000, 0.085239],[1272067200000, 0.084326],[1272153600000, 0.084326],[1272240000000, 0.084326],[1272326400000, 0.084157],[1272412800000, 0.084471],[1272499200000, 0.084334],[1272585600000, 0.084214]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });