$(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: [[1241136000000,6.4752],[1241222400000,6.4752],[1241308800000,null],[1241395200000,6.4752],[1241481600000,6.4752],[1241568000000,6.58645],[1241654400000,6.5383],[1241740800000,6.62236],[1241827200000,6.61161],[1241913600000,6.61161],[1242000000000,6.61161],[1242086400000,6.61161],[1242172800000,6.6026],[1242259200000,6.56128],[1242345600000,6.47408],[1242432000000,6.48267],[1242518400000,6.48267],[1242604800000,6.48267],[1242691200000,6.51772],[1242777600000,6.58463],[1242864000000,6.63091],[1242950400000,6.65744],[1243036800000,6.75881],[1243123200000,6.75881],[1243209600000,6.75881],[1243296000000,6.76284],[1243382400000,6.75023],[1243468800000,6.81718],[1243555200000,6.79144],[1243641600000,6.92895],[1243728000000,6.92895]], 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: [[1241136000000, 6.475200],[1241136000000, 6.475200],[1241222400000, 6.475200],[1241395200000, 6.475200],[1241481600000, 6.475200],[1241568000000, 6.586451],[1241654400000, 6.538301],[1241740800000, 6.622363],[1241827200000, 6.611610],[1241913600000, 6.611610],[1242000000000, 6.611610],[1242086400000, 6.611610],[1242172800000, 6.602597],[1242259200000, 6.561275],[1242345600000, 6.474080],[1242432000000, 6.482669],[1242518400000, 6.482669],[1242604800000, 6.482669],[1242691200000, 6.517724],[1242777600000, 6.584634],[1242864000000, 6.630909],[1242950400000, 6.657440],[1243036800000, 6.758813],[1243123200000, 6.758813],[1243209600000, 6.758813],[1243296000000, 6.762842],[1243382400000, 6.750226],[1243468800000, 6.817181],[1243555200000, 6.791437],[1243641600000, 6.928947],[1243728000000, 6.928947]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });