$(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: [[1349049600000,7.993],[1349136000000,7.993],[1349222400000,7.993],[1349308800000,7.993],[1349395200000,7.993],[1349481600000,7.993],[1349568000000,7.993],[1349654400000,7.993],[1349740800000,7.993],[1349827200000,7.993],[1349913600000,7.993],[1350000000000,7.993],[1350086400000,7.993],[1350172800000,7.993],[1350259200000,7.993],[1350345600000,7.993],[1350432000000,7.993],[1350518400000,7.993],[1350604800000,7.993],[1350691200000,7.993],[1350777600000,7.993],[1350864000000,7.993],[1350950400000,7.993],[1351036800000,7.993],[1351123200000,7.993],[1351209600000,7.993],[1351296000000,7.993],[1351382400000,7.993],[1351468800000,7.993],[1351555200000,7.993],[1351641600000,7.993]], 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: [[1349049600000, 7.993000],[1349049600000, 7.993000],[1349136000000, 7.993000],[1349222400000, 7.993000],[1349308800000, 7.993000],[1349395200000, 7.993000],[1349481600000, 7.993000],[1349568000000, 7.993000],[1349654400000, 7.993000],[1349740800000, 7.993000],[1349827200000, 7.993000],[1349913600000, 7.993000],[1350000000000, 7.993000],[1350086400000, 7.993000],[1350172800000, 7.993000],[1350259200000, 7.993000],[1350345600000, 7.993000],[1350432000000, 7.993000],[1350518400000, 7.993000],[1350604800000, 7.993000],[1350691200000, 7.993000],[1350777600000, 7.993000],[1350864000000, 7.993000],[1350950400000, 7.993000],[1351036800000, 7.993000],[1351123200000, 7.993000],[1351209600000, 7.993000],[1351296000000, 7.993000],[1351382400000, 7.993000],[1351468800000, 7.993000],[1351555200000, 7.993000],[1351641600000, 7.993000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });