$(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: [[1443657600000,0.076113],[1443744000000,0.075423],[1443830400000,0.075408],[1443916800000,0.075408],[1444003200000,0.075408],[1444089600000,0.076428],[1444176000000,0.076111],[1444262400000,0.076763],[1444348800000,0.076786],[1444435200000,0.078385],[1444521600000,0.078385],[1444608000000,0.078385],[1444694400000,0.079822],[1444780800000,0.080077],[1444867200000,0.080077],[1444953600000,0.080196],[1445040000000,0.078126],[1445126400000,0.078126],[1445212800000,0.078126],[1445299200000,0.079155],[1445385600000,0.080585],[1445472000000,0.082476],[1445558400000,0.081017],[1445644800000,0.080728],[1445731200000,0.080728],[1445817600000,0.080728],[1445904000000,0.081316],[1445990400000,0.080834],[1446076800000,0.08137],[1446163200000,0.080379],[1446249600000,0.081743]], 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: [[1443657600000, 0.076113],[1443657600000, 0.076113],[1443744000000, 0.075423],[1443830400000, 0.075408],[1443916800000, 0.075408],[1444003200000, 0.075408],[1444089600000, 0.076428],[1444176000000, 0.076111],[1444262400000, 0.076763],[1444348800000, 0.076786],[1444435200000, 0.078385],[1444521600000, 0.078385],[1444608000000, 0.078385],[1444694400000, 0.079822],[1444780800000, 0.080077],[1444867200000, 0.080077],[1444953600000, 0.080196],[1445040000000, 0.078126],[1445126400000, 0.078126],[1445212800000, 0.078126],[1445299200000, 0.079155],[1445385600000, 0.080585],[1445472000000, 0.082476],[1445558400000, 0.081017],[1445644800000, 0.080728],[1445731200000, 0.080728],[1445817600000, 0.080728],[1445904000000, 0.081316],[1445990400000, 0.080834],[1446076800000, 0.081370],[1446163200000, 0.080379],[1446249600000, 0.081743]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });