$(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: [[1238544000000,6.76291],[1238630400000,6.7519],[1238716800000,6.75743],[1238803200000,6.78475],[1238889600000,6.78475],[1238976000000,6.78475],[1239062400000,6.81571],[1239148800000,6.72843],[1239235200000,6.7158],[1239321600000,6.69738],[1239408000000,6.69738],[1239494400000,6.69738],[1239580800000,6.69738],[1239667200000,6.69738],[1239753600000,6.74709],[1239840000000,6.71736],[1239926400000,6.71708],[1240012800000,6.60708],[1240099200000,6.60708],[1240185600000,6.60708],[1240272000000,6.60708],[1240358400000,6.58835],[1240444800000,6.59294],[1240531200000,6.64144],[1240617600000,6.74655],[1240704000000,6.74655],[1240790400000,6.74655],[1240876800000,6.70265],[1240963200000,6.65237],[1241049600000,6.78095]], 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: [[1238544000000, 6.762909],[1238544000000, 6.762909],[1238630400000, 6.751900],[1238716800000, 6.757431],[1238803200000, 6.784753],[1238889600000, 6.784753],[1238976000000, 6.784753],[1239062400000, 6.815715],[1239148800000, 6.728426],[1239235200000, 6.715801],[1239321600000, 6.697385],[1239408000000, 6.697385],[1239494400000, 6.697385],[1239580800000, 6.697385],[1239667200000, 6.697385],[1239753600000, 6.747093],[1239840000000, 6.717358],[1239926400000, 6.717075],[1240012800000, 6.607084],[1240099200000, 6.607084],[1240185600000, 6.607084],[1240272000000, 6.607084],[1240358400000, 6.588355],[1240444800000, 6.592944],[1240531200000, 6.641441],[1240617600000, 6.746550],[1240704000000, 6.746550],[1240790400000, 6.746550],[1240876800000, 6.702646],[1240963200000, 6.652374],[1241049600000, 6.780948]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });