$(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: [[1533168000000,19.8059],[1533254400000,19.7642],[1533340800000,19.8226],[1533427200000,19.8226],[1533513600000,19.8226],[1533600000000,19.8229],[1533686400000,19.8141],[1533772800000,19.7584],[1533859200000,19.8863],[1533945600000,19.8705],[1534032000000,19.8705],[1534118400000,19.8705],[1534204800000,19.8744],[1534291200000,19.9883],[1534377600000,19.8861],[1534464000000,20.1057],[1534550400000,20.3049],[1534636800000,20.3049],[1534723200000,20.3049],[1534809600000,20.1913],[1534896000000,20.2538],[1534982400000,20.4236],[1535068800000,20.3298],[1535155200000,20.3298],[1535241600000,20.3298],[1535328000000,20.3298],[1535414400000,20.4224],[1535500800000,20.6008],[1535587200000,20.5657],[1535673600000,20.7066]], 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: [[1533168000000, 19.805871],[1533168000000, 19.805871],[1533254400000, 19.764241],[1533340800000, 19.822592],[1533427200000, 19.822592],[1533513600000, 19.822592],[1533600000000, 19.822869],[1533686400000, 19.814073],[1533772800000, 19.758407],[1533859200000, 19.886263],[1533945600000, 19.870515],[1534032000000, 19.870515],[1534118400000, 19.870515],[1534204800000, 19.874354],[1534291200000, 19.988287],[1534377600000, 19.886086],[1534464000000, 20.105698],[1534550400000, 20.304928],[1534636800000, 20.304928],[1534723200000, 20.304928],[1534809600000, 20.191260],[1534896000000, 20.253837],[1534982400000, 20.423571],[1535068800000, 20.329814],[1535155200000, 20.329814],[1535241600000, 20.329814],[1535328000000, 20.329814],[1535414400000, 20.422375],[1535500800000, 20.600800],[1535587200000, 20.565681],[1535673600000, 20.706612]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });