$(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: 'Курс CZK, грн'},
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: 'Курс CZK',
data: [[1506816000000,1.20775],[1506902400000,1.20775],[1506988800000,1.2042],[1507075200000,1.2103],[1507161600000,1.22072],[1507248000000,1.21795],[1507334400000,1.2126],[1507420800000,1.2126],[1507507200000,1.2126],[1507593600000,1.20448],[1507680000000,1.21095],[1507766400000,1.21291],[1507852800000,1.21965],[1507939200000,1.21965],[1508025600000,1.21965],[1508112000000,1.21965],[1508198400000,1.21965],[1508284800000,1.21023],[1508371200000,1.20783],[1508457600000,1.21905],[1508544000000,1.22085],[1508630400000,1.22085],[1508716800000,1.22085],[1508803200000,null],[1508889600000,1.22607],[1508976000000,1.23289],[1509062400000,1.23214],[1509148800000,1.21487],[1509235200000,1.21487],[1509321600000,1.21487],[1509408000000,1.21483]],
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: [[1506816000000, 1.207751],[1506816000000, 1.207751],[1506902400000, 1.207751],[1506988800000, 1.204200],[1507075200000, 1.210298],[1507161600000, 1.220719],[1507248000000, 1.217951],[1507334400000, 1.212598],[1507420800000, 1.212598],[1507507200000, 1.212598],[1507593600000, 1.204481],[1507680000000, 1.210954],[1507766400000, 1.212910],[1507852800000, 1.219654],[1507939200000, 1.219654],[1508025600000, 1.219654],[1508112000000, 1.219654],[1508198400000, 1.219654],[1508284800000, 1.210233],[1508371200000, 1.207830],[1508457600000, 1.219049],[1508544000000, 1.220851],[1508630400000, 1.220851],[1508716800000, 1.220851],[1508889600000, 1.226069],[1508976000000, 1.232893],[1509062400000, 1.232144],[1509148800000, 1.214869],[1509235200000, 1.214869],[1509321600000, 1.214869],[1509408000000, 1.214829]],
tooltip: {valueSuffix: ' грн'},
type: 'spline',
step: false,
color: '#0000CC',
threshold: null
}]
});
});