$(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: [[1409529600000,2.21535],[1409616000000,2.1347],[1409702400000,2.11756],[1409788800000,2.03825],[1409875200000,null],[1409961600000,2.08873],[1410048000000,2.08873],[1410134400000,2.08873],[1410220800000,2.08792],[1410307200000,2.10463],[1410393600000,2.11051],[1410480000000,2.11697],[1410566400000,2.11267],[1410652800000,2.11267],[1410739200000,2.11267],[1410825600000,2.10372],[1410912000000,2.11418],[1410998400000,2.12877],[1411084800000,2.18659],[1411171200000,null],[1411257600000,2.18736],[1411344000000,2.18736],[1411430400000,null],[1411516800000,2.20263],[1411603200000,2.10863],[1411689600000,2.11017],[1411776000000,2.10337],[1411862400000,2.10337],[1411948800000,2.10337],[1412035200000,2.10725]], 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: [[1409529600000, 2.215347],[1409529600000, 2.215347],[1409616000000, 2.134697],[1409702400000, 2.117560],[1409788800000, 2.038255],[1409961600000, 2.088727],[1410048000000, 2.088727],[1410134400000, 2.088727],[1410220800000, 2.087915],[1410307200000, 2.104630],[1410393600000, 2.110512],[1410480000000, 2.116974],[1410566400000, 2.112672],[1410652800000, 2.112672],[1410739200000, 2.112672],[1410825600000, 2.103717],[1410912000000, 2.114178],[1410998400000, 2.128765],[1411084800000, 2.186592],[1411257600000, 2.187363],[1411344000000, 2.187363],[1411516800000, 2.202626],[1411603200000, 2.108630],[1411689600000, 2.110169],[1411776000000, 2.103371],[1411862400000, 2.103371],[1411948800000, 2.103371],[1412035200000, 2.107255]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });