$(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: [[1343779200000,0.24819],[1343865600000,0.24721],[1343952000000,0.24627],[1344038400000,0.24567],[1344124800000,0.24567],[1344211200000,0.24567],[1344297600000,0.25021],[1344384000000,0.25243],[1344470400000,0.25222],[1344556800000,0.2539],[1344643200000,0.25058],[1344729600000,0.25058],[1344816000000,0.25058],[1344902400000,0.25079],[1344988800000,0.25156],[1345075200000,0.25093],[1345161600000,0.25056],[1345248000000,0.25098],[1345334400000,0.25098],[1345420800000,0.25098],[1345507200000,0.24965],[1345593600000,0.25009],[1345680000000,0.25131],[1345766400000,0.25228],[1345852800000,0.25228],[1345939200000,0.25228],[1346025600000,0.25228],[1346112000000,0.2508],[1346198400000,0.24964],[1346284800000,0.24905],[1346371200000,0.24751]], 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: [[1343779200000, 0.248190],[1343779200000, 0.248190],[1343865600000, 0.247210],[1343952000000, 0.246270],[1344038400000, 0.245670],[1344124800000, 0.245670],[1344211200000, 0.245670],[1344297600000, 0.250210],[1344384000000, 0.252430],[1344470400000, 0.252220],[1344556800000, 0.253900],[1344643200000, 0.250580],[1344729600000, 0.250580],[1344816000000, 0.250580],[1344902400000, 0.250790],[1344988800000, 0.251560],[1345075200000, 0.250930],[1345161600000, 0.250560],[1345248000000, 0.250980],[1345334400000, 0.250980],[1345420800000, 0.250980],[1345507200000, 0.249650],[1345593600000, 0.250090],[1345680000000, 0.251310],[1345766400000, 0.252280],[1345852800000, 0.252280],[1345939200000, 0.252280],[1346025600000, 0.252280],[1346112000000, 0.250800],[1346198400000, 0.249640],[1346284800000, 0.249050],[1346371200000, 0.247510]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });