$(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: [[1235865600000,0.0790058],[1235952000000,0.0790058],[1236038400000,0.0791619],[1236124800000,0.0785632],[1236211200000,0.0775435],[1236297600000,0.0775186],[1236384000000,0.0795451],[1236470400000,0.0795451],[1236556800000,0.0795451],[1236643200000,0.0795451],[1236729600000,null],[1236816000000,0.0785418],[1236902400000,0.0791805],[1236988800000,0.0782244],[1237075200000,0.0782244],[1237161600000,0.0782244],[1237248000000,0.0781444],[1237334400000,0.0777934],[1237420800000,0.0784093],[1237507200000,0.0811805],[1237593600000,0.0803321],[1237680000000,0.0803321],[1237766400000,0.0803321],[1237852800000,0.0796191],[1237939200000,0.078387],[1238025600000,0.0785721],[1238112000000,0.078406],[1238198400000,0.0788019],[1238284800000,0.0788019],[1238371200000,0.0788019],[1238457600000,0.0794076]], 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: [[1235865600000, 0.079006],[1235865600000, 0.079006],[1235952000000, 0.079006],[1236038400000, 0.079162],[1236124800000, 0.078563],[1236211200000, 0.077544],[1236297600000, 0.077519],[1236384000000, 0.079545],[1236470400000, 0.079545],[1236556800000, 0.079545],[1236643200000, 0.079545],[1236816000000, 0.078542],[1236902400000, 0.079181],[1236988800000, 0.078224],[1237075200000, 0.078224],[1237161600000, 0.078224],[1237248000000, 0.078144],[1237334400000, 0.077793],[1237420800000, 0.078409],[1237507200000, 0.081181],[1237593600000, 0.080332],[1237680000000, 0.080332],[1237766400000, 0.080332],[1237852800000, 0.079619],[1237939200000, 0.078387],[1238025600000, 0.078572],[1238112000000, 0.078406],[1238198400000, 0.078802],[1238284800000, 0.078802],[1238371200000, 0.078802],[1238457600000, 0.079408]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });