$(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: [[1372636800000,1.29991],[1372723200000,1.30334],[1372809600000,1.30328],[1372896000000,1.30375],[1372982400000,1.30482],[1373068800000,1.30337],[1373155200000,1.30337],[1373241600000,1.30337],[1373328000000,1.30313],[1373414400000,1.30395],[1373500800000,1.30296],[1373587200000,1.30355],[1373673600000,1.30218],[1373760000000,1.30218],[1373846400000,1.30218],[1373932800000,1.30226],[1374019200000,1.30285],[1374105600000,1.30276],[1374192000000,1.30152],[1374278400000,1.30223],[1374364800000,1.30223],[1374451200000,null],[1374537600000,1.30152],[1374624000000,1.30234],[1374710400000,1.30286],[1374796800000,1.30289],[1374883200000,1.30357],[1374969600000,1.30357],[1375056000000,1.30357],[1375142400000,1.3034],[1375228800000,1.30359]], 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: [[1372636800000, 1.299915],[1372636800000, 1.299915],[1372723200000, 1.303341],[1372809600000, 1.303282],[1372896000000, 1.303746],[1372982400000, 1.304816],[1373068800000, 1.303367],[1373155200000, 1.303367],[1373241600000, 1.303367],[1373328000000, 1.303129],[1373414400000, 1.303955],[1373500800000, 1.302964],[1373587200000, 1.303552],[1373673600000, 1.302178],[1373760000000, 1.302178],[1373846400000, 1.302178],[1373932800000, 1.302259],[1374019200000, 1.302851],[1374105600000, 1.302761],[1374192000000, 1.301517],[1374278400000, 1.302231],[1374364800000, 1.302231],[1374537600000, 1.301522],[1374624000000, 1.302342],[1374710400000, 1.302856],[1374796800000, 1.302889],[1374883200000, 1.303575],[1374969600000, 1.303575],[1375056000000, 1.303575],[1375142400000, 1.303404],[1375228800000, 1.303594]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });