$(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: [[1391212800000,6.25266],[1391299200000,6.25266],[1391385600000,6.25266],[1391472000000,6.26827],[1391558400000,6.29999],[1391644800000,6.30199],[1391731200000,6.86617],[1391817600000,6.72135],[1391904000000,6.72135],[1391990400000,6.72135],[1392076800000,6.73568],[1392163200000,6.7478],[1392249600000,6.75309],[1392336000000,6.80784],[1392422400000,6.85033],[1392508800000,6.85033],[1392595200000,6.85033],[1392681600000,6.8704],[1392768000000,6.88882],[1392854400000,6.96582],[1392940800000,6.98096],[1393027200000,7.05071],[1393113600000,7.05071],[1393200000000,7.05071],[1393286400000,7.12874],[1393372800000,7.45373],[1393459200000,7.52333],[1393545600000,7.8883]], 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: [[1391212800000, 6.252656],[1391212800000, 6.252656],[1391299200000, 6.252656],[1391385600000, 6.252656],[1391472000000, 6.268273],[1391558400000, 6.299986],[1391644800000, 6.301985],[1391731200000, 6.866168],[1391817600000, 6.721349],[1391904000000, 6.721349],[1391990400000, 6.721349],[1392076800000, 6.735682],[1392163200000, 6.747800],[1392249600000, 6.753093],[1392336000000, 6.807842],[1392422400000, 6.850329],[1392508800000, 6.850329],[1392595200000, 6.850329],[1392681600000, 6.870399],[1392768000000, 6.888815],[1392854400000, 6.965825],[1392940800000, 6.980961],[1393027200000, 7.050712],[1393113600000, 7.050712],[1393200000000, 7.050712],[1393286400000, 7.128743],[1393372800000, 7.453727],[1393459200000, 7.523334],[1393545600000, 7.888299]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });