$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1349049600000,12.9503],[1349136000000,12.8931],[1349222400000,12.909],[1349308800000,12.879],[1349395200000,12.8761],[1349481600000,12.9381],[1349568000000,12.9381],[1349654400000,12.9381],[1349740800000,12.8121],[1349827200000,12.8151],[1349913600000,12.7985],[1350000000000,12.8225],[1350086400000,12.8542],[1350172800000,12.8542],[1350259200000,12.8542],[1350345600000,12.8401],[1350432000000,12.8784],[1350518400000,12.9228],[1350604800000,12.9144],[1350691200000,12.8193],[1350777600000,12.8193],[1350864000000,12.8193],[1350950400000,12.8192],[1351036800000,12.7756],[1351123200000,12.7979],[1351209600000,12.9026],[1351296000000,12.8774],[1351382400000,12.8774],[1351468800000,12.8774],[1351555200000,12.8138],[1351641600000,12.8511]], 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.950252],[1349049600000, 12.950252],[1349136000000, 12.893131],[1349222400000, 12.909004],[1349308800000, 12.879025],[1349395200000, 12.876092],[1349481600000, 12.938062],[1349568000000, 12.938062],[1349654400000, 12.938062],[1349740800000, 12.812134],[1349827200000, 12.815117],[1349913600000, 12.798531],[1350000000000, 12.822549],[1350086400000, 12.854211],[1350172800000, 12.854211],[1350259200000, 12.854211],[1350345600000, 12.840077],[1350432000000, 12.878434],[1350518400000, 12.922755],[1350604800000, 12.914420],[1350691200000, 12.819287],[1350777600000, 12.819287],[1350864000000, 12.819287],[1350950400000, 12.819221],[1351036800000, 12.775636],[1351123200000, 12.797898],[1351209600000, 12.902603],[1351296000000, 12.877389],[1351382400000, 12.877389],[1351468800000, 12.877389],[1351555200000, 12.813836],[1351641600000, 12.851063]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });