$(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: [[1335830400000,15.1106],[1335916800000,15.1106],[1336003200000,15.1106],[1336089600000,15.0024],[1336176000000,15.0105],[1336262400000,15.0105],[1336348800000,15.0105],[1336435200000,14.8844],[1336521600000,14.897],[1336608000000,14.897],[1336694400000,14.8322],[1336780800000,14.8212],[1336867200000,14.8212],[1336953600000,14.8212],[1337040000000,14.7348],[1337126400000,14.7204],[1337212800000,14.5895],[1337299200000,14.5272],[1337385600000,14.5791],[1337472000000,14.5791],[1337558400000,14.5791],[1337644800000,14.6018],[1337731200000,14.6264],[1337817600000,14.4974],[1337904000000,14.3888],[1337990400000,14.3597],[1338076800000,14.3597],[1338163200000,14.3597],[1338249600000,14.3888],[1338336000000,14.3334],[1338422400000,14.2381]], 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: [[1335830400000, 15.110563],[1335830400000, 15.110563],[1335916800000, 15.110563],[1336003200000, 15.110563],[1336089600000, 15.002355],[1336176000000, 15.010496],[1336262400000, 15.010496],[1336348800000, 15.010496],[1336435200000, 14.884450],[1336521600000, 14.896982],[1336608000000, 14.896982],[1336694400000, 14.832196],[1336780800000, 14.821232],[1336867200000, 14.821232],[1336953600000, 14.821232],[1337040000000, 14.734820],[1337126400000, 14.720351],[1337212800000, 14.589538],[1337299200000, 14.527216],[1337385600000, 14.579072],[1337472000000, 14.579072],[1337558400000, 14.579072],[1337644800000, 14.601838],[1337731200000, 14.626378],[1337817600000, 14.497357],[1337904000000, 14.388792],[1337990400000, 14.359717],[1338076800000, 14.359717],[1338163200000, 14.359717],[1338249600000, 14.388790],[1338336000000, 14.333392],[1338422400000, 14.238143]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });