$(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: [[1130803200000,4.28756],[1130889600000,4.27015],[1130976000000,4.27892],[1131062400000,4.29307],[1131148800000,4.27691],[1131235200000,4.27691],[1131321600000,4.27691],[1131408000000,4.2587],[1131494400000,4.22428],[1131580800000,4.24894],[1131667200000,4.25305],[1131753600000,4.23774],[1131840000000,4.23774],[1131926400000,4.23774],[1132012800000,4.22414],[1132099200000,4.22021],[1132185600000,4.22383],[1132272000000,4.25026],[1132358400000,4.24553],[1132444800000,4.24553],[1132531200000,4.24553],[1132617600000,4.24161],[1132704000000,4.26643],[1132790400000,4.30403],[1132876800000,4.31314],[1132963200000,4.31646],[1133049600000,4.31646],[1133136000000,4.31646],[1133222400000,4.31732],[1133308800000,4.31962]], 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: [[1130803200000, 4.287561],[1130803200000, 4.287561],[1130889600000, 4.270150],[1130976000000, 4.278923],[1131062400000, 4.293070],[1131148800000, 4.276909],[1131235200000, 4.276909],[1131321600000, 4.276909],[1131408000000, 4.258698],[1131494400000, 4.224284],[1131580800000, 4.248936],[1131667200000, 4.253050],[1131753600000, 4.237739],[1131840000000, 4.237739],[1131926400000, 4.237739],[1132012800000, 4.224141],[1132099200000, 4.220210],[1132185600000, 4.223827],[1132272000000, 4.250259],[1132358400000, 4.245533],[1132444800000, 4.245533],[1132531200000, 4.245533],[1132617600000, 4.241612],[1132704000000, 4.266430],[1132790400000, 4.304031],[1132876800000, 4.313145],[1132963200000, 4.316462],[1133049600000, 4.316462],[1133136000000, 4.316462],[1133222400000, 4.317316],[1133308800000, 4.319624]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });