$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1370044800000,14.8129],[1370131200000,14.8129],[1370217600000,14.8129],[1370304000000,14.8215],[1370390400000,14.9087],[1370476800000,14.8697],[1370563200000,14.932],[1370649600000,15.1],[1370736000000,15.1],[1370822400000,15.1],[1370908800000,15.0441],[1370995200000,15.1127],[1371081600000,15.1194],[1371168000000,15.1627],[1371254400000,15.1533],[1371340800000,15.1533],[1371427200000,15.1533],[1371513600000,15.1921],[1371600000000,15.2364],[1371686400000,15.2728],[1371772800000,15.0424],[1371859200000,15.0154],[1371945600000,15.0154],[1372032000000,15.0154],[1372118400000,15.0154],[1372204800000,14.9566],[1372291200000,14.8228],[1372377600000,14.8362],[1372464000000,14.8362],[1372550400000,14.8362]], 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, 14.812904],[1370044800000, 14.812904],[1370131200000, 14.812904],[1370217600000, 14.812904],[1370304000000, 14.821517],[1370390400000, 14.908727],[1370476800000, 14.869666],[1370563200000, 14.931953],[1370649600000, 15.100040],[1370736000000, 15.100040],[1370822400000, 15.100040],[1370908800000, 15.044106],[1370995200000, 15.112691],[1371081600000, 15.119399],[1371168000000, 15.162672],[1371254400000, 15.153325],[1371340800000, 15.153325],[1371427200000, 15.153325],[1371513600000, 15.192054],[1371600000000, 15.236371],[1371686400000, 15.272828],[1371772800000, 15.042429],[1371859200000, 15.015356],[1371945600000, 15.015356],[1372032000000, 15.015356],[1372118400000, 15.015356],[1372204800000, 14.956555],[1372291200000, 14.822844],[1372377600000, 14.836174],[1372464000000, 14.836174],[1372550400000, 14.836174]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });