$(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: [[1233446400000,5.10096],[1233532800000,5.10096],[1233619200000,5.0792],[1233705600000,5.08518],[1233792000000,5.10044],[1233878400000,5.11168],[1233964800000,5.12292],[1234051200000,5.12292],[1234137600000,5.12292],[1234224000000,5.15341],[1234310400000,5.14298],[1234396800000,5.1044],[1234483200000,5.09771],[1234569600000,null],[1234656000000,null],[1234742400000,5.10691],[1234828800000,5.07463],[1234915200000,5.04704],[1235001600000,5.035],[1235088000000,5.04557],[1235174400000,5.00804],[1235260800000,5.00804],[1235347200000,5.00804],[1235433600000,5.044],[1235520000000,5.03768],[1235606400000,5.04359],[1235692800000,5.01306],[1235779200000,4.9777]], 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, 5.100961],[1233446400000, 5.100961],[1233532800000, 5.100961],[1233619200000, 5.079198],[1233705600000, 5.085182],[1233792000000, 5.100439],[1233878400000, 5.111684],[1233964800000, 5.122924],[1234051200000, 5.122924],[1234137600000, 5.122924],[1234224000000, 5.153406],[1234310400000, 5.142984],[1234396800000, 5.104401],[1234483200000, 5.097715],[1234742400000, 5.106915],[1234828800000, 5.074630],[1234915200000, 5.047045],[1235001600000, 5.035000],[1235088000000, 5.045567],[1235174400000, 5.008043],[1235260800000, 5.008043],[1235347200000, 5.008043],[1235433600000, 5.043999],[1235520000000, 5.037682],[1235606400000, 5.043591],[1235692800000, 5.013060],[1235779200000, 4.977698]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });