$(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: [[1364774400000,0.25715],[1364860800000,0.25693],[1364947200000,0.25686],[1365033600000,0.25462],[1365120000000,0.25198],[1365206400000,0.25278],[1365292800000,0.25278],[1365379200000,0.25278],[1365465600000,0.25283],[1365552000000,0.25612],[1365638400000,0.25781],[1365724800000,0.25883],[1365811200000,0.25842],[1365897600000,0.25842],[1365984000000,0.25842],[1366070400000,0.25533],[1366156800000,0.25414],[1366243200000,0.25592],[1366329600000,0.25203],[1366416000000,0.25406],[1366502400000,0.25406],[1366588800000,0.25406],[1366675200000,0.25321],[1366761600000,0.25261],[1366848000000,0.25301],[1366934400000,0.25523],[1367020800000,0.25603],[1367107200000,0.25603],[1367193600000,0.25603],[1367280000000,0.25573]], 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: [[1364774400000, 0.257150],[1364774400000, 0.257150],[1364860800000, 0.256930],[1364947200000, 0.256860],[1365033600000, 0.254620],[1365120000000, 0.251980],[1365206400000, 0.252780],[1365292800000, 0.252780],[1365379200000, 0.252780],[1365465600000, 0.252830],[1365552000000, 0.256120],[1365638400000, 0.257810],[1365724800000, 0.258830],[1365811200000, 0.258420],[1365897600000, 0.258420],[1365984000000, 0.258420],[1366070400000, 0.255330],[1366156800000, 0.254140],[1366243200000, 0.255920],[1366329600000, 0.252030],[1366416000000, 0.254060],[1366502400000, 0.254060],[1366588800000, 0.254060],[1366675200000, 0.253210],[1366761600000, 0.252610],[1366848000000, 0.253010],[1366934400000, 0.255230],[1367020800000, 0.256030],[1367107200000, 0.256030],[1367193600000, 0.256030],[1367280000000, 0.255730]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });