$(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: [[1157068800000,9.62729],[1157155200000,9.62037],[1157241600000,9.62037],[1157328000000,9.62037],[1157414400000,9.61876],[1157500800000,9.58449],[1157587200000,9.51328],[1157673600000,9.4609],[1157760000000,9.451],[1157846400000,9.451],[1157932800000,9.451],[1158019200000,9.41911],[1158105600000,9.45917],[1158192000000,9.46255],[1158278400000,9.52857],[1158364800000,9.49826],[1158451200000,9.49826],[1158537600000,9.49826],[1158624000000,9.4781],[1158710400000,9.49238],[1158796800000,9.5103],[1158883200000,9.58717],[1158969600000,9.60823],[1159056000000,9.60823],[1159142400000,9.60823],[1159228800000,9.60644],[1159315200000,9.57577],[1159401600000,9.54537],[1159488000000,9.48101],[1159574400000,9.43382]],
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: [[1157068800000, 9.627288],[1157068800000, 9.627288],[1157155200000, 9.620370],[1157241600000, 9.620370],[1157328000000, 9.620370],[1157414400000, 9.618763],[1157500800000, 9.584488],[1157587200000, 9.513275],[1157673600000, 9.460901],[1157760000000, 9.451001],[1157846400000, 9.451001],[1157932800000, 9.451001],[1158019200000, 9.419109],[1158105600000, 9.459167],[1158192000000, 9.462545],[1158278400000, 9.528570],[1158364800000, 9.498256],[1158451200000, 9.498256],[1158537600000, 9.498256],[1158624000000, 9.478105],[1158710400000, 9.492380],[1158796800000, 9.510296],[1158883200000, 9.587168],[1158969600000, 9.608231],[1159056000000, 9.608231],[1159142400000, 9.608231],[1159228800000, 9.606436],[1159315200000, 9.575765],[1159401600000, 9.545369],[1159488000000, 9.481009],[1159574400000, 9.433820]],
tooltip: {valueSuffix: ' грн'},
type: 'spline',
step: false,
color: '#0000CC',
threshold: null
}]
});
});