$(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: 'Курс TRY, грн'}, 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: 'Курс TRY', data: [[1346457600000,4.3977],[1346544000000,4.3977],[1346630400000,4.3977],[1346716800000,4.39094],[1346803200000,4.39421],[1346889600000,4.38926],[1346976000000,4.40136],[1347062400000,4.43141],[1347148800000,4.43141],[1347235200000,4.43141],[1347321600000,4.43512],[1347408000000,4.43124],[1347494400000,4.42698],[1347580800000,4.41245],[1347667200000,4.45378],[1347753600000,4.45378],[1347840000000,4.45378],[1347926400000,4.44297],[1348012800000,4.44267],[1348099200000,4.4559],[1348185600000,4.43717],[1348272000000,4.45282],[1348358400000,4.45282],[1348444800000,4.45282],[1348531200000,4.43861],[1348617600000,4.45656],[1348704000000,4.45365],[1348790400000,4.46662],[1348876800000,4.45414],[1348963200000,4.45414]], 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, 4.397702],[1346457600000, 4.397702],[1346544000000, 4.397702],[1346630400000, 4.397702],[1346716800000, 4.390944],[1346803200000, 4.394211],[1346889600000, 4.389258],[1346976000000, 4.401357],[1347062400000, 4.431410],[1347148800000, 4.431410],[1347235200000, 4.431410],[1347321600000, 4.435117],[1347408000000, 4.431237],[1347494400000, 4.426977],[1347580800000, 4.412453],[1347667200000, 4.453782],[1347753600000, 4.453782],[1347840000000, 4.453782],[1347926400000, 4.442970],[1348012800000, 4.442673],[1348099200000, 4.455901],[1348185600000, 4.437168],[1348272000000, 4.452822],[1348358400000, 4.452822],[1348444800000, 4.452822],[1348531200000, 4.438608],[1348617600000, 4.456561],[1348704000000, 4.453654],[1348790400000, 4.466615],[1348876800000, 4.454143],[1348963200000, 4.454143]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });