$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1346457600000,0.24543],[1346544000000,0.24543],[1346630400000,0.24543],[1346716800000,0.24657],[1346803200000,0.24823],[1346889600000,0.24624],[1346976000000,0.24823],[1347062400000,0.24967],[1347148800000,0.24967],[1347235200000,0.24967],[1347321600000,0.25197],[1347408000000,0.25154],[1347494400000,0.25392],[1347580800000,0.25456],[1347667200000,0.25936],[1347753600000,0.25936],[1347840000000,0.25936],[1347926400000,0.26132],[1348012800000,0.25884],[1348099200000,0.25898],[1348185600000,0.25314],[1348272000000,0.25646],[1348358400000,0.25646],[1348444800000,0.25646],[1348531200000,0.25577],[1348617600000,0.25651],[1348704000000,0.256],[1348790400000,0.25623],[1348876800000,0.25853],[1348963200000,0.25853]], 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, 0.245430],[1346457600000, 0.245430],[1346544000000, 0.245430],[1346630400000, 0.245430],[1346716800000, 0.246570],[1346803200000, 0.248230],[1346889600000, 0.246240],[1346976000000, 0.248230],[1347062400000, 0.249670],[1347148800000, 0.249670],[1347235200000, 0.249670],[1347321600000, 0.251970],[1347408000000, 0.251540],[1347494400000, 0.253920],[1347580800000, 0.254560],[1347667200000, 0.259360],[1347753600000, 0.259360],[1347840000000, 0.259360],[1347926400000, 0.261320],[1348012800000, 0.258840],[1348099200000, 0.258980],[1348185600000, 0.253140],[1348272000000, 0.256460],[1348358400000, 0.256460],[1348444800000, 0.256460],[1348531200000, 0.255770],[1348617600000, 0.256510],[1348704000000, 0.256000],[1348790400000, 0.256230],[1348876800000, 0.258530],[1348963200000, 0.258530]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });