$(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: 'Курс UZS, грн'},
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: 'Курс UZS',
data: [[1101859200000,0.005042],[1101945600000,0.005042],[1102032000000,0.005042],[1102118400000,0.005042],[1102204800000,0.005042],[1102291200000,0.005042],[1102377600000,0.005035],[1102464000000,0.005035],[1102550400000,0.005034],[1102636800000,0.005034],[1102723200000,null],[1102809600000,null],[1102896000000,null],[1102982400000,0.005034],[1103068800000,0.005034],[1103155200000,0.005034],[1103241600000,0.005028],[1103328000000,0.005028],[1103414400000,0.005028],[1103500800000,0.005028],[1103587200000,0.005022],[1103673600000,0.005022],[1103760000000,0.005022],[1103846400000,0.005022],[1103932800000,0.005022],[1104019200000,0.005022],[1104105600000,0.005022],[1104192000000,0.005022],[1104278400000,0.005015],[1104364800000,0.005015],[1104451200000,0.005015]],
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: [[1101859200000, 0.005042],[1101859200000, 0.005042],[1101945600000, 0.005042],[1102032000000, 0.005042],[1102118400000, 0.005042],[1102204800000, 0.005042],[1102291200000, 0.005042],[1102377600000, 0.005035],[1102464000000, 0.005035],[1102550400000, 0.005034],[1102636800000, 0.005034],[1102982400000, 0.005034],[1103068800000, 0.005034],[1103155200000, 0.005034],[1103241600000, 0.005028],[1103328000000, 0.005028],[1103414400000, 0.005028],[1103500800000, 0.005028],[1103587200000, 0.005022],[1103673600000, 0.005022],[1103760000000, 0.005022],[1103846400000, 0.005022],[1103932800000, 0.005022],[1104019200000, 0.005022],[1104105600000, 0.005022],[1104192000000, 0.005022],[1104278400000, 0.005015],[1104364800000, 0.005015],[1104451200000, 0.005015]],
tooltip: {valueSuffix: ' грн'},
type: 'spline',
step: false,
color: '#0000CC',
threshold: null
}]
});
});