$(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: [[1417392000000,2.43854],[1417478400000,2.45131],[1417564800000,2.45442],[1417651200000,2.46903],[1417737600000,2.49001],[1417824000000,2.50446],[1417910400000,2.50446],[1417996800000,2.50446],[1418083200000,2.52355],[1418169600000,2.52358],[1418256000000,2.52829],[1418342400000,2.53785],[1418428800000,2.53852],[1418515200000,2.53852],[1418601600000,2.53852],[1418688000000,2.54665],[1418774400000,2.54686],[1418860800000,2.54844],[1418947200000,null],[1419033600000,2.53688],[1419120000000,2.53688],[1419206400000,2.53688],[1419292800000,2.54812],[1419379200000,2.5173],[1419465600000,2.5331],[1419552000000,2.53662],[1419638400000,2.53629],[1419724800000,2.53629],[1419811200000,2.53629],[1419897600000,2.53331],[1419984000000,2.53331]], 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: [[1417392000000, 2.438539],[1417392000000, 2.438539],[1417478400000, 2.451309],[1417564800000, 2.454422],[1417651200000, 2.469032],[1417737600000, 2.490008],[1417824000000, 2.504457],[1417910400000, 2.504457],[1417996800000, 2.504457],[1418083200000, 2.523553],[1418169600000, 2.523580],[1418256000000, 2.528286],[1418342400000, 2.537846],[1418428800000, 2.538517],[1418515200000, 2.538517],[1418601600000, 2.538517],[1418688000000, 2.546649],[1418774400000, 2.546863],[1418860800000, 2.548441],[1419033600000, 2.536885],[1419120000000, 2.536885],[1419206400000, 2.536885],[1419292800000, 2.548117],[1419379200000, 2.517299],[1419465600000, 2.533103],[1419552000000, 2.536617],[1419638400000, 2.536295],[1419724800000, 2.536295],[1419811200000, 2.536295],[1419897600000, 2.533312],[1419984000000, 2.533312]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });