$(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: 'Курс AZN, грн'}, 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: 'Курс AZN', data: [[1298937600000,9.99207],[1299024000000,9.99786],[1299110400000,9.99748],[1299196800000,9.99622],[1299283200000,9.99383],[1299369600000,9.99383],[1299456000000,9.99383],[1299542400000,9.99383],[1299628800000,9.99383],[1299715200000,9.99887],[1299801600000,9.99887],[1299888000000,10.0026],[1299974400000,10.0026],[1300060800000,10.0026],[1300147200000,10.0026],[1300233600000,10.0097],[1300320000000,10.0137],[1300406400000,10.015],[1300492800000,10.0198],[1300579200000,10.0198],[1300665600000,10.0198],[1300752000000,10.0198],[1300838400000,10.0198],[1300924800000,10.0236],[1301011200000,10.0324],[1301097600000,10.0353],[1301184000000,10.0353],[1301270400000,10.0353],[1301356800000,10.0353],[1301443200000,10.0391],[1301529600000,10.0416]], 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: [[1298937600000, 9.992066],[1298937600000, 9.992066],[1299024000000, 9.997859],[1299110400000, 9.997481],[1299196800000, 9.996222],[1299283200000, 9.993829],[1299369600000, 9.993829],[1299456000000, 9.993829],[1299542400000, 9.993829],[1299628800000, 9.993829],[1299715200000, 9.998866],[1299801600000, 9.998866],[1299888000000, 10.002647],[1299974400000, 10.002647],[1300060800000, 10.002647],[1300147200000, 10.002647],[1300233600000, 10.009706],[1300320000000, 10.013740],[1300406400000, 10.015003],[1300492800000, 10.019793],[1300579200000, 10.019793],[1300665600000, 10.019793],[1300752000000, 10.019793],[1300838400000, 10.019793],[1300924800000, 10.023575],[1301011200000, 10.032400],[1301097600000, 10.035300],[1301184000000, 10.035300],[1301270400000, 10.035300],[1301356800000, 10.035300],[1301443200000, 10.039097],[1301529600000, 10.041630]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });