$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1438387200000,2.44865],[1438473600000,2.44865],[1438560000000,2.44865],[1438646400000,2.50702],[1438732800000,2.5227],[1438819200000,2.47638],[1438905600000,2.4522],[1438992000000,2.41001],[1439078400000,2.41001],[1439164800000,2.41001],[1439251200000,2.42858],[1439337600000,2.46484],[1439424000000,2.48974],[1439510400000,2.51471],[1439596800000,2.57725],[1439683200000,2.57725],[1439769600000,2.57725],[1439856000000,2.58771],[1439942400000,2.59102],[1440028800000,2.57529],[1440115200000,2.59299],[1440201600000,2.61514],[1440288000000,2.61514],[1440374400000,2.61514],[1440460800000,null],[1440547200000,2.72135],[1440633600000,2.53007],[1440720000000,2.51347],[1440806400000,2.51406],[1440892800000,2.51406],[1440979200000,2.51406]], 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, 2.448650],[1438387200000, 2.448650],[1438473600000, 2.448650],[1438560000000, 2.448650],[1438646400000, 2.507017],[1438732800000, 2.522702],[1438819200000, 2.476379],[1438905600000, 2.452203],[1438992000000, 2.410014],[1439078400000, 2.410014],[1439164800000, 2.410014],[1439251200000, 2.428583],[1439337600000, 2.464842],[1439424000000, 2.489736],[1439510400000, 2.514715],[1439596800000, 2.577246],[1439683200000, 2.577246],[1439769600000, 2.577246],[1439856000000, 2.587705],[1439942400000, 2.591017],[1440028800000, 2.575289],[1440115200000, 2.592987],[1440201600000, 2.615144],[1440288000000, 2.615144],[1440374400000, 2.615144],[1440547200000, 2.721347],[1440633600000, 2.530069],[1440720000000, 2.513472],[1440806400000, 2.514060],[1440892800000, 2.514060],[1440979200000, 2.514060]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });