$(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: 'Курс HUF, грн'},
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: 'Курс HUF',
data: [[1162339200000,0.0246387],[1162425600000,0.0248411],[1162512000000,0.0247641],[1162598400000,0.0247486],[1162684800000,0.0247486],[1162771200000,0.0247486],[1162857600000,0.0247359],[1162944000000,0.0247095],[1163030400000,0.0246631],[1163116800000,0.0248748],[1163203200000,0.0249092],[1163289600000,0.0249092],[1163376000000,0.0249092],[1163462400000,0.0248911],[1163548800000,0.0250643],[1163635200000,0.0250726],[1163721600000,0.0251557],[1163808000000,0.02505],[1163894400000,0.02505],[1163980800000,0.02505],[1164067200000,0.0250588],[1164153600000,0.0251989],[1164240000000,0.0252765],[1164326400000,0.025292],[1164412800000,0.0254642],[1164499200000,0.0254642],[1164585600000,0.0254642],[1164672000000,0.025644],[1164758400000,0.0256748],[1164844800000,0.0258372]],
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: [[1162339200000, 0.024639],[1162339200000, 0.024639],[1162425600000, 0.024841],[1162512000000, 0.024764],[1162598400000, 0.024749],[1162684800000, 0.024749],[1162771200000, 0.024749],[1162857600000, 0.024736],[1162944000000, 0.024709],[1163030400000, 0.024663],[1163116800000, 0.024875],[1163203200000, 0.024909],[1163289600000, 0.024909],[1163376000000, 0.024909],[1163462400000, 0.024891],[1163548800000, 0.025064],[1163635200000, 0.025073],[1163721600000, 0.025156],[1163808000000, 0.025050],[1163894400000, 0.025050],[1163980800000, 0.025050],[1164067200000, 0.025059],[1164153600000, 0.025199],[1164240000000, 0.025277],[1164326400000, 0.025292],[1164412800000, 0.025464],[1164499200000, 0.025464],[1164585600000, 0.025464],[1164672000000, 0.025644],[1164758400000, 0.025675],[1164844800000, 0.025837]],
tooltip: {valueSuffix: ' грн'},
type: 'spline',
step: false,
color: '#0000CC',
threshold: null
}]
});
});