$(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: [[1095120000000,4.10807],[1095206400000,4.08955],[1095292800000,4.08955],[1095379200000,4.1053],[1095465600000,4.08882],[1095552000000,4.08882],[1095638400000,4.08882],[1095724800000,4.08592],[1095811200000,4.11027],[1095897600000,4.1261],[1095984000000,4.13921],[1096070400000,4.14893],[1096156800000,4.14893],[1096243200000,4.14893],[1096329600000,4.15671],[1096416000000,4.17629],[1096502400000,4.17641],[1096588800000,4.18437],[1096675200000,null],[1096761600000,null],[1096848000000,4.20683],[1096934400000,4.18432],[1097020800000,4.18524],[1097107200000,4.20245],[1097193600000,4.22604],[1097280000000,4.22604],[1097366400000,4.22604],[1097452800000,4.22339],[1097539200000,4.23229],[1097625600000,4.22181],[1097712000000,4.19006],[1097798400000,4.22837],[1097884800000,null],[1097971200000,4.21238],[1098057600000,4.21238],[1098144000000,4.22752],[1098230400000,4.21435],[1098316800000,4.24974],[1098403200000,4.25641],[1098489600000,4.26509],[1098576000000,4.26509],[1098662400000,4.26509],[1098748800000,4.34326],[1098835200000,4.33776],[1098921600000,4.34353],[1099008000000,4.32211],[1099094400000,4.34767],[1099180800000,4.34767],[1099267200000,4.34767],[1099353600000,4.34584],[1099440000000,4.33312],[1099526400000,4.34648],[1099612800000,null],[1099699200000,null],[1099785600000,null],[1099872000000,null],[1099958400000,null],[1100044800000,4.44573],[1100131200000,4.44573],[1100217600000,4.44],[1100304000000,4.45378],[1100390400000,4.45378],[1100476800000,4.45378],[1100563200000,4.43782],[1100649600000,4.43929],[1100736000000,4.45754],[1100822400000,4.41556],[1100908800000,4.41167],[1100995200000,4.41167],[1101081600000,4.41167],[1101168000000,4.45677],[1101254400000,4.47852],[1101340800000,4.48963],[1101427200000,4.50237],[1101513600000,4.49386],[1101600000000,4.49386],[1101686400000,4.49386],[1101772800000,4.48429],[1101859200000,4.46917],[1101945600000,4.45192],[1102032000000,4.48864],[1102118400000,4.43072],[1102204800000,4.43072],[1102291200000,4.43072],[1102377600000,4.43559],[1102464000000,4.44197],[1102550400000,4.32792],[1102636800000,4.3378],[1102723200000,null],[1102809600000,null],[1102896000000,null],[1102982400000,4.32672],[1103068800000,4.3159],[1103155200000,4.30913],[1103241600000,4.32622],[1103328000000,4.30417],[1103414400000,4.30417],[1103500800000,4.30417],[1103587200000,4.32073],[1103673600000,4.32695],[1103760000000,4.30955],[1103846400000,4.28643],[1103932800000,4.32031],[1104019200000,4.32031],[1104105600000,4.32031],[1104192000000,4.31709],[1104278400000,4.36747],[1104364800000,4.35482]], 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.122155],[1095206400000, 4.122155],[1097798400000, 4.248118],[1100476800000, 4.437769],[1103068800000, 4.359227]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });