$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1488326400000,27.0336],[1488412800000,26.8896],[1488499200000,26.7429],[1488585600000,26.8398],[1488672000000,26.8398],[1488758400000,26.8398],[1488844800000,26.7636],[1488931200000,26.5725],[1489017600000,26.5725],[1489104000000,26.5116],[1489190400000,26.4683],[1489276800000,26.4683],[1489363200000,26.4683],[1489449600000,26.6794],[1489536000000,26.666],[1489622400000,26.6475],[1489708800000,27.0572],[1489795200000,27.0074],[1489881600000,27.0074],[1489968000000,27.0074],[1490054400000,26.9681],[1490140800000,26.9809],[1490227200000,27.1536],[1490313600000,27.2752],[1490400000000,27.3447],[1490486400000,27.3447],[1490572800000,27.3447],[1490659200000,27.5996],[1490745600000,27.5417],[1490832000000,27.131],[1490918400000,27.0744]], 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, 27.033610],[1488326400000, 27.033610],[1488412800000, 26.889609],[1488499200000, 26.742850],[1488585600000, 26.839800],[1488672000000, 26.839800],[1488758400000, 26.839800],[1488844800000, 26.763589],[1488931200000, 26.572537],[1489017600000, 26.572537],[1489104000000, 26.511624],[1489190400000, 26.468255],[1489276800000, 26.468255],[1489363200000, 26.468255],[1489449600000, 26.679391],[1489536000000, 26.666005],[1489622400000, 26.647458],[1489708800000, 27.057201],[1489795200000, 27.007363],[1489881600000, 27.007363],[1489968000000, 27.007363],[1490054400000, 26.968127],[1490140800000, 26.980944],[1490227200000, 27.153575],[1490313600000, 27.275162],[1490400000000, 27.344734],[1490486400000, 27.344734],[1490572800000, 27.344734],[1490659200000, 27.599643],[1490745600000, 27.541691],[1490832000000, 27.130981],[1490918400000, 27.074400]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });