$(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: [[1262736000000,0.26453],[1262822400000,0.26453],[1262908800000,0.26453],[1262995200000,0.26453],[1263081600000,0.26453],[1263168000000,0.26453],[1263254400000,0.27152],[1263340800000,0.27226],[1263427200000,0.27003],[1263513600000,0.27191],[1263600000000,0.27067],[1263686400000,0.27067],[1263772800000,0.27067],[1263859200000,0.27034],[1263945600000,0.2712],[1264032000000,0.2696],[1264118400000,0.26926],[1264204800000,0.26923],[1264291200000,0.26923],[1264377600000,0.26923],[1264464000000,0.26609],[1264550400000,0.26407],[1264636800000,0.26417],[1264723200000,0.26352],[1264809600000,0.26286],[1264896000000,0.26286]], 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, 0.264530],[1262736000000, 0.264530],[1262822400000, 0.264530],[1262908800000, 0.264530],[1262995200000, 0.264530],[1263081600000, 0.264530],[1263168000000, 0.264530],[1263254400000, 0.271520],[1263340800000, 0.272260],[1263427200000, 0.270030],[1263513600000, 0.271910],[1263600000000, 0.270670],[1263686400000, 0.270670],[1263772800000, 0.270670],[1263859200000, 0.270340],[1263945600000, 0.271200],[1264032000000, 0.269600],[1264118400000, 0.269260],[1264204800000, 0.269230],[1264291200000, 0.269230],[1264377600000, 0.269230],[1264464000000, 0.266090],[1264550400000, 0.264070],[1264636800000, 0.264170],[1264723200000, 0.263520],[1264809600000, 0.262860],[1264896000000, 0.262860]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });