$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1349049600000,12.3267],[1349136000000,12.3093],[1349222400000,12.313],[1349308800000,12.3047],[1349395200000,12.314],[1349481600000,12.3432],[1349568000000,12.3432],[1349654400000,12.3432],[1349740800000,12.3432],[1349827200000,12.3026],[1349913600000,12.2792],[1350000000000,12.2988],[1350086400000,12.3183],[1350172800000,12.3183],[1350259200000,12.3183],[1350345600000,12.3109],[1350432000000,12.3298],[1350518400000,12.3726],[1350604800000,12.3609],[1350691200000,12.3332],[1350777600000,12.3332],[1350864000000,12.3332],[1350950400000,12.3295],[1351036800000,12.3015],[1351123200000,12.2816],[1351209600000,12.3083],[1351296000000,12.2758],[1351382400000,12.2758],[1351468800000,12.2758],[1351555200000,12.2742],[1351641600000,12.2951]], 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: [[1349049600000, 12.326716],[1349049600000, 12.326716],[1349136000000, 12.309251],[1349222400000, 12.312987],[1349308800000, 12.304741],[1349395200000, 12.313992],[1349481600000, 12.343162],[1349568000000, 12.343162],[1349654400000, 12.343162],[1349740800000, 12.343162],[1349827200000, 12.302582],[1349913600000, 12.279166],[1350000000000, 12.298796],[1350086400000, 12.318300],[1350172800000, 12.318300],[1350259200000, 12.318300],[1350345600000, 12.310920],[1350432000000, 12.329796],[1350518400000, 12.372644],[1350604800000, 12.360895],[1350691200000, 12.333221],[1350777600000, 12.333221],[1350864000000, 12.333221],[1350950400000, 12.329473],[1351036800000, 12.301503],[1351123200000, 12.281618],[1351209600000, 12.308304],[1351296000000, 12.275771],[1351382400000, 12.275771],[1351468800000, 12.275771],[1351555200000, 12.274169],[1351641600000, 12.295126]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });