$(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: [[1338508800000,0.24281],[1338595200000,0.2369],[1338681600000,0.2369],[1338768000000,0.2369],[1338854400000,0.2369],[1338940800000,0.24074],[1339027200000,0.24376],[1339113600000,0.24827],[1339200000000,0.24415],[1339286400000,0.24415],[1339372800000,0.24415],[1339459200000,0.24527],[1339545600000,0.24527],[1339632000000,0.24074],[1339718400000,0.24534],[1339804800000,0.24672],[1339891200000,0.24672],[1339977600000,0.24672],[1340064000000,0.24874],[1340150400000,0.24568],[1340236800000,0.2458],[1340323200000,0.24289],[1340409600000,0.23845],[1340496000000,0.23845],[1340582400000,0.23845],[1340668800000,0.24096],[1340755200000,0.24093],[1340841600000,0.24339],[1340928000000,0.24339],[1341014400000,0.24339]], 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: [[1338508800000, 0.242810],[1338508800000, 0.242810],[1338595200000, 0.236900],[1338681600000, 0.236900],[1338768000000, 0.236900],[1338854400000, 0.236900],[1338940800000, 0.240740],[1339027200000, 0.243760],[1339113600000, 0.248270],[1339200000000, 0.244150],[1339286400000, 0.244150],[1339372800000, 0.244150],[1339459200000, 0.245270],[1339545600000, 0.245270],[1339632000000, 0.240740],[1339718400000, 0.245340],[1339804800000, 0.246720],[1339891200000, 0.246720],[1339977600000, 0.246720],[1340064000000, 0.248740],[1340150400000, 0.245680],[1340236800000, 0.245800],[1340323200000, 0.242890],[1340409600000, 0.238450],[1340496000000, 0.238450],[1340582400000, 0.238450],[1340668800000, 0.240960],[1340755200000, 0.240930],[1340841600000, 0.243390],[1340928000000, 0.243390],[1341014400000, 0.243390]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });