$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1318032000000,10.7105],[1318118400000,10.7105],[1318204800000,10.7105],[1318291200000,10.8373],[1318377600000,10.8485],[1318464000000,10.9766],[1318550400000,10.9482],[1318636800000,11.012],[1318723200000,11.012],[1318809600000,11.012],[1318896000000,10.9873],[1318982400000,10.9076],[1319068800000,11.0288],[1319155200000,11.012],[1319241600000,11.0049],[1319328000000,11.0049],[1319414400000,11.0049],[1319500800000,11.0511],[1319587200000,11.1013],[1319673600000,11.1085],[1319760000000,11.1981]], 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: [[1318032000000, 10.710525],[1318032000000, 10.710525],[1318118400000, 10.710525],[1318204800000, 10.710525],[1318291200000, 10.837291],[1318377600000, 10.848453],[1318464000000, 10.976595],[1318550400000, 10.948243],[1318636800000, 11.012049],[1318723200000, 11.012049],[1318809600000, 11.012049],[1318896000000, 10.987324],[1318982400000, 10.907567],[1319068800000, 11.028798],[1319155200000, 11.012049],[1319241600000, 11.004871],[1319328000000, 11.004871],[1319414400000, 11.004871],[1319500800000, 11.051130],[1319587200000, 11.101275],[1319673600000, 11.108454],[1319760000000, 11.198113]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });