$(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: [[1414800000000,2.11799],[1414886400000,2.11799],[1414972800000,2.11799],[1415059200000,2.11856],[1415145600000,2.11694],[1415232000000,2.20677],[1415318400000,2.28236],[1415404800000,2.36705],[1415491200000,2.36705],[1415577600000,2.36705],[1415664000000,2.41801],[1415750400000,2.57707],[1415836800000,2.57204],[1415923200000,2.53969],[1416009600000,2.51546],[1416096000000,2.51546],[1416182400000,2.51546],[1416268800000,null],[1416355200000,2.49195],[1416441600000,2.48305],[1416528000000,2.47498],[1416614400000,2.46397],[1416700800000,2.46397],[1416787200000,2.46397],[1416873600000,2.45799],[1416960000000,2.44382],[1417046400000,2.43968],[1417132800000,2.43819],[1417219200000,2.43854],[1417305600000,2.43854]], 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: [[1414800000000, 2.117986],[1414800000000, 2.117986],[1414886400000, 2.117986],[1414972800000, 2.117986],[1415059200000, 2.118564],[1415145600000, 2.116940],[1415232000000, 2.206768],[1415318400000, 2.282359],[1415404800000, 2.367053],[1415491200000, 2.367053],[1415577600000, 2.367053],[1415664000000, 2.418008],[1415750400000, 2.577065],[1415836800000, 2.572043],[1415923200000, 2.539689],[1416009600000, 2.515456],[1416096000000, 2.515456],[1416182400000, 2.515456],[1416355200000, 2.491946],[1416441600000, 2.483052],[1416528000000, 2.474983],[1416614400000, 2.463966],[1416700800000, 2.463966],[1416787200000, 2.463966],[1416873600000, 2.457992],[1416960000000, 2.443820],[1417046400000, 2.439676],[1417132800000, 2.438192],[1417219200000, 2.438539],[1417305600000, 2.438539]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });