$(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: 'Курс CZK, грн'}, 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: 'Курс CZK', data: [[1451606400000,0.970185],[1451692800000,0.970185],[1451779200000,0.970185],[1451865600000,0.970185],[1451952000000,0.970185],[1452038400000,0.94582],[1452124800000,0.93416],[1452211200000,0.93416],[1452297600000,0.93416],[1452384000000,0.93416],[1452470400000,0.93416],[1452556800000,0.947099],[1452643200000,0.933047],[1452729600000,0.946343],[1452816000000,0.96553],[1452902400000,0.976949],[1452988800000,0.984847],[1453075200000,0.984847],[1453161600000,0.992519],[1453248000000,0.999177],[1453334400000,0.994668],[1453420800000,0.986976],[1453507200000,0.991466],[1453593600000,0.991466],[1453680000000,0.991466],[1453766400000,0.993799],[1453852800000,0.996588],[1453939200000,1.002],[1454025600000,1.01488],[1454112000000,1.03256],[1454198400000,1.03256]], 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: [[1451606400000, 0.970185],[1451606400000, 0.970185],[1451692800000, 0.970185],[1451779200000, 0.970185],[1451865600000, 0.970185],[1451952000000, 0.970185],[1452038400000, 0.945820],[1452124800000, 0.934160],[1452211200000, 0.934160],[1452297600000, 0.934160],[1452384000000, 0.934160],[1452470400000, 0.934160],[1452556800000, 0.947099],[1452643200000, 0.933047],[1452729600000, 0.946343],[1452816000000, 0.965530],[1452902400000, 0.976949],[1452988800000, 0.984847],[1453075200000, 0.984847],[1453161600000, 0.992519],[1453248000000, 0.999177],[1453334400000, 0.994668],[1453420800000, 0.986976],[1453507200000, 0.991466],[1453593600000, 0.991466],[1453680000000, 0.991466],[1453766400000, 0.993799],[1453852800000, 0.996588],[1453939200000, 1.001997],[1454025600000, 1.014876],[1454112000000, 1.032565],[1454198400000, 1.032565]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });