$(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: 'Курс SGD, грн'},
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: 'Курс SGD',
data: [[1141171200000,3.11025],[1141257600000,3.12123],[1141344000000,3.12165],[1141430400000,3.11927],[1141516800000,3.11927],[1141603200000,3.11927],[1141689600000,3.10636],[1141776000000,3.09309],[1141862400000,3.09309],[1141948800000,3.10353],[1142035200000,3.10487],[1142121600000,3.10487],[1142208000000,3.10487],[1142294400000,3.10309],[1142380800000,3.10793],[1142467200000,3.11746],[1142553600000,3.11725],[1142640000000,3.1242],[1142726400000,3.1242],[1142812800000,3.1242],[1142899200000,3.12932],[1142985600000,3.12336],[1143072000000,3.12316],[1143158400000,3.12354],[1143244800000,3.11564],[1143331200000,3.11564],[1143417600000,3.11564],[1143504000000,3.12057],[1143590400000,3.12272],[1143676800000,3.11463],[1143763200000,3.11832]],
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: [[1141171200000, 3.110251],[1141171200000, 3.110251],[1141257600000, 3.121230],[1141344000000, 3.121652],[1141430400000, 3.119270],[1141516800000, 3.119270],[1141603200000, 3.119270],[1141689600000, 3.106360],[1141776000000, 3.093093],[1141862400000, 3.093093],[1141948800000, 3.103527],[1142035200000, 3.104867],[1142121600000, 3.104867],[1142208000000, 3.104867],[1142294400000, 3.103087],[1142380800000, 3.107932],[1142467200000, 3.117463],[1142553600000, 3.117249],[1142640000000, 3.124200],[1142726400000, 3.124200],[1142812800000, 3.124200],[1142899200000, 3.129324],[1142985600000, 3.123361],[1143072000000, 3.123159],[1143158400000, 3.123538],[1143244800000, 3.115642],[1143331200000, 3.115642],[1143417600000, 3.115642],[1143504000000, 3.120568],[1143590400000, 3.122720],[1143676800000, 3.114633],[1143763200000, 3.118322]],
tooltip: {valueSuffix: ' грн'},
type: 'spline',
step: false,
color: '#0000CC',
threshold: null
}]
});
});