$(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: 'Курс JPY, грн'},
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: 'Курс JPY',
data: [[1164931200000,0.0434862],[1165017600000,0.043495],[1165104000000,0.043495],[1165190400000,0.043495],[1165276800000,0.0436743],[1165363200000,0.0440759],[1165449600000,0.0439105],[1165536000000,0.0439261],[1165622400000,0.0436824],[1165708800000,0.0436824],[1165795200000,0.0436824],[1165881600000,0.0431179],[1165968000000,0.0431665],[1166054400000,0.0431236],[1166140800000,0.0429693],[1166227200000,0.0426892],[1166313600000,0.0426892],[1166400000000,0.0426892],[1166486400000,0.0428468],[1166572800000,0.0427373],[1166659200000,0.0427405],[1166745600000,0.0427006],[1166832000000,0.0426338],[1166918400000,0.0426338],[1167004800000,0.0426338],[1167091200000,0.0426338],[1167177600000,0.0426338],[1167264000000,0.0425708],[1167350400000,0.0424773],[1167436800000,0.042381]],
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: [[1164931200000, 0.043486],[1164931200000, 0.043486],[1165017600000, 0.043495],[1165104000000, 0.043495],[1165190400000, 0.043495],[1165276800000, 0.043674],[1165363200000, 0.044076],[1165449600000, 0.043910],[1165536000000, 0.043926],[1165622400000, 0.043682],[1165708800000, 0.043682],[1165795200000, 0.043682],[1165881600000, 0.043118],[1165968000000, 0.043166],[1166054400000, 0.043124],[1166140800000, 0.042969],[1166227200000, 0.042689],[1166313600000, 0.042689],[1166400000000, 0.042689],[1166486400000, 0.042847],[1166572800000, 0.042737],[1166659200000, 0.042741],[1166745600000, 0.042701],[1166832000000, 0.042634],[1166918400000, 0.042634],[1167004800000, 0.042634],[1167091200000, 0.042634],[1167177600000, 0.042634],[1167264000000, 0.042571],[1167350400000, 0.042477],[1167436800000, 0.042381]],
tooltip: {valueSuffix: ' грн'},
type: 'spline',
step: false,
color: '#0000CC',
threshold: null
}]
});
});