$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1233446400000,9.86832],[1233532800000,9.86832],[1233619200000,9.8252],[1233705600000,9.89373],[1233792000000,9.86986],[1233878400000,9.87833],[1233964800000,9.85292],[1234051200000,9.85292],[1234137600000,9.85292],[1234224000000,10.0162],[1234310400000,9.98459],[1234396800000,9.96226],[1234483200000,9.88141],[1234569600000,null],[1234656000000,null],[1234742400000,9.87371],[1234828800000,9.82905],[1234915200000,9.72818],[1235001600000,9.69892],[1235088000000,9.78285],[1235174400000,9.69507],[1235260800000,9.69507],[1235347200000,9.69507],[1235433600000,9.85446],[1235520000000,9.82751],[1235606400000,9.85215],[1235692800000,9.84214],[1235779200000,9.73588]], 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: [[1233446400000, 9.868320],[1233446400000, 9.868320],[1233532800000, 9.868320],[1233619200000, 9.825200],[1233705600000, 9.893730],[1233792000000, 9.869860],[1233878400000, 9.878330],[1233964800000, 9.852920],[1234051200000, 9.852920],[1234137600000, 9.852920],[1234224000000, 10.016160],[1234310400000, 9.984590],[1234396800000, 9.962260],[1234483200000, 9.881410],[1234742400000, 9.873710],[1234828800000, 9.829050],[1234915200000, 9.728180],[1235001600000, 9.698920],[1235088000000, 9.782850],[1235174400000, 9.695070],[1235260800000, 9.695070],[1235347200000, 9.695070],[1235433600000, 9.854460],[1235520000000, 9.827510],[1235606400000, 9.852150],[1235692800000, 9.842140],[1235779200000, 9.735880]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });