$(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: [[1438387200000,15.3624],[1438473600000,15.3624],[1438560000000,15.3624],[1438646400000,15.7638],[1438732800000,15.7752],[1438819200000,15.5875],[1438905600000,15.5076],[1438992000000,15.2447],[1439078400000,15.2447],[1439164800000,15.2447],[1439251200000,15.3408],[1439337600000,15.2772],[1439424000000,15.2411],[1439510400000,15.2964],[1439596800000,15.5138],[1439683200000,15.5138],[1439769600000,15.5138],[1439856000000,15.6232],[1439942400000,15.7462],[1440028800000,15.7132],[1440115200000,15.6904],[1440201600000,15.7242],[1440288000000,15.7242],[1440374400000,15.7242],[1440460800000,null],[1440547200000,16.1841],[1440633600000,15.2628],[1440720000000,15.2309],[1440806400000,15.0667],[1440892800000,15.0667],[1440979200000,15.0667]], 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, 15.362428],[1438387200000, 15.362428],[1438473600000, 15.362428],[1438560000000, 15.362428],[1438646400000, 15.763781],[1438732800000, 15.775238],[1438819200000, 15.587521],[1438905600000, 15.507585],[1438992000000, 15.244741],[1439078400000, 15.244741],[1439164800000, 15.244741],[1439251200000, 15.340790],[1439337600000, 15.277238],[1439424000000, 15.241122],[1439510400000, 15.296410],[1439596800000, 15.513811],[1439683200000, 15.513811],[1439769600000, 15.513811],[1439856000000, 15.623164],[1439942400000, 15.746183],[1440028800000, 15.713165],[1440115200000, 15.690364],[1440201600000, 15.724188],[1440288000000, 15.724188],[1440374400000, 15.724188],[1440547200000, 16.184094],[1440633600000, 15.262767],[1440720000000, 15.230910],[1440806400000, 15.066748],[1440892800000, 15.066748],[1440979200000, 15.066748]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });