$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1270080000000,0.0401961],[1270166400000,0.0403104],[1270252800000,0.0403104],[1270339200000,0.0403104],[1270425600000,0.0403104],[1270512000000,0.0403104],[1270598400000,0.0400193],[1270684800000,0.0397103],[1270771200000,0.0391923],[1270857600000,0.0396295],[1270944000000,0.0396295],[1271030400000,0.0396295],[1271116800000,0.0406024],[1271203200000,0.040692],[1271289600000,0.0410876],[1271376000000,0.0407699],[1271462400000,0.0407196],[1271548800000,0.0407196],[1271635200000,0.0407196],[1271721600000,0.0401163],[1271808000000,0.0403445],[1271894400000,0.0401296],[1271980800000,0.0399706],[1272067200000,0.0398942],[1272153600000,0.0398942],[1272240000000,0.0398942],[1272326400000,0.0400818],[1272412800000,0.0394884],[1272499200000,0.0388953],[1272585600000,0.0391627]], 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: [[1270080000000, 0.040196],[1270080000000, 0.040196],[1270166400000, 0.040310],[1270252800000, 0.040310],[1270339200000, 0.040310],[1270425600000, 0.040310],[1270512000000, 0.040310],[1270598400000, 0.040019],[1270684800000, 0.039710],[1270771200000, 0.039192],[1270857600000, 0.039629],[1270944000000, 0.039629],[1271030400000, 0.039629],[1271116800000, 0.040602],[1271203200000, 0.040692],[1271289600000, 0.041088],[1271376000000, 0.040770],[1271462400000, 0.040720],[1271548800000, 0.040720],[1271635200000, 0.040720],[1271721600000, 0.040116],[1271808000000, 0.040344],[1271894400000, 0.040130],[1271980800000, 0.039971],[1272067200000, 0.039894],[1272153600000, 0.039894],[1272240000000, 0.039894],[1272326400000, 0.040082],[1272412800000, 0.039488],[1272499200000, 0.038895],[1272585600000, 0.039163]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });