$(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: [[1095120000000,4.21438],[1095206400000,4.21476],[1095292800000,4.21476],[1095379200000,4.17621],[1095465600000,4.18787],[1095552000000,4.18787],[1095638400000,4.18787],[1095724800000,4.16385],[1095811200000,4.21747],[1095897600000,4.19995],[1095984000000,4.22372],[1096070400000,4.22267],[1096156800000,4.22267],[1096243200000,4.22267],[1096329600000,4.1983],[1096416000000,4.22126],[1096502400000,4.21734],[1096588800000,4.24259],[1096675200000,null],[1096761600000,null],[1096848000000,4.2519],[1096934400000,4.20804],[1097020800000,4.20437],[1097107200000,4.1938],[1097193600000,4.20237],[1097280000000,4.20237],[1097366400000,4.20237],[1097452800000,4.2087],[1097539200000,4.24404],[1097625600000,4.21854],[1097712000000,4.21093],[1097798400000,4.25163],[1097884800000,null],[1097971200000,4.27387],[1098057600000,4.27387],[1098144000000,4.30338],[1098230400000,4.31461],[1098316800000,4.34565],[1098403200000,4.35364],[1098489600000,4.34827],[1098576000000,4.34827],[1098662400000,4.34827],[1098748800000,4.42912],[1098835200000,4.42433],[1098921600000,4.43057],[1099008000000,4.40395],[1099094400000,4.41786],[1099180800000,4.41786],[1099267200000,4.41786],[1099353600000,4.41619],[1099440000000,4.40159],[1099526400000,4.41453],[1099612800000,null],[1099699200000,null],[1099785600000,null],[1099872000000,null],[1099958400000,null],[1100044800000,4.52371],[1100131200000,4.52371],[1100217600000,4.50255],[1100304000000,4.50914],[1100390400000,4.50914],[1100476800000,4.50914],[1100563200000,4.51032],[1100649600000,4.51678],[1100736000000,4.54638],[1100822400000,4.55527],[1100908800000,4.55928],[1100995200000,4.55928],[1101081600000,4.55928],[1101168000000,4.56262],[1101254400000,4.58435],[1101340800000,4.60644],[1101427200000,4.63911],[1101513600000,4.63776],[1101600000000,4.63776],[1101686400000,4.63776],[1101772800000,4.63357],[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]], 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: [[1095206400000, 4.205507],[1095206400000, 4.205507],[1097798400000, 4.295542],[1100476800000, 4.538939],[1103068800000, 4.629228]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });