$(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: [[1485907200000,19.1593],[1485993600000,19.1151],[1486080000000,19.1488],[1486166400000,19.1521],[1486252800000,19.1521],[1486339200000,19.1521],[1486425600000,19.3326],[1486512000000,19.0573],[1486598400000,18.993],[1486684800000,19.1043],[1486771200000,19.1359],[1486857600000,19.1359],[1486944000000,19.1359],[1487030400000,19.1053],[1487116800000,19.2282],[1487203200000,18.9793],[1487289600000,19.0336],[1487376000000,19.0792],[1487462400000,19.0792],[1487548800000,19.0792],[1487635200000,19.0543],[1487721600000,19.0104],[1487808000000,19.0249],[1487894400000,19.0594],[1487980800000,19.218],[1488067200000,19.218],[1488153600000,19.218],[1488240000000,19.2511]], 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: [[1485907200000, 19.159292],[1485907200000, 19.159292],[1485993600000, 19.115141],[1486080000000, 19.148849],[1486166400000, 19.152149],[1486252800000, 19.152149],[1486339200000, 19.152149],[1486425600000, 19.332609],[1486512000000, 19.057289],[1486598400000, 18.992973],[1486684800000, 19.104319],[1486771200000, 19.135881],[1486857600000, 19.135881],[1486944000000, 19.135881],[1487030400000, 19.105271],[1487116800000, 19.228210],[1487203200000, 18.979315],[1487289600000, 19.033598],[1487376000000, 19.079171],[1487462400000, 19.079171],[1487548800000, 19.079171],[1487635200000, 19.054299],[1487721600000, 19.010421],[1487808000000, 19.024876],[1487894400000, 19.059370],[1487980800000, 19.217998],[1488067200000, 19.217998],[1488153600000, 19.217998],[1488240000000, 19.251057]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });