$(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: 'Курс ISK, грн'},
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: 'Курс ISK',
data: [[1318032000000,0.036933],[1318118400000,0.036933],[1318204800000,0.036933],[1318291200000,0.03737],[1318377600000,0.037408],[1318464000000,0.03785],[1318550400000,0.037753],[1318636800000,0.037973],[1318723200000,0.037973],[1318809600000,0.037973],[1318896000000,0.037887],[1318982400000,0.037612],[1319068800000,0.03803],[1319155200000,0.037973],[1319241600000,0.037948],[1319328000000,0.037948],[1319414400000,0.037948],[1319500800000,0.038107],[1319587200000,0.03828],[1319673600000,0.038305],[1319760000000,0.038614]],
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: [[1318032000000, 0.036933],[1318032000000, 0.036933],[1318118400000, 0.036933],[1318204800000, 0.036933],[1318291200000, 0.037370],[1318377600000, 0.037408],[1318464000000, 0.037850],[1318550400000, 0.037753],[1318636800000, 0.037973],[1318723200000, 0.037973],[1318809600000, 0.037973],[1318896000000, 0.037887],[1318982400000, 0.037612],[1319068800000, 0.038030],[1319155200000, 0.037973],[1319241600000, 0.037948],[1319328000000, 0.037948],[1319414400000, 0.037948],[1319500800000, 0.038107],[1319587200000, 0.038280],[1319673600000, 0.038305],[1319760000000, 0.038614]],
tooltip: {valueSuffix: ' грн'},
type: 'spline',
step: false,
color: '#0000CC',
threshold: null
}]
});
});