$(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: [[1480550400000,17.9073],[1480636800000,17.9543],[1480723200000,18.2044],[1480809600000,18.2044],[1480896000000,18.2044],[1480982400000,18.3596],[1481068800000,18.3957],[1481155200000,18.3464],[1481241600000,18.1616],[1481328000000,18.1219],[1481414400000,18.1219],[1481500800000,18.1219],[1481587200000,18.3103],[1481673600000,18.2993],[1481760000000,18.4744],[1481846400000,18.2572],[1481932800000,18.2461],[1482019200000,18.2461],[1482105600000,18.2461],[1482192000000,18.2149],[1482278400000,18.2869],[1482364800000,18.3174],[1482451200000,18.1376],[1482537600000,18.1542],[1482624000000,18.1542],[1482710400000,18.1542],[1482796800000,18.2225],[1482883200000,18.2225],[1482969600000,18.5156],[1483056000000,18.7534],[1483142400000,18.7534]], 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: [[1480550400000, 17.907335],[1480550400000, 17.907335],[1480636800000, 17.954349],[1480723200000, 18.204387],[1480809600000, 18.204387],[1480896000000, 18.204387],[1480982400000, 18.359571],[1481068800000, 18.395674],[1481155200000, 18.346413],[1481241600000, 18.161573],[1481328000000, 18.121899],[1481414400000, 18.121899],[1481500800000, 18.121899],[1481587200000, 18.310286],[1481673600000, 18.299285],[1481760000000, 18.474377],[1481846400000, 18.257208],[1481932800000, 18.246135],[1482019200000, 18.246135],[1482105600000, 18.246135],[1482192000000, 18.214889],[1482278400000, 18.286899],[1482364800000, 18.317400],[1482451200000, 18.137627],[1482537600000, 18.154204],[1482624000000, 18.154204],[1482710400000, 18.154204],[1482796800000, 18.222498],[1482883200000, 18.222498],[1482969600000, 18.515638],[1483056000000, 18.753368],[1483142400000, 18.753368]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });