$(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: [[1335830400000,0.27211],[1335916800000,0.27211],[1336003200000,0.27211],[1336089600000,0.27118],[1336176000000,0.26999],[1336262400000,0.26999],[1336348800000,0.26999],[1336435200000,0.26801],[1336521600000,0.26802],[1336608000000,0.26802],[1336694400000,0.26467],[1336780800000,0.2643],[1336867200000,0.2643],[1336953600000,0.2643],[1337040000000,0.264],[1337126400000,0.26344],[1337212800000,0.25794],[1337299200000,0.25826],[1337385600000,0.25457],[1337472000000,0.25457],[1337558400000,0.25457],[1337644800000,0.25648],[1337731200000,0.25729],[1337817600000,0.2547],[1337904000000,0.25273],[1337990400000,0.25168],[1338076800000,0.25168],[1338163200000,0.25168],[1338249600000,0.25112],[1338336000000,0.2491],[1338422400000,0.2463]], 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, 0.272110],[1335830400000, 0.272110],[1335916800000, 0.272110],[1336003200000, 0.272110],[1336089600000, 0.271180],[1336176000000, 0.269990],[1336262400000, 0.269990],[1336348800000, 0.269990],[1336435200000, 0.268010],[1336521600000, 0.268020],[1336608000000, 0.268020],[1336694400000, 0.264670],[1336780800000, 0.264300],[1336867200000, 0.264300],[1336953600000, 0.264300],[1337040000000, 0.264000],[1337126400000, 0.263440],[1337212800000, 0.257940],[1337299200000, 0.258260],[1337385600000, 0.254570],[1337472000000, 0.254570],[1337558400000, 0.254570],[1337644800000, 0.256480],[1337731200000, 0.257290],[1337817600000, 0.254700],[1337904000000, 0.252730],[1337990400000, 0.251680],[1338076800000, 0.251680],[1338163200000, 0.251680],[1338249600000, 0.251120],[1338336000000, 0.249100],[1338422400000, 0.246300]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });