$(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: [[1262736000000,12.5169],[1262822400000,12.4858],[1262908800000,12.4858],[1262995200000,12.4858],[1263081600000,12.4858],[1263168000000,12.4858],[1263254400000,12.569],[1263340800000,12.5742],[1263427200000,12.6222],[1263513600000,12.5922],[1263600000000,12.5721],[1263686400000,12.5721],[1263772800000,12.5721],[1263859200000,12.5721],[1263945600000,12.555],[1264032000000,12.5002],[1264118400000,12.4556],[1264204800000,12.5006],[1264291200000,12.5006],[1264377600000,12.5006],[1264464000000,12.5146],[1264550400000,12.4878],[1264636800000,12.4928],[1264723200000,12.4545],[1264809600000,12.432],[1264896000000,12.432]], 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: [[1262736000000, 12.516851],[1262736000000, 12.516851],[1262822400000, 12.485751],[1262908800000, 12.485751],[1262995200000, 12.485751],[1263081600000, 12.485751],[1263168000000, 12.485751],[1263254400000, 12.569015],[1263340800000, 12.574163],[1263427200000, 12.622197],[1263513600000, 12.592151],[1263600000000, 12.572102],[1263686400000, 12.572102],[1263772800000, 12.572102],[1263859200000, 12.572102],[1263945600000, 12.555028],[1264032000000, 12.500176],[1264118400000, 12.455605],[1264204800000, 12.500585],[1264291200000, 12.500585],[1264377600000, 12.500585],[1264464000000, 12.514631],[1264550400000, 12.487754],[1264636800000, 12.492760],[1264723200000, 12.454490],[1264809600000, 12.431985],[1264896000000, 12.431985]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });