$(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: [[986083200000,4.78624],[986169600000,4.78624],[986256000000,4.75425],[986342400000,4.79434],[986428800000,4.89571],[986515200000,4.89571],[986601600000,4.8453],[986688000000,4.8453],[986774400000,4.8453],[986860800000,4.8873],[986947200000,4.84738],[987033600000,4.79022],[987120000000,4.79465],[987206400000,4.79439],[987292800000,4.79439],[987379200000,4.79439],[987465600000,4.79439],[987552000000,4.76384],[987638400000,4.76384],[987724800000,4.7822],[987811200000,4.86943],[987897600000,null],[987984000000,4.86943],[988070400000,4.8762],[988156800000,4.86031],[988243200000,4.84596],[988329600000,4.88153],[988416000000,4.88668],[988502400000,4.88668],[988588800000,4.88668]], 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: [[986083200000, 4.786240],[986083200000, 4.786240],[986169600000, 4.786240],[986256000000, 4.754250],[986342400000, 4.794340],[986428800000, 4.895710],[986515200000, 4.895710],[986601600000, 4.845300],[986688000000, 4.845300],[986774400000, 4.845300],[986860800000, 4.887300],[986947200000, 4.847380],[987033600000, 4.790220],[987120000000, 4.794650],[987206400000, 4.794390],[987292800000, 4.794390],[987379200000, 4.794390],[987465600000, 4.794390],[987552000000, 4.763840],[987638400000, 4.763840],[987724800000, 4.782200],[987811200000, 4.869430],[987984000000, 4.869430],[988070400000, 4.876200],[988156800000, 4.860310],[988243200000, 4.845960],[988329600000, 4.881530],[988416000000, 4.886680],[988502400000, 4.886680],[988588800000, 4.886680]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });