$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1175385600000,4.37693],[1175472000000,4.37693],[1175558400000,4.36628],[1175644800000,4.36141],[1175731200000,4.36679],[1175817600000,4.38246],[1175904000000,4.38246],[1175990400000,4.38246],[1176076800000,4.38246],[1176163200000,4.38246],[1176249600000,4.39583],[1176336000000,4.41497],[1176422400000,4.43687],[1176508800000,4.45161],[1176595200000,4.45161],[1176681600000,4.45161],[1176768000000,4.45724],[1176854400000,4.46243],[1176940800000,4.45625],[1177027200000,4.4857],[1177113600000,4.48091],[1177200000000,4.48091],[1177286400000,4.48091],[1177372800000,4.49674],[1177459200000,4.50562],[1177545600000,4.50565],[1177632000000,4.50642],[1177718400000,4.52229],[1177804800000,4.52229],[1177891200000,4.52229]], 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: [[1175385600000, 4.376930],[1175385600000, 4.376930],[1175472000000, 4.376930],[1175558400000, 4.366279],[1175644800000, 4.361408],[1175731200000, 4.366790],[1175817600000, 4.382456],[1175904000000, 4.382456],[1175990400000, 4.382456],[1176076800000, 4.382456],[1176163200000, 4.382456],[1176249600000, 4.395831],[1176336000000, 4.414966],[1176422400000, 4.436870],[1176508800000, 4.451606],[1176595200000, 4.451606],[1176681600000, 4.451606],[1176768000000, 4.457237],[1176854400000, 4.462431],[1176940800000, 4.456249],[1177027200000, 4.485701],[1177113600000, 4.480912],[1177200000000, 4.480912],[1177286400000, 4.480912],[1177372800000, 4.496739],[1177459200000, 4.505623],[1177545600000, 4.505651],[1177632000000, 4.506419],[1177718400000, 4.522294],[1177804800000, 4.522294],[1177891200000, 4.522294]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });