$(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: [[1083369600000,6.36596],[1083456000000,6.36596],[1083542400000,6.36596],[1083628800000,6.36596],[1083715200000,6.36596],[1083801600000,6.46134],[1083888000000,6.43274],[1083974400000,6.43274],[1084060800000,6.43274],[1084147200000,6.43274],[1084233600000,6.28941],[1084320000000,6.31741],[1084406400000,6.31741],[1084492800000,6.28811],[1084579200000,6.28811],[1084665600000,6.28811],[1084752000000,6.28811],[1084838400000,6.38406],[1084924800000,6.38702],[1085011200000,6.35073],[1085097600000,6.40867],[1085184000000,6.40867],[1085270400000,6.40867],[1085356800000,6.40867],[1085443200000,6.37416],[1085529600000,6.44693],[1085616000000,6.44693],[1085702400000,6.47786],[1085788800000,6.47786],[1085875200000,6.47786],[1085961600000,6.47786]], 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: [[1083369600000, 6.365960],[1083369600000, 6.365960],[1083456000000, 6.365960],[1083542400000, 6.365960],[1083628800000, 6.365960],[1083715200000, 6.365960],[1083801600000, 6.461340],[1083888000000, 6.432740],[1083974400000, 6.432740],[1084060800000, 6.432740],[1084147200000, 6.432740],[1084233600000, 6.289410],[1084320000000, 6.317410],[1084406400000, 6.317410],[1084492800000, 6.288110],[1084579200000, 6.288110],[1084665600000, 6.288110],[1084752000000, 6.288110],[1084838400000, 6.384060],[1084924800000, 6.387020],[1085011200000, 6.350730],[1085097600000, 6.408670],[1085184000000, 6.408670],[1085270400000, 6.408670],[1085356800000, 6.408670],[1085443200000, 6.374160],[1085529600000, 6.446930],[1085616000000, 6.446930],[1085702400000, 6.477860],[1085788800000, 6.477860],[1085875200000, 6.477860],[1085961600000, 6.477860]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });