$(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: [[1093996800000,6.46267],[1094083200000,6.46479],[1094169600000,6.46626],[1094256000000,6.46626],[1094342400000,6.46626],[1094428800000,6.46626],[1094515200000,6.41467],[1094601600000,6.41467],[1094688000000,6.39355],[1094774400000,6.48841],[1094860800000,6.48841],[1094947200000,6.48841],[1095033600000,6.49732],[1095120000000,6.49732],[1095206400000,6.49789],[1095292800000,6.49789],[1095379200000,6.45517],[1095465600000,6.48282],[1095552000000,6.48282],[1095638400000,6.48282],[1095724800000,6.44064],[1095811200000,6.51684],[1095897600000,6.50026],[1095984000000,6.53705],[1096070400000,6.53374],[1096156800000,6.53374],[1096243200000,6.53374],[1096329600000,6.50442],[1096416000000,6.54717],[1096502400000,6.54068]], 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: [[1093996800000, 6.462670],[1093996800000, 6.462670],[1094083200000, 6.464790],[1094169600000, 6.466260],[1094256000000, 6.466260],[1094342400000, 6.466260],[1094428800000, 6.466260],[1094515200000, 6.414670],[1094601600000, 6.414670],[1094688000000, 6.393550],[1094774400000, 6.488410],[1094860800000, 6.488410],[1094947200000, 6.488410],[1095033600000, 6.497320],[1095120000000, 6.497320],[1095206400000, 6.497890],[1095292800000, 6.497890],[1095379200000, 6.455170],[1095465600000, 6.482820],[1095552000000, 6.482820],[1095638400000, 6.482820],[1095724800000, 6.440640],[1095811200000, 6.516840],[1095897600000, 6.500260],[1095984000000, 6.537050],[1096070400000, 6.533740],[1096156800000, 6.533740],[1096243200000, 6.533740],[1096329600000, 6.504420],[1096416000000, 6.547170],[1096502400000, 6.540680]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });