$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1262736000000,16.2559],[1262822400000,16.1501],[1262908800000,16.1501],[1262995200000,16.1501],[1263081600000,16.1501],[1263168000000,16.1501],[1263254400000,16.3663],[1263340800000,16.3295],[1263427200000,16.4404],[1263513600000,16.3571],[1263600000000,16.2328],[1263686400000,16.2328],[1263772800000,16.2328],[1263859200000,16.2271],[1263945600000,16.1342],[1264032000000,15.9681],[1264118400000,15.8934],[1264204800000,15.984],[1264291200000,15.984],[1264377600000,15.984],[1264464000000,15.999],[1264550400000,15.9203],[1264636800000,15.9076],[1264723200000,15.8138],[1264809600000,15.7632],[1264896000000,15.7632]], 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: [[1262736000000, 16.255902],[1262736000000, 16.255902],[1262822400000, 16.150070],[1262908800000, 16.150070],[1262995200000, 16.150070],[1263081600000, 16.150070],[1263168000000, 16.150070],[1263254400000, 16.366274],[1263340800000, 16.329456],[1263427200000, 16.440374],[1263513600000, 16.357100],[1263600000000, 16.232780],[1263686400000, 16.232780],[1263772800000, 16.232780],[1263859200000, 16.227134],[1263945600000, 16.134162],[1264032000000, 15.968063],[1264118400000, 15.893431],[1264204800000, 15.984006],[1264291200000, 15.984006],[1264377600000, 15.984006],[1264464000000, 15.999041],[1264550400000, 15.920306],[1264636800000, 15.907582],[1264723200000, 15.813751],[1264809600000, 15.763233],[1264896000000, 15.763233]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });