$(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: [[1359676800000,6.45904],[1359763200000,6.44009],[1359849600000,6.44009],[1359936000000,6.44009],[1360022400000,6.45499],[1360108800000,6.45515],[1360195200000,6.45794],[1360281600000,6.45444],[1360368000000,6.45795],[1360454400000,6.45795],[1360540800000,6.45795],[1360627200000,6.44824],[1360713600000,6.42635],[1360800000000,6.45338],[1360886400000,6.45944],[1360972800000,6.46004],[1361059200000,6.46004],[1361145600000,6.46004],[1361232000000,6.45278],[1361318400000,6.45484],[1361404800000,6.46109],[1361491200000,6.44859],[1361577600000,6.45807],[1361664000000,6.45807],[1361750400000,6.45807],[1361836800000,6.4628],[1361923200000,6.44855],[1362009600000,6.45204]], 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: [[1359676800000, 6.459038],[1359676800000, 6.459038],[1359763200000, 6.440090],[1359849600000, 6.440090],[1359936000000, 6.440090],[1360022400000, 6.454987],[1360108800000, 6.455151],[1360195200000, 6.457943],[1360281600000, 6.454437],[1360368000000, 6.457946],[1360454400000, 6.457946],[1360540800000, 6.457946],[1360627200000, 6.448236],[1360713600000, 6.426345],[1360800000000, 6.453380],[1360886400000, 6.459445],[1360972800000, 6.460043],[1361059200000, 6.460043],[1361145600000, 6.460043],[1361232000000, 6.452780],[1361318400000, 6.454843],[1361404800000, 6.461089],[1361491200000, 6.448587],[1361577600000, 6.458070],[1361664000000, 6.458070],[1361750400000, 6.458070],[1361836800000, 6.462798],[1361923200000, 6.448545],[1362009600000, 6.452038]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });