$(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: [[1346457600000,8.39368],[1346544000000,8.39368],[1346630400000,8.39368],[1346716800000,8.36576],[1346803200000,8.37169],[1346889600000,8.36823],[1346976000000,8.38373],[1347062400000,8.37393],[1347148800000,8.37393],[1347235200000,8.37393],[1347321600000,8.44653],[1347408000000,8.46501],[1347494400000,8.53081],[1347580800000,8.50698],[1347667200000,8.60618],[1347753600000,8.60618],[1347840000000,8.60618],[1347926400000,8.60168],[1348012800000,8.61394],[1348099200000,8.59239],[1348185600000,8.56563],[1348272000000,8.57251],[1348358400000,8.57251],[1348444800000,8.57251],[1348531200000,8.53556],[1348617600000,8.54825],[1348704000000,8.49355],[1348790400000,8.51555],[1348876800000,8.54199],[1348963200000,8.54199]], 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: [[1346457600000, 8.393682],[1346457600000, 8.393682],[1346544000000, 8.393682],[1346630400000, 8.393682],[1346716800000, 8.365758],[1346803200000, 8.371686],[1346889600000, 8.368233],[1346976000000, 8.383728],[1347062400000, 8.373933],[1347148800000, 8.373933],[1347235200000, 8.373933],[1347321600000, 8.446532],[1347408000000, 8.465007],[1347494400000, 8.530806],[1347580800000, 8.506977],[1347667200000, 8.606178],[1347753600000, 8.606178],[1347840000000, 8.606178],[1347926400000, 8.601677],[1348012800000, 8.613937],[1348099200000, 8.592392],[1348185600000, 8.565629],[1348272000000, 8.572509],[1348358400000, 8.572509],[1348444800000, 8.572509],[1348531200000, 8.535559],[1348617600000, 8.548253],[1348704000000, 8.493554],[1348790400000, 8.515548],[1348876800000, 8.541986],[1348963200000, 8.541986]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });