$(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: [[1367366400000,6.47845],[1367452800000,6.47845],[1367539200000,6.47845],[1367625600000,6.47845],[1367712000000,6.47845],[1367798400000,6.47845],[1367884800000,6.47845],[1367971200000,6.48414],[1368057600000,6.50564],[1368144000000,6.50564],[1368230400000,6.50564],[1368316800000,6.50564],[1368403200000,6.50564],[1368489600000,6.44457],[1368576000000,6.43936],[1368662400000,6.40835],[1368748800000,6.37955],[1368835200000,6.36679],[1368921600000,6.36679],[1369008000000,6.36679],[1369094400000,6.36834],[1369180800000,6.3445],[1369267200000,6.33159],[1369353600000,6.31948],[1369440000000,6.3216],[1369526400000,6.3216],[1369612800000,6.3216],[1369699200000,6.3476],[1369785600000,6.32111],[1369872000000,6.31098],[1369958400000,6.31016]], 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: [[1367366400000, 6.478453],[1367366400000, 6.478453],[1367452800000, 6.478453],[1367539200000, 6.478453],[1367625600000, 6.478453],[1367712000000, 6.478453],[1367798400000, 6.478453],[1367884800000, 6.478453],[1367971200000, 6.484140],[1368057600000, 6.505642],[1368144000000, 6.505642],[1368230400000, 6.505642],[1368316800000, 6.505642],[1368403200000, 6.505642],[1368489600000, 6.444574],[1368576000000, 6.439357],[1368662400000, 6.408349],[1368748800000, 6.379552],[1368835200000, 6.366794],[1368921600000, 6.366794],[1369008000000, 6.366794],[1369094400000, 6.368338],[1369180800000, 6.344496],[1369267200000, 6.331589],[1369353600000, 6.319476],[1369440000000, 6.321603],[1369526400000, 6.321603],[1369612800000, 6.321603],[1369699200000, 6.347599],[1369785600000, 6.321115],[1369872000000, 6.310981],[1369958400000, 6.310161]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });