$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1262736000000,7.76248],[1262822400000,7.7302],[1262908800000,7.7302],[1262995200000,7.7302],[1263081600000,7.7302],[1263168000000,7.7302],[1263254400000,7.86757],[1263340800000,7.85626],[1263427200000,7.88222],[1263513600000,7.8305],[1263600000000,7.79407],[1263686400000,7.79407],[1263772800000,7.79407],[1263859200000,7.79717],[1263945600000,7.74462],[1264032000000,7.66333],[1264118400000,7.65147],[1264204800000,7.69641],[1264291200000,7.69641],[1264377600000,7.69641],[1264464000000,7.69427],[1264550400000,7.65792],[1264636800000,7.6496],[1264723200000,7.60671],[1264809600000,7.61929],[1264896000000,7.61929]], 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, 7.762478],[1262736000000, 7.762478],[1262822400000, 7.730200],[1262908800000, 7.730200],[1262995200000, 7.730200],[1263081600000, 7.730200],[1263168000000, 7.730200],[1263254400000, 7.867569],[1263340800000, 7.856259],[1263427200000, 7.882219],[1263513600000, 7.830503],[1263600000000, 7.794067],[1263686400000, 7.794067],[1263772800000, 7.794067],[1263859200000, 7.797168],[1263945600000, 7.744616],[1264032000000, 7.663329],[1264118400000, 7.651473],[1264204800000, 7.696406],[1264291200000, 7.696406],[1264377600000, 7.696406],[1264464000000, 7.694270],[1264550400000, 7.657924],[1264636800000, 7.649601],[1264723200000, 7.606710],[1264809600000, 7.619290],[1264896000000, 7.619290]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });