$(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: 'Курс CNY, грн'}, 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: 'Курс CNY', data: [[1241136000000,1.12854],[1241222400000,1.12854],[1241308800000,null],[1241395200000,1.12854],[1241481600000,1.12854],[1241568000000,1.12905],[1241654400000,1.12877],[1241740800000,1.13102],[1241827200000,1.1249],[1241913600000,1.1249],[1242000000000,1.1249],[1242086400000,1.1249],[1242172800000,1.12224],[1242259200000,1.11767],[1242345600000,1.117],[1242432000000,1.11666],[1242518400000,1.11666],[1242604800000,1.11666],[1242691200000,1.11636],[1242777600000,1.11667],[1242864000000,1.11591],[1242950400000,1.11596],[1243036800000,1.11619],[1243123200000,1.11619],[1243209600000,1.11619],[1243296000000,1.11607],[1243382400000,1.11542],[1243468800000,1.11583],[1243555200000,1.1158],[1243641600000,1.11575],[1243728000000,1.11575]], 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: [[1241136000000, 1.128540],[1241136000000, 1.128540],[1241222400000, 1.128540],[1241395200000, 1.128540],[1241481600000, 1.128540],[1241568000000, 1.129050],[1241654400000, 1.128772],[1241740800000, 1.131018],[1241827200000, 1.124904],[1241913600000, 1.124904],[1242000000000, 1.124904],[1242086400000, 1.124904],[1242172800000, 1.122243],[1242259200000, 1.117666],[1242345600000, 1.117002],[1242432000000, 1.116662],[1242518400000, 1.116662],[1242604800000, 1.116662],[1242691200000, 1.116356],[1242777600000, 1.116672],[1242864000000, 1.115915],[1242950400000, 1.115960],[1243036800000, 1.116189],[1243123200000, 1.116189],[1243209600000, 1.116189],[1243296000000, 1.116069],[1243382400000, 1.115422],[1243468800000, 1.115835],[1243555200000, 1.115803],[1243641600000, 1.115752],[1243728000000, 1.115752]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });