$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1175385600000,7.62644],[1175472000000,7.62644],[1175558400000,7.64609],[1175644800000,7.6425],[1175731200000,7.63719],[1175817600000,7.63934],[1175904000000,7.63934],[1175990400000,7.63934],[1176076800000,7.63934],[1176163200000,7.63934],[1176249600000,7.64872],[1176336000000,7.65154],[1176422400000,7.65729],[1176508800000,7.6863],[1176595200000,7.6863],[1176681600000,7.6863],[1176768000000,7.68452],[1176854400000,7.6863],[1176940800000,7.70866],[1177027200000,7.70599],[1177113600000,7.70517],[1177200000000,7.70517],[1177286400000,7.70517],[1177372800000,7.69373],[1177459200000,7.69682],[1177545600000,7.71537],[1177632000000,7.70088],[1177718400000,7.70496],[1177804800000,7.70496],[1177891200000,7.70496]], 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, 7.626440],[1175385600000, 7.626440],[1175472000000, 7.626440],[1175558400000, 7.646093],[1175644800000, 7.642495],[1175731200000, 7.637190],[1175817600000, 7.639339],[1175904000000, 7.639339],[1175990400000, 7.639339],[1176076800000, 7.639339],[1176163200000, 7.639339],[1176249600000, 7.648722],[1176336000000, 7.651538],[1176422400000, 7.657293],[1176508800000, 7.686301],[1176595200000, 7.686301],[1176681600000, 7.686301],[1176768000000, 7.684524],[1176854400000, 7.686301],[1176940800000, 7.708664],[1177027200000, 7.705994],[1177113600000, 7.705171],[1177200000000, 7.705171],[1177286400000, 7.705171],[1177372800000, 7.693726],[1177459200000, 7.696821],[1177545600000, 7.715366],[1177632000000, 7.700882],[1177718400000, 7.704960],[1177804800000, 7.704960],[1177891200000, 7.704960]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });