$(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: [[1433116800000,22.3674],[1433203200000,22.3674],[1433289600000,22.3646],[1433376000000,22.4303],[1433462400000,22.5393],[1433548800000,22.5107],[1433635200000,22.5107],[1433721600000,22.5107],[1433808000000,22.4972],[1433894400000,22.7552],[1433980800000,22.753],[1434067200000,22.4442],[1434153600000,22.5695],[1434240000000,22.5695],[1434326400000,22.5695],[1434412800000,22.8893],[1434499200000,23.735],[1434585600000,23.3655],[1434672000000,23.2519],[1434758400000,23.3954],[1434844800000,23.3954],[1434931200000,23.3954],[1435017600000,23.6671],[1435104000000,23.0811],[1435190400000,22.7265],[1435276800000,22.6062],[1435363200000,22.5341],[1435449600000,22.5341],[1435536000000,22.5341],[1435622400000,22.5341]], 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: [[1433116800000, 22.367394],[1433116800000, 22.367394],[1433203200000, 22.367394],[1433289600000, 22.364551],[1433376000000, 22.430265],[1433462400000, 22.539303],[1433548800000, 22.510736],[1433635200000, 22.510736],[1433721600000, 22.510736],[1433808000000, 22.497181],[1433894400000, 22.755226],[1433980800000, 22.753043],[1434067200000, 22.444248],[1434153600000, 22.569497],[1434240000000, 22.569497],[1434326400000, 22.569497],[1434412800000, 22.889341],[1434499200000, 23.735011],[1434585600000, 23.365515],[1434672000000, 23.251857],[1434758400000, 23.395416],[1434844800000, 23.395416],[1434931200000, 23.395416],[1435017600000, 23.667072],[1435104000000, 23.081076],[1435190400000, 22.726494],[1435276800000, 22.606182],[1435363200000, 22.534128],[1435449600000, 22.534128],[1435536000000, 22.534128],[1435622400000, 22.534128]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });