$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1370044800000,12.1779],[1370131200000,12.1779],[1370217600000,12.1779],[1370304000000,12.2063],[1370390400000,12.2277],[1370476800000,12.2724],[1370563200000,12.3486],[1370649600000,12.45],[1370736000000,12.45],[1370822400000,12.45],[1370908800000,12.4153],[1370995200000,12.4243],[1371081600000,12.5108],[1371168000000,12.5282],[1371254400000,12.4875],[1371340800000,12.4875],[1371427200000,12.4875],[1371513600000,12.5777],[1371600000000,12.4852],[1371686400000,12.5209],[1371772800000,12.3473],[1371859200000,12.3459],[1371945600000,12.3459],[1372032000000,12.3459],[1372118400000,12.3459],[1372204800000,12.371],[1372291200000,12.2731],[1372377600000,12.2101],[1372464000000,12.2101],[1372550400000,12.2101]], 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: [[1370044800000, 12.177937],[1370044800000, 12.177937],[1370131200000, 12.177937],[1370217600000, 12.177937],[1370304000000, 12.206263],[1370390400000, 12.227665],[1370476800000, 12.272432],[1370563200000, 12.348625],[1370649600000, 12.450039],[1370736000000, 12.450039],[1370822400000, 12.450039],[1370908800000, 12.415280],[1370995200000, 12.424299],[1371081600000, 12.510824],[1371168000000, 12.528169],[1371254400000, 12.487478],[1371340800000, 12.487478],[1371427200000, 12.487478],[1371513600000, 12.577741],[1371600000000, 12.485212],[1371686400000, 12.520935],[1371772800000, 12.347291],[1371859200000, 12.345921],[1371945600000, 12.345921],[1372032000000, 12.345921],[1372118400000, 12.345921],[1372204800000, 12.370971],[1372291200000, 12.273147],[1372377600000, 12.210148],[1372464000000, 12.210148],[1372550400000, 12.210148]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });