$(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: [[1101859200000,4.66759],[1101945600000,4.64083],[1102032000000,4.62711],[1102118400000,4.62073],[1102204800000,4.62073],[1102291200000,4.62073],[1102377600000,4.66794],[1102464000000,4.66516],[1102550400000,4.60347],[1102636800000,4.601],[1102723200000,null],[1102809600000,null],[1102896000000,null],[1102982400000,4.58692],[1103068800000,4.59787],[1103155200000,4.64666],[1103241600000,4.64137],[1103328000000,4.57978],[1103414400000,4.57978],[1103500800000,4.57978],[1103587200000,4.61455],[1103673600000,4.61377],[1103760000000,4.60047],[1103846400000,4.62312],[1103932800000,4.64815],[1104019200000,4.64815],[1104105600000,4.64815],[1104192000000,4.63521],[1104278400000,4.68454],[1104364800000,4.68032],[1104451200000,4.67453]], 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: [[1101859200000, 4.667588],[1101859200000, 4.667588],[1101945600000, 4.640830],[1102032000000, 4.627112],[1102118400000, 4.620733],[1102204800000, 4.620733],[1102291200000, 4.620733],[1102377600000, 4.667941],[1102464000000, 4.665157],[1102550400000, 4.603466],[1102636800000, 4.600995],[1102982400000, 4.586917],[1103068800000, 4.597866],[1103155200000, 4.646656],[1103241600000, 4.641365],[1103328000000, 4.579779],[1103414400000, 4.579779],[1103500800000, 4.579779],[1103587200000, 4.614549],[1103673600000, 4.613769],[1103760000000, 4.600468],[1103846400000, 4.623120],[1103932800000, 4.648153],[1104019200000, 4.648153],[1104105600000, 4.648153],[1104192000000, 4.635208],[1104278400000, 4.684539],[1104364800000, 4.680319],[1104451200000, 4.674525]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });