$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1404864000000,9.39527],[1404950400000,9.37521],[1405036800000,null],[1405123200000,9.40705],[1405209600000,9.40705],[1405296000000,9.40705],[1405382400000,9.42843],[1405468800000,9.44154],[1405555200000,9.43615],[1405641600000,9.43097],[1405728000000,9.38157],[1405814400000,null],[1405900800000,null],[1405987200000,9.38959],[1406073600000,9.40476],[1406160000000,9.38301],[1406246400000,9.43444],[1406332800000,9.48788],[1406419200000,9.48788],[1406505600000,9.48788],[1406592000000,9.55381],[1406678400000,9.65759],[1406764800000,9.66719]], 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: [[1404864000000, 9.395271],[1404864000000, 9.395271],[1404950400000, 9.375212],[1405123200000, 9.407051],[1405209600000, 9.407051],[1405296000000, 9.407051],[1405382400000, 9.428431],[1405468800000, 9.441538],[1405555200000, 9.436150],[1405641600000, 9.430965],[1405728000000, 9.381574],[1405987200000, 9.389593],[1406073600000, 9.404760],[1406160000000, 9.383014],[1406246400000, 9.434437],[1406332800000, 9.487876],[1406419200000, 9.487876],[1406505600000, 9.487876],[1406592000000, 9.553811],[1406678400000, 9.657592],[1406764800000, 9.667195]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });