$(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: [[1246406400000,5.28305],[1246492800000,5.28056],[1246579200000,5.26632],[1246665600000,5.2573],[1246752000000,5.2573],[1246838400000,5.2573],[1246924800000,5.23766],[1247011200000,5.23825],[1247097600000,5.21518],[1247184000000,5.22527],[1247270400000,5.21306],[1247356800000,5.21306],[1247443200000,5.21306],[1247529600000,5.20192],[1247616000000,5.22941],[1247702400000,5.25487],[1247788800000,5.2661],[1247875200000,5.27496],[1247961600000,5.27496],[1248048000000,5.27496],[1248134400000,5.31668],[1248220800000,5.31716],[1248307200000,5.30998],[1248393600000,5.31783],[1248480000000,5.32365],[1248566400000,5.32365],[1248652800000,5.32365],[1248739200000,5.34193],[1248825600000,5.33846],[1248912000000,5.33586],[1248998400000,5.33011]], 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: [[1246406400000, 5.283050],[1246406400000, 5.283050],[1246492800000, 5.280557],[1246579200000, 5.266324],[1246665600000, 5.257299],[1246752000000, 5.257299],[1246838400000, 5.257299],[1246924800000, 5.237657],[1247011200000, 5.238245],[1247097600000, 5.215184],[1247184000000, 5.225273],[1247270400000, 5.213063],[1247356800000, 5.213063],[1247443200000, 5.213063],[1247529600000, 5.201923],[1247616000000, 5.229414],[1247702400000, 5.254866],[1247788800000, 5.266098],[1247875200000, 5.274960],[1247961600000, 5.274960],[1248048000000, 5.274960],[1248134400000, 5.316682],[1248220800000, 5.317157],[1248307200000, 5.309984],[1248393600000, 5.317832],[1248480000000, 5.323649],[1248566400000, 5.323649],[1248652800000, 5.323649],[1248739200000, 5.341933],[1248825600000, 5.338461],[1248912000000, 5.335862],[1248998400000, 5.330114]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });