$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1120262400000,5.055],[1120348800000,5.055],[1120435200000,5.055],[1120521600000,5.055],[1120608000000,5.055],[1120694400000,5.055],[1120780800000,5.055],[1120867200000,5.055],[1120953600000,5.055],[1121040000000,5.055],[1121126400000,5.055],[1121212800000,5.055],[1121299200000,5.055],[1121385600000,5.055],[1121472000000,5.055],[1121558400000,5.055],[1121644800000,5.055],[1121731200000,5.055],[1121817600000,5.055],[1121904000000,5.05],[1121990400000,5.05],[1122076800000,5.05],[1122163200000,5.05],[1122249600000,5.05],[1122336000000,5.05],[1122422400000,5.05],[1122508800000,5.05],[1122595200000,5.05],[1122681600000,5.05],[1122768000000,5.05]], 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, 5.055000],[1120262400000, 5.055000],[1120348800000, 5.055000],[1120435200000, 5.055000],[1120521600000, 5.055000],[1120608000000, 5.055000],[1120694400000, 5.055000],[1120780800000, 5.055000],[1120867200000, 5.055000],[1120953600000, 5.055000],[1121040000000, 5.055000],[1121126400000, 5.055000],[1121212800000, 5.055000],[1121299200000, 5.055000],[1121385600000, 5.055000],[1121472000000, 5.055000],[1121558400000, 5.055000],[1121644800000, 5.055000],[1121731200000, 5.055000],[1121817600000, 5.055000],[1121904000000, 5.050000],[1121990400000, 5.050000],[1122076800000, 5.050000],[1122163200000, 5.050000],[1122249600000, 5.050000],[1122336000000, 5.050000],[1122422400000, 5.050000],[1122508800000, 5.050000],[1122595200000, 5.050000],[1122681600000, 5.050000],[1122768000000, 5.050000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });