$(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: [[1362096000000,7.79586],[1362182400000,7.73305],[1362268800000,7.73305],[1362355200000,7.73305],[1362441600000,7.77018],[1362528000000,7.78689],[1362614400000,7.77064],[1362700800000,7.74765],[1362787200000,7.74765],[1362873600000,7.74765],[1362960000000,7.74765],[1363046400000,7.77578],[1363132800000,7.79067],[1363219200000,7.79894],[1363305600000,7.78714],[1363392000000,7.83376],[1363478400000,7.83376],[1363564800000,7.83376],[1363651200000,7.82238],[1363737600000,7.79958],[1363824000000,7.79665],[1363910400000,7.81089],[1363996800000,7.80552],[1364083200000,7.80552],[1364169600000,7.80552],[1364256000000,7.83313],[1364342400000,7.84538],[1364428800000,7.86003],[1364515200000,7.86041],[1364601600000,7.86041],[1364688000000,7.86041]], 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: [[1362096000000, 7.795862],[1362096000000, 7.795862],[1362182400000, 7.733051],[1362268800000, 7.733051],[1362355200000, 7.733051],[1362441600000, 7.770176],[1362528000000, 7.786887],[1362614400000, 7.770641],[1362700800000, 7.747648],[1362787200000, 7.747648],[1362873600000, 7.747648],[1362960000000, 7.747648],[1363046400000, 7.775776],[1363132800000, 7.790668],[1363219200000, 7.798943],[1363305600000, 7.787141],[1363392000000, 7.833763],[1363478400000, 7.833763],[1363564800000, 7.833763],[1363651200000, 7.822383],[1363737600000, 7.799577],[1363824000000, 7.796653],[1363910400000, 7.810887],[1363996800000, 7.805518],[1364083200000, 7.805518],[1364169600000, 7.805518],[1364256000000, 7.833128],[1364342400000, 7.845377],[1364428800000, 7.860030],[1364515200000, 7.860407],[1364601600000, 7.860407],[1364688000000, 7.860407]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });