$(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: 'Курс KZT, грн'},
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: 'Курс KZT',
data: [[1501545600000,0.078809],[1501632000000,0.078338],[1501718400000,0.077277],[1501804800000,0.077107],[1501891200000,0.077522],[1501977600000,0.077522],[1502064000000,0.077522],[1502150400000,0.077743],[1502236800000,0.077463],[1502323200000,0.077393],[1502409600000,0.077226],[1502496000000,0.077125],[1502582400000,0.077125],[1502668800000,0.077125],[1502755200000,0.077103],[1502841600000,0.076892],[1502928000000,0.076864],[1503014400000,0.076669],[1503100800000,0.076594],[1503187200000,0.076594],[1503273600000,0.076594],[1503360000000,null],[1503446400000,0.076413],[1503532800000,0.07664],[1503619200000,0.07664],[1503705600000,0.07664],[1503792000000,0.07664],[1503878400000,0.07664],[1503964800000,0.076523],[1504051200000,0.07601],[1504137600000,0.076425]],
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: [[1501545600000, 0.078809],[1501545600000, 0.078809],[1501632000000, 0.078338],[1501718400000, 0.077277],[1501804800000, 0.077107],[1501891200000, 0.077522],[1501977600000, 0.077522],[1502064000000, 0.077522],[1502150400000, 0.077743],[1502236800000, 0.077463],[1502323200000, 0.077393],[1502409600000, 0.077226],[1502496000000, 0.077125],[1502582400000, 0.077125],[1502668800000, 0.077125],[1502755200000, 0.077103],[1502841600000, 0.076892],[1502928000000, 0.076864],[1503014400000, 0.076669],[1503100800000, 0.076594],[1503187200000, 0.076594],[1503273600000, 0.076594],[1503446400000, 0.076413],[1503532800000, 0.076640],[1503619200000, 0.076640],[1503705600000, 0.076640],[1503792000000, 0.076640],[1503878400000, 0.076640],[1503964800000, 0.076523],[1504051200000, 0.076010],[1504137600000, 0.076425]],
tooltip: {valueSuffix: ' грн'},
type: 'spline',
step: false,
color: '#0000CC',
threshold: null
}]
});
});