$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1141171200000,0.0236815],[1141257600000,0.0238212],[1141344000000,0.0237676],[1141430400000,0.0238539],[1141516800000,0.0238539],[1141603200000,0.0238539],[1141689600000,0.0238245],[1141776000000,0.023561],[1141862400000,0.023561],[1141948800000,0.0233998],[1142035200000,0.0232658],[1142121600000,0.0232658],[1142208000000,0.0232658],[1142294400000,0.0230286],[1142380800000,0.022862],[1142467200000,0.0231419],[1142553600000,0.0232859],[1142640000000,0.0237446],[1142726400000,0.0237446],[1142812800000,0.0237446],[1142899200000,0.0235028],[1142985600000,0.0232467],[1143072000000,0.022913],[1143158400000,0.0231474],[1143244800000,0.0228537],[1143331200000,0.0228537],[1143417600000,0.0228537],[1143504000000,0.0229867],[1143590400000,0.0229104],[1143676800000,0.0226938],[1143763200000,0.0230161]], 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: [[1141171200000, 0.023682],[1141171200000, 0.023682],[1141257600000, 0.023821],[1141344000000, 0.023768],[1141430400000, 0.023854],[1141516800000, 0.023854],[1141603200000, 0.023854],[1141689600000, 0.023824],[1141776000000, 0.023561],[1141862400000, 0.023561],[1141948800000, 0.023400],[1142035200000, 0.023266],[1142121600000, 0.023266],[1142208000000, 0.023266],[1142294400000, 0.023029],[1142380800000, 0.022862],[1142467200000, 0.023142],[1142553600000, 0.023286],[1142640000000, 0.023745],[1142726400000, 0.023745],[1142812800000, 0.023745],[1142899200000, 0.023503],[1142985600000, 0.023247],[1143072000000, 0.022913],[1143158400000, 0.023147],[1143244800000, 0.022854],[1143331200000, 0.022854],[1143417600000, 0.022854],[1143504000000, 0.022987],[1143590400000, 0.022910],[1143676800000, 0.022694],[1143763200000, 0.023016]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });