$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1285891200000,2.70926],[1285977600000,2.75772],[1286064000000,2.75772],[1286150400000,2.75772],[1286236800000,2.74562],[1286323200000,2.745],[1286409600000,2.77537],[1286496000000,2.78657],[1286582400000,2.75976],[1286668800000,2.75976],[1286755200000,2.75976],[1286841600000,2.78329],[1286928000000,2.76028],[1287014400000,2.79192],[1287100800000,2.8539],[1287187200000,2.85352],[1287273600000,2.85352],[1287360000000,2.85352],[1287446400000,2.80272],[1287532800000,2.78553],[1287619200000,2.76975],[1287705600000,2.80618],[1287792000000,2.77683],[1287878400000,2.77683],[1287964800000,2.77683],[1288051200000,2.82347],[1288137600000,2.79697],[1288224000000,2.76458],[1288310400000,2.76525],[1288396800000,2.75296],[1288483200000,2.75296]], 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: [[1285891200000, 2.709255],[1285891200000, 2.709255],[1285977600000, 2.757716],[1286064000000, 2.757716],[1286150400000, 2.757716],[1286236800000, 2.745617],[1286323200000, 2.744999],[1286409600000, 2.775375],[1286496000000, 2.786567],[1286582400000, 2.759762],[1286668800000, 2.759762],[1286755200000, 2.759762],[1286841600000, 2.783294],[1286928000000, 2.760284],[1287014400000, 2.791918],[1287100800000, 2.853904],[1287187200000, 2.853519],[1287273600000, 2.853519],[1287360000000, 2.853519],[1287446400000, 2.802723],[1287532800000, 2.785531],[1287619200000, 2.769749],[1287705600000, 2.806179],[1287792000000, 2.776832],[1287878400000, 2.776832],[1287964800000, 2.776832],[1288051200000, 2.823473],[1288137600000, 2.796965],[1288224000000, 2.764584],[1288310400000, 2.765248],[1288396800000, 2.752956],[1288483200000, 2.752956]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });