$(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: [[1488326400000,19.4089],[1488412800000,19.2894],[1488499200000,19.1939],[1488585600000,19.1867],[1488672000000,19.1867],[1488758400000,19.1867],[1488844800000,19.1624],[1488931200000,19.1101],[1489017600000,19.1101],[1489104000000,18.9452],[1489190400000,18.9049],[1489276800000,18.9049],[1489363200000,18.9049],[1489449600000,19.0259],[1489536000000,19.0185],[1489622400000,19.0339],[1489708800000,19.2469],[1489795200000,19.1913],[1489881600000,19.1913],[1489968000000,19.1913],[1490054400000,19.2348],[1490140800000,19.2236],[1490227200000,19.2562],[1490313600000,19.3454],[1490400000000,19.376],[1490486400000,19.376],[1490572800000,19.376],[1490659200000,19.5178],[1490745600000,19.4559],[1490832000000,19.3674],[1490918400000,19.3391]], 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: [[1488326400000, 19.408932],[1488326400000, 19.408932],[1488412800000, 19.289427],[1488499200000, 19.193942],[1488585600000, 19.186692],[1488672000000, 19.186692],[1488758400000, 19.186692],[1488844800000, 19.162414],[1488931200000, 19.110142],[1489017600000, 19.110142],[1489104000000, 18.945214],[1489190400000, 18.904891],[1489276800000, 18.904891],[1489363200000, 18.904891],[1489449600000, 19.025859],[1489536000000, 19.018523],[1489622400000, 19.033899],[1489708800000, 19.246875],[1489795200000, 19.191283],[1489881600000, 19.191283],[1489968000000, 19.191283],[1490054400000, 19.234752],[1490140800000, 19.223565],[1490227200000, 19.256249],[1490313600000, 19.345369],[1490400000000, 19.375966],[1490486400000, 19.375966],[1490572800000, 19.375966],[1490659200000, 19.517788],[1490745600000, 19.455857],[1490832000000, 19.367391],[1490918400000, 19.339116]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });