$(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: [[1483228800000,0.232896],[1483315200000,0.232896],[1483401600000,0.232896],[1483488000000,0.232896],[1483574400000,0.227159],[1483660800000,0.227159],[1483747200000,0.232944],[1483833600000,0.232944],[1483920000000,0.232944],[1484006400000,0.232944],[1484092800000,0.233868],[1484179200000,0.23315],[1484265600000,0.239149],[1484352000000,null],[1484438400000,0.241967],[1484524800000,0.241967],[1484611200000,0.242893],[1484697600000,0.243763],[1484784000000,0.242192],[1484870400000,0.23951],[1484956800000,0.238115],[1485043200000,0.238115],[1485129600000,0.238115],[1485216000000,0.240608],[1485302400000,0.240204],[1485388800000,0.240001],[1485475200000,0.237892],[1485561600000,0.236111],[1485648000000,0.236111],[1485734400000,0.236111],[1485820800000,0.236757]], 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: [[1483228800000, 0.232896],[1483228800000, 0.232896],[1483315200000, 0.232896],[1483401600000, 0.232896],[1483488000000, 0.232896],[1483574400000, 0.227159],[1483660800000, 0.227159],[1483747200000, 0.232944],[1483833600000, 0.232944],[1483920000000, 0.232944],[1484006400000, 0.232944],[1484092800000, 0.233868],[1484179200000, 0.233150],[1484265600000, 0.239149],[1484438400000, 0.241967],[1484524800000, 0.241967],[1484611200000, 0.242893],[1484697600000, 0.243763],[1484784000000, 0.242192],[1484870400000, 0.239510],[1484956800000, 0.238115],[1485043200000, 0.238115],[1485129600000, 0.238115],[1485216000000, 0.240608],[1485302400000, 0.240204],[1485388800000, 0.240001],[1485475200000, 0.237892],[1485561600000, 0.236111],[1485648000000, 0.236111],[1485734400000, 0.236111],[1485820800000, 0.236757]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });