$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1120262400000,0.0247729],[1120348800000,0.0247729],[1120435200000,0.0247729],[1120521600000,0.024327],[1120608000000,0.0242996],[1120694400000,0.024359],[1120780800000,0.0243171],[1120867200000,0.0242816],[1120953600000,0.0242816],[1121040000000,0.0242816],[1121126400000,0.024567],[1121212800000,0.0249722],[1121299200000,0.0249222],[1121385600000,0.0247279],[1121472000000,0.0247422],[1121558400000,0.0247422],[1121644800000,0.0247422],[1121731200000,0.0247213],[1121817600000,0.0245517],[1121904000000,0.0247273],[1121990400000,0.0250629],[1122076800000,0.0249551],[1122163200000,0.0249551],[1122249600000,0.0249551],[1122336000000,0.024816],[1122422400000,0.0245985],[1122508800000,0.0246869],[1122595200000,0.0249327],[1122681600000,0.0249274],[1122768000000,0.0249274]], 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: [[1120262400000, 0.024773],[1120262400000, 0.024773],[1120348800000, 0.024773],[1120435200000, 0.024773],[1120521600000, 0.024327],[1120608000000, 0.024300],[1120694400000, 0.024359],[1120780800000, 0.024317],[1120867200000, 0.024282],[1120953600000, 0.024282],[1121040000000, 0.024282],[1121126400000, 0.024567],[1121212800000, 0.024972],[1121299200000, 0.024922],[1121385600000, 0.024728],[1121472000000, 0.024742],[1121558400000, 0.024742],[1121644800000, 0.024742],[1121731200000, 0.024721],[1121817600000, 0.024552],[1121904000000, 0.024727],[1121990400000, 0.025063],[1122076800000, 0.024955],[1122163200000, 0.024955],[1122249600000, 0.024955],[1122336000000, 0.024816],[1122422400000, 0.024598],[1122508800000, 0.024687],[1122595200000, 0.024933],[1122681600000, 0.024927],[1122768000000, 0.024927]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });