$(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: [[993945600000,5.3828],[994032000000,5.3828],[994118400000,5.3828],[994204800000,5.3828],[994291200000,5.3805],[994377600000,5.3853],[994464000000,5.3804],[994550400000,null],[994636800000,null],[994723200000,5.3784],[994809600000,5.3767],[994896000000,5.3747],[994982400000,5.3724],[995068800000,5.3724],[995155200000,5.3724],[995241600000,5.3724],[995328000000,5.3698],[995414400000,5.3698],[995500800000,5.3747],[995587200000,5.37],[995673600000,5.3681],[995760000000,5.3681],[995846400000,5.3681],[995932800000,5.3669],[996019200000,5.3629],[996105600000,5.3599],[996192000000,5.3571],[996278400000,5.3547],[996364800000,5.3547],[996451200000,5.3547],[996537600000,5.3535]], 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: [[993945600000, 5.382800],[993945600000, 5.382800],[994032000000, 5.382800],[994118400000, 5.382800],[994204800000, 5.382800],[994291200000, 5.380500],[994377600000, 5.385300],[994464000000, 5.380400],[994723200000, 5.378400],[994809600000, 5.376700],[994896000000, 5.374700],[994982400000, 5.372400],[995068800000, 5.372400],[995155200000, 5.372400],[995241600000, 5.372400],[995328000000, 5.369800],[995414400000, 5.369800],[995500800000, 5.374700],[995587200000, 5.370000],[995673600000, 5.368100],[995760000000, 5.368100],[995846400000, 5.368100],[995932800000, 5.366900],[996019200000, 5.362900],[996105600000, 5.359900],[996192000000, 5.357100],[996278400000, 5.354700],[996364800000, 5.354700],[996451200000, 5.354700],[996537600000, 5.353500]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });