$(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: [[1054425600000,6.30467],[1054512000000,6.30467],[1054598400000,6.22468],[1054684800000,6.25188],[1054771200000,6.23481],[1054857600000,6.29987],[1054944000000,6.29987],[1055030400000,6.29987],[1055116800000,6.29987],[1055203200000,6.29987],[1055289600000,6.23908],[1055376000000,6.26521],[1055462400000,6.26681],[1055548800000,6.26681],[1055635200000,6.26681],[1055721600000,6.26681],[1055808000000,6.26681],[1055894400000,6.29134],[1055980800000,6.23908],[1056067200000,6.21561],[1056153600000,6.21561],[1056240000000,6.21561],[1056326400000,6.21561],[1056412800000,6.15375],[1056499200000,6.16761],[1056585600000,6.09646],[1056672000000,6.09646],[1056758400000,6.09646],[1056844800000,6.09646],[1056931200000,6.09646]], 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: [[1054425600000, 6.304670],[1054425600000, 6.304670],[1054512000000, 6.304670],[1054598400000, 6.224680],[1054684800000, 6.251880],[1054771200000, 6.234810],[1054857600000, 6.299870],[1054944000000, 6.299870],[1055030400000, 6.299870],[1055116800000, 6.299870],[1055203200000, 6.299870],[1055289600000, 6.239080],[1055376000000, 6.265210],[1055462400000, 6.266810],[1055548800000, 6.266810],[1055635200000, 6.266810],[1055721600000, 6.266810],[1055808000000, 6.266810],[1055894400000, 6.291340],[1055980800000, 6.239080],[1056067200000, 6.215610],[1056153600000, 6.215610],[1056240000000, 6.215610],[1056326400000, 6.215610],[1056412800000, 6.153750],[1056499200000, 6.167610],[1056585600000, 6.096460],[1056672000000, 6.096460],[1056758400000, 6.096460],[1056844800000, 6.096460],[1056931200000, 6.096460]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });