$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1354320000000,0.25942],[1354406400000,0.25942],[1354492800000,0.25942],[1354579200000,0.25921],[1354665600000,0.25789],[1354752000000,0.25932],[1354838400000,0.25858],[1354924800000,0.25811],[1355011200000,0.25811],[1355097600000,0.25811],[1355184000000,0.25894],[1355270400000,0.25993],[1355356800000,0.26009],[1355443200000,0.26118],[1355529600000,0.26045],[1355616000000,0.26045],[1355702400000,0.26045],[1355788800000,0.25977],[1355875200000,0.25796],[1355961600000,0.25985],[1356048000000,0.25986],[1356134400000,0.26019],[1356220800000,0.26019],[1356307200000,0.26019],[1356393600000,0.25947],[1356480000000,0.26127],[1356566400000,0.26108],[1356652800000,0.26223],[1356739200000,0.26316],[1356825600000,0.26316],[1356912000000,0.26316]], 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: [[1354320000000, 0.259420],[1354320000000, 0.259420],[1354406400000, 0.259420],[1354492800000, 0.259420],[1354579200000, 0.259210],[1354665600000, 0.257890],[1354752000000, 0.259320],[1354838400000, 0.258580],[1354924800000, 0.258110],[1355011200000, 0.258110],[1355097600000, 0.258110],[1355184000000, 0.258940],[1355270400000, 0.259930],[1355356800000, 0.260090],[1355443200000, 0.261180],[1355529600000, 0.260450],[1355616000000, 0.260450],[1355702400000, 0.260450],[1355788800000, 0.259770],[1355875200000, 0.257960],[1355961600000, 0.259850],[1356048000000, 0.259860],[1356134400000, 0.260190],[1356220800000, 0.260190],[1356307200000, 0.260190],[1356393600000, 0.259470],[1356480000000, 0.261270],[1356566400000, 0.261080],[1356652800000, 0.262230],[1356739200000, 0.263160],[1356825600000, 0.263160],[1356912000000, 0.263160]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });