$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1433116800000,23.1301],[1433203200000,23.1301],[1433289600000,23.239],[1433376000000,23.388],[1433462400000,23.7812],[1433548800000,23.5867],[1433635200000,23.5867],[1433721600000,23.5867],[1433808000000,23.5545],[1433894400000,23.8133],[1433980800000,23.8588],[1434067200000,23.6181],[1434153600000,23.628],[1434240000000,23.628],[1434326400000,23.628],[1434412800000,24.0613],[1434499200000,24.8387],[1434585600000,24.4193],[1434672000000,24.3238],[1434758400000,24.4459],[1434844800000,24.4459],[1434931200000,24.4459],[1435017600000,24.6966],[1435104000000,24.1174],[1435190400000,23.7469],[1435276800000,23.7523],[1435363200000,23.5414],[1435449600000,23.5414],[1435536000000,23.5414],[1435622400000,23.5414]], 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: [[1433116800000, 23.130122],[1433116800000, 23.130122],[1433203200000, 23.130122],[1433289600000, 23.239005],[1433376000000, 23.388037],[1433462400000, 23.781219],[1433548800000, 23.586749],[1433635200000, 23.586749],[1433721600000, 23.586749],[1433808000000, 23.554548],[1433894400000, 23.813344],[1433980800000, 23.858841],[1434067200000, 23.618082],[1434153600000, 23.628006],[1434240000000, 23.628006],[1434326400000, 23.628006],[1434412800000, 24.061275],[1434499200000, 24.838689],[1434585600000, 24.419300],[1434672000000, 24.323767],[1434758400000, 24.445870],[1434844800000, 24.445870],[1434931200000, 24.445870],[1435017600000, 24.696590],[1435104000000, 24.117417],[1435190400000, 23.746914],[1435276800000, 23.752315],[1435363200000, 23.541404],[1435449600000, 23.541404],[1435536000000, 23.541404],[1435622400000, 23.541404]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });