$(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: [[1488326400000,1.0653],[1488412800000,1.05952],[1488499200000,1.05414],[1488585600000,1.06034],[1488672000000,1.06034],[1488758400000,1.06034],[1488844800000,1.05921],[1488931200000,1.05519],[1489017600000,1.05519],[1489104000000,1.05071],[1489190400000,1.05232],[1489276800000,1.05232],[1489363200000,1.05232],[1489449600000,1.06131],[1489536000000,1.05851],[1489622400000,1.05669],[1489708800000,1.07093],[1489795200000,1.06926],[1489881600000,1.06926],[1489968000000,1.06926],[1490054400000,1.0699],[1490140800000,1.07341],[1490227200000,1.07666],[1490313600000,1.08007],[1490400000000,1.08464],[1490486400000,1.08464],[1490572800000,1.08464],[1490659200000,1.09424],[1490745600000,1.0899],[1490832000000,1.07556],[1490918400000,1.07187]], 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: [[1488326400000, 1.065297],[1488326400000, 1.065297],[1488412800000, 1.059523],[1488499200000, 1.054136],[1488585600000, 1.060341],[1488672000000, 1.060341],[1488758400000, 1.060341],[1488844800000, 1.059213],[1488931200000, 1.055192],[1489017600000, 1.055192],[1489104000000, 1.050712],[1489190400000, 1.052324],[1489276800000, 1.052324],[1489363200000, 1.052324],[1489449600000, 1.061311],[1489536000000, 1.058508],[1489622400000, 1.056687],[1489708800000, 1.070933],[1489795200000, 1.069260],[1489881600000, 1.069260],[1489968000000, 1.069260],[1490054400000, 1.069902],[1490140800000, 1.073406],[1490227200000, 1.076657],[1490313600000, 1.080065],[1490400000000, 1.084641],[1490486400000, 1.084641],[1490572800000, 1.084641],[1490659200000, 1.094241],[1490745600000, 1.089905],[1490832000000, 1.075560],[1490918400000, 1.071875]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });