$(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: [[1107216000000,3.24054],[1107302400000,3.23352],[1107388800000,3.24128],[1107475200000,3.23761],[1107561600000,3.24302],[1107648000000,3.24302],[1107734400000,3.24302],[1107820800000,3.23434],[1107907200000,3.21441],[1107993600000,3.21327],[1108080000000,3.19844],[1108166400000,3.20598],[1108252800000,3.20598],[1108339200000,3.20598],[1108425600000,3.22829],[1108512000000,3.23213],[1108598400000,3.23246],[1108684800000,3.22592],[1108771200000,3.23493],[1108857600000,3.23493],[1108944000000,3.23493],[1109030400000,3.23587],[1109116800000,3.25561],[1109203200000,3.25823],[1109289600000,3.25511],[1109376000000,3.2417],[1109462400000,3.2417],[1109548800000,3.2417]], 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: [[1107216000000, 3.240542],[1107216000000, 3.240542],[1107302400000, 3.233520],[1107388800000, 3.241285],[1107475200000, 3.237608],[1107561600000, 3.243018],[1107648000000, 3.243018],[1107734400000, 3.243018],[1107820800000, 3.234340],[1107907200000, 3.214410],[1107993600000, 3.213267],[1108080000000, 3.198444],[1108166400000, 3.205976],[1108252800000, 3.205976],[1108339200000, 3.205976],[1108425600000, 3.228287],[1108512000000, 3.232135],[1108598400000, 3.232458],[1108684800000, 3.225916],[1108771200000, 3.234934],[1108857600000, 3.234934],[1108944000000, 3.234934],[1109030400000, 3.235874],[1109116800000, 3.255613],[1109203200000, 3.258232],[1109289600000, 3.255107],[1109376000000, 3.241698],[1109462400000, 3.241698],[1109548800000, 3.241698]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });