$(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: [[1109635200000,3.25799],[1109721600000,3.26506],[1109808000000,3.25199],[1109894400000,3.25732],[1109980800000,3.25068],[1110067200000,3.25068],[1110153600000,3.25068],[1110240000000,3.25068],[1110326400000,3.25068],[1110412800000,3.26727],[1110499200000,3.26855],[1110585600000,3.26927],[1110672000000,3.26927],[1110758400000,3.26927],[1110844800000,3.26373],[1110931200000,3.26812],[1111017600000,3.26489],[1111104000000,3.26057],[1111190400000,3.25109],[1111276800000,3.25109],[1111363200000,3.25109],[1111449600000,null],[1111536000000,3.23643],[1111622400000,3.22135],[1111708800000,3.20625],[1111795200000,3.20625],[1111881600000,3.20625],[1111968000000,3.20625],[1112054400000,3.20625],[1112140800000,3.19753],[1112227200000,3.19778]], 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: [[1109635200000, 3.257993],[1109635200000, 3.257993],[1109721600000, 3.265057],[1109808000000, 3.251989],[1109894400000, 3.257322],[1109980800000, 3.250679],[1110067200000, 3.250679],[1110153600000, 3.250679],[1110240000000, 3.250679],[1110326400000, 3.250679],[1110412800000, 3.267269],[1110499200000, 3.268548],[1110585600000, 3.269274],[1110672000000, 3.269274],[1110758400000, 3.269274],[1110844800000, 3.263732],[1110931200000, 3.268121],[1111017600000, 3.264892],[1111104000000, 3.260568],[1111190400000, 3.251091],[1111276800000, 3.251091],[1111363200000, 3.251091],[1111536000000, 3.236433],[1111622400000, 3.221355],[1111708800000, 3.206250],[1111795200000, 3.206250],[1111881600000, 3.206250],[1111968000000, 3.206250],[1112054400000, 3.206250],[1112140800000, 3.197532],[1112227200000, 3.197782]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });