$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1093996800000,9.53547],[1094083200000,9.51965],[1094169600000,9.51061],[1094256000000,9.51061],[1094342400000,9.51061],[1094428800000,9.51061],[1094515200000,9.41742],[1094601600000,9.41742],[1094688000000,9.4189],[1094774400000,9.49709],[1094860800000,9.49709],[1094947200000,9.49709],[1095033600000,9.55347],[1095120000000,9.55347],[1095206400000,9.48874],[1095292800000,9.48874],[1095379200000,9.49569],[1095465600000,9.53216],[1095552000000,9.53216],[1095638400000,9.53216],[1095724800000,9.46596],[1095811200000,9.5366],[1095897600000,9.51095],[1095984000000,9.56058],[1096070400000,9.56414],[1096156800000,9.56414],[1096243200000,9.56414],[1096329600000,9.58365],[1096416000000,9.62678],[1096502400000,9.59325]], 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, 9.535470],[1093996800000, 9.535470],[1094083200000, 9.519650],[1094169600000, 9.510610],[1094256000000, 9.510610],[1094342400000, 9.510610],[1094428800000, 9.510610],[1094515200000, 9.417420],[1094601600000, 9.417420],[1094688000000, 9.418900],[1094774400000, 9.497090],[1094860800000, 9.497090],[1094947200000, 9.497090],[1095033600000, 9.553470],[1095120000000, 9.553470],[1095206400000, 9.488740],[1095292800000, 9.488740],[1095379200000, 9.495690],[1095465600000, 9.532160],[1095552000000, 9.532160],[1095638400000, 9.532160],[1095724800000, 9.465960],[1095811200000, 9.536600],[1095897600000, 9.510950],[1095984000000, 9.560580],[1096070400000, 9.564140],[1096156800000, 9.564140],[1096243200000, 9.564140],[1096329600000, 9.583650],[1096416000000, 9.626780],[1096502400000, 9.593250]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });