$(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: [[1112313600000,3.2024],[1112400000000,3.19042],[1112486400000,3.19042],[1112572800000,3.19042],[1112659200000,3.17025],[1112745600000,3.17106],[1112832000000,3.17319],[1112918400000,3.18781],[1113004800000,3.17344],[1113091200000,3.17344],[1113177600000,3.17344],[1113264000000,3.19455],[1113350400000,3.19738],[1113436800000,3.20144],[1113523200000,3.17614],[1113609600000,3.1567],[1113696000000,3.1567],[1113782400000,3.1567],[1113868800000,3.15267],[1113955200000,3.14127],[1114041600000,3.06386],[1114128000000,3.05801],[1114214400000,3.06587],[1114300800000,3.06587],[1114387200000,3.06587],[1114473600000,3.06791],[1114560000000,3.06556],[1114646400000,3.06463],[1114732800000,3.06684],[1114819200000,3.08777]], 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: [[1112313600000, 3.202400],[1112313600000, 3.202400],[1112400000000, 3.190419],[1112486400000, 3.190419],[1112572800000, 3.190419],[1112659200000, 3.170253],[1112745600000, 3.171059],[1112832000000, 3.173192],[1112918400000, 3.187810],[1113004800000, 3.173437],[1113091200000, 3.173437],[1113177600000, 3.173437],[1113264000000, 3.194550],[1113350400000, 3.197377],[1113436800000, 3.201440],[1113523200000, 3.176145],[1113609600000, 3.156700],[1113696000000, 3.156700],[1113782400000, 3.156700],[1113868800000, 3.152666],[1113955200000, 3.141265],[1114041600000, 3.063858],[1114128000000, 3.058009],[1114214400000, 3.065870],[1114300800000, 3.065870],[1114387200000, 3.065870],[1114473600000, 3.067905],[1114560000000, 3.065565],[1114646400000, 3.064631],[1114732800000, 3.066835],[1114819200000, 3.087766]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });