$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1318032000000,7.69932],[1318118400000,7.69932],[1318204800000,7.69932],[1318291200000,7.74867],[1318377600000,7.75554],[1318464000000,7.84267],[1318550400000,7.80345],[1318636800000,7.86013],[1318723200000,7.86013],[1318809600000,7.86013],[1318896000000,7.8734],[1318982400000,7.78111],[1319068800000,7.88842],[1319155200000,7.85733],[1319241600000,7.88484],[1319328000000,7.88484],[1319414400000,7.88484],[1319500800000,7.92878],[1319587200000,7.97162],[1319673600000,7.87052],[1319760000000,8.01927]], 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: [[1318032000000, 7.699321],[1318032000000, 7.699321],[1318118400000, 7.699321],[1318204800000, 7.699321],[1318291200000, 7.748671],[1318377600000, 7.755543],[1318464000000, 7.842666],[1318550400000, 7.803452],[1318636800000, 7.860135],[1318723200000, 7.860135],[1318809600000, 7.860135],[1318896000000, 7.873396],[1318982400000, 7.781115],[1319068800000, 7.888419],[1319155200000, 7.857331],[1319241600000, 7.884840],[1319328000000, 7.884840],[1319414400000, 7.884840],[1319500800000, 7.928777],[1319587200000, 7.971618],[1319673600000, 7.870521],[1319760000000, 8.019273]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });