$(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: [[1285891200000,8.12491],[1285977600000,8.08845],[1286064000000,8.08845],[1286150400000,8.08845],[1286236800000,8.13425],[1286323200000,8.1659],[1286409600000,8.20295],[1286496000000,8.23714],[1286582400000,8.17749],[1286668800000,8.17749],[1286755200000,8.17749],[1286841600000,8.21894],[1286928000000,8.22813],[1287014400000,8.2689],[1287100800000,8.33124],[1287187200000,8.30142],[1287273600000,8.30142],[1287360000000,8.30142],[1287446400000,8.22963],[1287532800000,8.17955],[1287619200000,8.21136],[1287705600000,8.21826],[1287792000000,8.14624],[1287878400000,8.14624],[1287964800000,8.14624],[1288051200000,8.15154],[1288137600000,8.11817],[1288224000000,8.00673],[1288310400000,8.021],[1288396800000,7.99699],[1288483200000,7.99699]], 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: [[1285891200000, 8.124910],[1285891200000, 8.124910],[1285977600000, 8.088452],[1286064000000, 8.088452],[1286150400000, 8.088452],[1286236800000, 8.134252],[1286323200000, 8.165899],[1286409600000, 8.202947],[1286496000000, 8.237145],[1286582400000, 8.177493],[1286668800000, 8.177493],[1286755200000, 8.177493],[1286841600000, 8.218936],[1286928000000, 8.228128],[1287014400000, 8.268902],[1287100800000, 8.331241],[1287187200000, 8.301416],[1287273600000, 8.301416],[1287360000000, 8.301416],[1287446400000, 8.229627],[1287532800000, 8.179550],[1287619200000, 8.211358],[1287705600000, 8.218260],[1287792000000, 8.146237],[1287878400000, 8.146237],[1287964800000, 8.146237],[1288051200000, 8.151539],[1288137600000, 8.118172],[1288224000000, 8.006732],[1288310400000, 8.021001],[1288396800000, 7.996989],[1288483200000, 7.996989]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });