$(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: [[1438387200000,3.40219],[1438473600000,3.40219],[1438560000000,3.40219],[1438646400000,3.49737],[1438732800000,3.49661],[1438819200000,3.47294],[1438905600000,3.45974],[1438992000000,3.3963],[1439078400000,3.3963],[1439164800000,3.3963],[1439251200000,3.42417],[1439337600000,3.37889],[1439424000000,3.34888],[1439510400000,3.34409],[1439596800000,3.40432],[1439683200000,3.40432],[1439769600000,3.40432],[1439856000000,3.4432],[1439942400000,3.45427],[1440028800000,3.4502],[1440115200000,3.4482],[1440201600000,3.45887],[1440288000000,3.45887],[1440374400000,3.45887],[1440460800000,null],[1440547200000,3.52784],[1440633600000,3.3429],[1440720000000,3.32787],[1440806400000,3.31561],[1440892800000,3.31561],[1440979200000,3.31561]], 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: [[1438387200000, 3.402193],[1438387200000, 3.402193],[1438473600000, 3.402193],[1438560000000, 3.402193],[1438646400000, 3.497370],[1438732800000, 3.496606],[1438819200000, 3.472940],[1438905600000, 3.459743],[1438992000000, 3.396297],[1439078400000, 3.396297],[1439164800000, 3.396297],[1439251200000, 3.424167],[1439337600000, 3.378895],[1439424000000, 3.348879],[1439510400000, 3.344085],[1439596800000, 3.404321],[1439683200000, 3.404321],[1439769600000, 3.404321],[1439856000000, 3.443202],[1439942400000, 3.454274],[1440028800000, 3.450203],[1440115200000, 3.448195],[1440201600000, 3.458868],[1440288000000, 3.458868],[1440374400000, 3.458868],[1440547200000, 3.527837],[1440633600000, 3.342901],[1440720000000, 3.327870],[1440806400000, 3.315614],[1440892800000, 3.315614],[1440979200000, 3.315614]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });