$(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: [[1175385600000,4.13959],[1175472000000,4.13959],[1175558400000,4.15989],[1175644800000,4.14488],[1175731200000,4.13869],[1175817600000,4.14088],[1175904000000,4.14088],[1175990400000,4.14088],[1176076800000,4.14088],[1176163200000,4.14088],[1176249600000,4.14408],[1176336000000,4.1363],[1176422400000,4.14584],[1176508800000,4.1768],[1176595200000,4.1768],[1176681600000,4.1768],[1176768000000,4.16454],[1176854400000,4.17058],[1176940800000,4.18915],[1177027200000,4.20272],[1177113600000,4.18608],[1177200000000,4.18608],[1177286400000,4.18608],[1177372800000,4.16872],[1177459200000,4.18558],[1177545600000,4.1988],[1177632000000,4.17842],[1177718400000,4.19312],[1177804800000,4.19312],[1177891200000,4.19312]], 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: [[1175385600000, 4.139589],[1175385600000, 4.139589],[1175472000000, 4.139589],[1175558400000, 4.159885],[1175644800000, 4.144879],[1175731200000, 4.138694],[1175817600000, 4.140882],[1175904000000, 4.140882],[1175990400000, 4.140882],[1176076800000, 4.140882],[1176163200000, 4.140882],[1176249600000, 4.144080],[1176336000000, 4.136302],[1176422400000, 4.145839],[1176508800000, 4.176798],[1176595200000, 4.176798],[1176681600000, 4.176798],[1176768000000, 4.164537],[1176854400000, 4.170575],[1176940800000, 4.189152],[1177027200000, 4.202720],[1177113600000, 4.186079],[1177200000000, 4.186079],[1177286400000, 4.186079],[1177372800000, 4.168718],[1177459200000, 4.185580],[1177545600000, 4.198797],[1177632000000, 4.178420],[1177718400000, 4.193120],[1177804800000, 4.193120],[1177891200000, 4.193120]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });