$(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: [[1446336000000,23.2405],[1446422400000,23.2405],[1446508800000,23.326],[1446595200000,23.246],[1446681600000,23.3418],[1446768000000,23.0313],[1446854400000,22.7201],[1446940800000,22.7201],[1447027200000,22.7201],[1447113600000,22.6729],[1447200000000,22.6472],[1447286400000,22.6155],[1447372800000,22.8257],[1447459200000,23.0128],[1447545600000,23.0128],[1447632000000,23.0128],[1447718400000,23.0608],[1447804800000,23.4719],[1447891200000,23.5341],[1447977600000,23.3883],[1448064000000,23.6395],[1448150400000,23.6395],[1448236800000,23.6395],[1448323200000,23.5823],[1448409600000,23.5491],[1448496000000,23.2575],[1448582400000,23.0415],[1448668800000,23.1835],[1448755200000,23.1835],[1448841600000,23.1835]], 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: [[1446336000000, 23.240540],[1446336000000, 23.240540],[1446422400000, 23.240540],[1446508800000, 23.326033],[1446595200000, 23.246025],[1446681600000, 23.341846],[1446768000000, 23.031347],[1446854400000, 22.720071],[1446940800000, 22.720071],[1447027200000, 22.720071],[1447113600000, 22.672877],[1447200000000, 22.647158],[1447286400000, 22.615507],[1447372800000, 22.825723],[1447459200000, 23.012750],[1447545600000, 23.012750],[1447632000000, 23.012750],[1447718400000, 23.060785],[1447804800000, 23.471905],[1447891200000, 23.534074],[1447977600000, 23.388318],[1448064000000, 23.639538],[1448150400000, 23.639538],[1448236800000, 23.639538],[1448323200000, 23.582258],[1448409600000, 23.549055],[1448496000000, 23.257546],[1448582400000, 23.041458],[1448668800000, 23.183455],[1448755200000, 23.183455],[1448841600000, 23.183455]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });