$(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: [[1493596800000,19.0268],[1493683200000,19.0268],[1493769600000,19.0268],[1493856000000,19.017],[1493942400000,18.9244],[1494028800000,18.8657],[1494115200000,18.8657],[1494201600000,18.8657],[1494288000000,18.8657],[1494374400000,18.8657],[1494460800000,18.7577],[1494547200000,18.7692],[1494633600000,18.8021],[1494720000000,18.8021],[1494806400000,18.8021],[1494892800000,18.9317],[1494979200000,18.9123],[1495065600000,18.9473],[1495152000000,18.9615],[1495238400000,19.0074],[1495324800000,19.0074],[1495411200000,19.0074],[1495497600000,19.0079],[1495584000000,18.9482],[1495670400000,18.9199],[1495756800000,18.9801],[1495843200000,19.0557],[1495929600000,19.0557],[1496016000000,19.0557],[1496102400000,19.0604],[1496188800000,19.0157]], 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: [[1493596800000, 19.026803],[1493596800000, 19.026803],[1493683200000, 19.026803],[1493769600000, 19.026803],[1493856000000, 19.016960],[1493942400000, 18.924351],[1494028800000, 18.865659],[1494115200000, 18.865659],[1494201600000, 18.865659],[1494288000000, 18.865659],[1494374400000, 18.865659],[1494460800000, 18.757666],[1494547200000, 18.769172],[1494633600000, 18.802052],[1494720000000, 18.802052],[1494806400000, 18.802052],[1494892800000, 18.931704],[1494979200000, 18.912272],[1495065600000, 18.947274],[1495152000000, 18.961501],[1495238400000, 19.007442],[1495324800000, 19.007442],[1495411200000, 19.007442],[1495497600000, 19.007905],[1495584000000, 18.948233],[1495670400000, 18.919921],[1495756800000, 18.980134],[1495843200000, 19.055672],[1495929600000, 19.055672],[1496016000000, 19.055672],[1496102400000, 19.060403],[1496188800000, 19.015732]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });