$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1356998400000,12.2846],[1357084800000,12.2846],[1357171200000,12.2846],[1357257600000,12.2579],[1357344000000,12.1885],[1357430400000,12.1885],[1357516800000,12.1885],[1357603200000,12.1885],[1357689600000,12.2459],[1357776000000,12.2158],[1357862400000,12.2282],[1357948800000,12.2751],[1358035200000,12.2751],[1358121600000,12.2751],[1358208000000,12.3024],[1358294400000,12.3062],[1358380800000,12.2949],[1358467200000,12.2981],[1358553600000,12.2815],[1358640000000,12.2815],[1358726400000,12.2815],[1358812800000,12.2815],[1358899200000,12.2856],[1358985600000,12.2855],[1359072000000,12.2638],[1359158400000,12.2784],[1359244800000,12.2784],[1359331200000,12.2784],[1359417600000,12.2778],[1359504000000,12.2814],[1359590400000,12.3144]], 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: [[1356998400000, 12.284601],[1356998400000, 12.284601],[1357084800000, 12.284601],[1357171200000, 12.284601],[1357257600000, 12.257924],[1357344000000, 12.188483],[1357430400000, 12.188483],[1357516800000, 12.188483],[1357603200000, 12.188483],[1357689600000, 12.245942],[1357776000000, 12.215847],[1357862400000, 12.228182],[1357948800000, 12.275055],[1358035200000, 12.275055],[1358121600000, 12.275055],[1358208000000, 12.302431],[1358294400000, 12.306200],[1358380800000, 12.294899],[1358467200000, 12.298115],[1358553600000, 12.281505],[1358640000000, 12.281505],[1358726400000, 12.281505],[1358812800000, 12.281505],[1358899200000, 12.285564],[1358985600000, 12.285526],[1359072000000, 12.263811],[1359158400000, 12.278449],[1359244800000, 12.278449],[1359331200000, 12.278449],[1359417600000, 12.277845],[1359504000000, 12.281430],[1359590400000, 12.314391]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });