$(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: [[1036108800000,5.31654],[1036195200000,5.31654],[1036281600000,5.31654],[1036368000000,5.31654],[1036454400000,5.30055],[1036540800000,5.34319],[1036627200000,5.33733],[1036713600000,5.38743],[1036800000000,5.38743],[1036886400000,5.38743],[1036972800000,5.39756],[1037059200000,5.37358],[1037145600000,5.36665],[1037232000000,5.38104],[1037318400000,5.34586],[1037404800000,5.34586],[1037491200000,5.34586],[1037577600000,5.36505],[1037664000000,5.39703],[1037750400000,5.34053],[1037836800000,5.34852],[1037923200000,5.34319],[1038009600000,5.34319],[1038096000000,5.34319],[1038182400000,5.27976],[1038268800000,5.27976],[1038355200000,5.29149],[1038441600000,5.29149],[1038528000000,5.29228],[1038614400000,5.29228]], 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: [[1036108800000, 5.316540],[1036108800000, 5.316540],[1036195200000, 5.316540],[1036281600000, 5.316540],[1036368000000, 5.316540],[1036454400000, 5.300550],[1036540800000, 5.343190],[1036627200000, 5.337330],[1036713600000, 5.387430],[1036800000000, 5.387430],[1036886400000, 5.387430],[1036972800000, 5.397560],[1037059200000, 5.373580],[1037145600000, 5.366650],[1037232000000, 5.381040],[1037318400000, 5.345860],[1037404800000, 5.345860],[1037491200000, 5.345860],[1037577600000, 5.365050],[1037664000000, 5.397030],[1037750400000, 5.340530],[1037836800000, 5.348520],[1037923200000, 5.343190],[1038009600000, 5.343190],[1038096000000, 5.343190],[1038182400000, 5.279760],[1038268800000, 5.279760],[1038355200000, 5.291490],[1038441600000, 5.291490],[1038528000000, 5.292280],[1038614400000, 5.292280]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });