$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[988675200000,5.4158],[988761600000,5.4158],[988848000000,5.4158],[988934400000,5.4157],[989020800000,5.4156],[989107200000,5.4156],[989193600000,5.4156],[989280000000,5.415],[989366400000,5.4143],[989452800000,5.4143],[989539200000,5.4143],[989625600000,5.4143],[989712000000,5.4135],[989798400000,5.4135],[989884800000,5.413],[989971200000,5.4127],[990057600000,5.4125],[990144000000,5.4123],[990230400000,5.4122],[990316800000,5.4122],[990403200000,5.4122],[990489600000,5.4123],[990576000000,5.4121],[990662400000,5.4121],[990748800000,5.4116],[990835200000,5.4125],[990921600000,5.4125],[991008000000,5.4125],[991094400000,5.4125],[991180800000,5.4158],[991267200000,5.4152]], 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: [[988675200000, 5.415800],[988675200000, 5.415800],[988761600000, 5.415800],[988848000000, 5.415800],[988934400000, 5.415700],[989020800000, 5.415600],[989107200000, 5.415600],[989193600000, 5.415600],[989280000000, 5.415000],[989366400000, 5.414300],[989452800000, 5.414300],[989539200000, 5.414300],[989625600000, 5.414300],[989712000000, 5.413500],[989798400000, 5.413500],[989884800000, 5.413000],[989971200000, 5.412700],[990057600000, 5.412500],[990144000000, 5.412300],[990230400000, 5.412200],[990316800000, 5.412200],[990403200000, 5.412200],[990489600000, 5.412300],[990576000000, 5.412100],[990662400000, 5.412100],[990748800000, 5.411600],[990835200000, 5.412500],[990921600000, 5.412500],[991008000000, 5.412500],[991094400000, 5.412500],[991180800000, 5.415800],[991267200000, 5.415200]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });