$(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: [[1396310400000,12.4358],[1396396800000,12.5763],[1396483200000,12.7217],[1396569600000,12.6591],[1396656000000,13.0853],[1396742400000,13.0853],[1396828800000,13.0853],[1396915200000,13.046],[1397001600000,13.1901],[1397088000000,13.4109],[1397174400000,14.2852],[1397260800000,14.31],[1397347200000,14.31],[1397433600000,14.31],[1397520000000,14.8029],[1397606400000,14.0904],[1397692800000,12.9338],[1397779200000,12.7972],[1397865600000,12.7766],[1397952000000,12.7766],[1398038400000,12.7766],[1398124800000,12.7766],[1398211200000,12.7995],[1398297600000,13.0238],[1398384000000,12.9115],[1398470400000,12.8916],[1398556800000,12.8916],[1398643200000,12.8916],[1398729600000,12.8819],[1398816000000,12.9815]], 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: [[1396310400000, 12.435772],[1396310400000, 12.435772],[1396396800000, 12.576326],[1396483200000, 12.721729],[1396569600000, 12.659078],[1396656000000, 13.085328],[1396742400000, 13.085328],[1396828800000, 13.085328],[1396915200000, 13.046038],[1397001600000, 13.190103],[1397088000000, 13.410926],[1397174400000, 14.285234],[1397260800000, 14.310019],[1397347200000, 14.310019],[1397433600000, 14.310019],[1397520000000, 14.802910],[1397606400000, 14.090435],[1397692800000, 12.933770],[1397779200000, 12.797170],[1397865600000, 12.776612],[1397952000000, 12.776612],[1398038400000, 12.776612],[1398124800000, 12.776612],[1398211200000, 12.799463],[1398297600000, 13.023829],[1398384000000, 12.911548],[1398470400000, 12.891571],[1398556800000, 12.891571],[1398643200000, 12.891571],[1398729600000, 12.881915],[1398816000000, 12.981489]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });