$(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: [[1346457600000,2.4135],[1346544000000,2.4135],[1346630400000,2.4135],[1346716800000,2.39563],[1346803200000,2.39544],[1346889600000,2.3932],[1346976000000,2.42861],[1347062400000,2.46359],[1347148800000,2.46359],[1347235200000,2.46359],[1347321600000,2.48289],[1347408000000,2.48787],[1347494400000,2.51857],[1347580800000,2.5132],[1347667200000,2.57791],[1347753600000,2.57791],[1347840000000,2.57791],[1347926400000,2.54902],[1348012800000,2.53629],[1348099200000,2.51312],[1348185600000,2.48629],[1348272000000,2.51382],[1348358400000,2.51382],[1348444800000,2.51382],[1348531200000,2.48526],[1348617600000,2.49796],[1348704000000,2.47332],[1348790400000,2.48339],[1348876800000,2.51838],[1348963200000,2.51838]], 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: [[1346457600000, 2.413497],[1346457600000, 2.413497],[1346544000000, 2.413497],[1346630400000, 2.413497],[1346716800000, 2.395632],[1346803200000, 2.395443],[1346889600000, 2.393200],[1346976000000, 2.428608],[1347062400000, 2.463591],[1347148800000, 2.463591],[1347235200000, 2.463591],[1347321600000, 2.482885],[1347408000000, 2.487866],[1347494400000, 2.518575],[1347580800000, 2.513204],[1347667200000, 2.577911],[1347753600000, 2.577911],[1347840000000, 2.577911],[1347926400000, 2.549018],[1348012800000, 2.536295],[1348099200000, 2.513118],[1348185600000, 2.486285],[1348272000000, 2.513817],[1348358400000, 2.513817],[1348444800000, 2.513817],[1348531200000, 2.485257],[1348617600000, 2.497957],[1348704000000, 2.473322],[1348790400000, 2.483393],[1348876800000, 2.518385],[1348963200000, 2.518385]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });