$(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: [[999302400000,4.88964],[999388800000,4.88964],[999475200000,4.88964],[999561600000,4.84372],[999648000000,4.7907],[999734400000,4.74753],[999820800000,4.72795],[999907200000,4.7801],[999993600000,4.7801],[1000080000000,4.7801],[1000166400000,4.83246],[1000252800000,4.78866],[1000339200000,4.83567],[1000425600000,4.83994],[1000512000000,4.92488],[1000598400000,4.92488],[1000684800000,4.92488],[1000771200000,4.95141],[1000857600000,4.94446],[1000944000000,4.94423],[1001030400000,4.94366],[1001116800000,4.94366],[1001203200000,4.94366],[1001289600000,4.91142],[1001376000000,4.89083],[1001462400000,4.91723],[1001548800000,4.90755],[1001635200000,4.86783],[1001721600000,4.86783],[1001808000000,4.86783]], 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: [[999302400000, 4.889640],[999302400000, 4.889640],[999388800000, 4.889640],[999475200000, 4.889640],[999561600000, 4.843720],[999648000000, 4.790700],[999734400000, 4.747530],[999820800000, 4.727950],[999907200000, 4.780100],[999993600000, 4.780100],[1000080000000, 4.780100],[1000166400000, 4.832460],[1000252800000, 4.788660],[1000339200000, 4.835670],[1000425600000, 4.839940],[1000512000000, 4.924880],[1000598400000, 4.924880],[1000684800000, 4.924880],[1000771200000, 4.951410],[1000857600000, 4.944460],[1000944000000, 4.944230],[1001030400000, 4.943660],[1001116800000, 4.943660],[1001203200000, 4.943660],[1001289600000, 4.911420],[1001376000000, 4.890830],[1001462400000, 4.917230],[1001548800000, 4.907550],[1001635200000, 4.867830],[1001721600000, 4.867830],[1001808000000, 4.867830]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });