$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1362096000000,12.108],[1362182400000,12.0495],[1362268800000,12.0495],[1362355200000,12.0495],[1362441600000,12.0397],[1362528000000,12.0658],[1362614400000,12.0595],[1362700800000,12.0338],[1362787200000,12.0338],[1362873600000,12.0338],[1362960000000,12.0338],[1363046400000,11.997],[1363132800000,12.0026],[1363219200000,12.0112],[1363305600000,11.9726],[1363392000000,12.0434],[1363478400000,12.0434],[1363564800000,12.0434],[1363651200000,12.0101],[1363737600000,12.0062],[1363824000000,11.9957],[1363910400000,12.0054],[1363996800000,12.0226],[1364083200000,12.0226],[1364169600000,12.0226],[1364256000000,12.0382],[1364342400000,11.9906],[1364428800000,11.9589],[1364515200000,11.9737],[1364601600000,11.9737],[1364688000000,11.9737]], 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: [[1362096000000, 12.108038],[1362096000000, 12.108038],[1362182400000, 12.049537],[1362268800000, 12.049537],[1362355200000, 12.049537],[1362441600000, 12.039663],[1362528000000, 12.065835],[1362614400000, 12.059463],[1362700800000, 12.033772],[1362787200000, 12.033772],[1362873600000, 12.033772],[1362960000000, 12.033772],[1363046400000, 11.997034],[1363132800000, 12.002583],[1363219200000, 12.011204],[1363305600000, 11.972559],[1363392000000, 12.043364],[1363478400000, 12.043364],[1363564800000, 12.043364],[1363651200000, 12.010103],[1363737600000, 12.006171],[1363824000000, 11.995684],[1363910400000, 12.005359],[1363996800000, 12.022622],[1364083200000, 12.022622],[1364169600000, 12.022622],[1364256000000, 12.038213],[1364342400000, 11.990573],[1364428800000, 11.958891],[1364515200000, 11.973653],[1364601600000, 11.973653],[1364688000000, 11.973653]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });