$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1180656000000,6.79376],[1180742400000,6.78518],[1180828800000,6.78518],[1180915200000,6.78518],[1181001600000,6.80841],[1181088000000,6.83366],[1181174400000,6.82407],[1181260800000,6.80235],[1181347200000,6.74125],[1181433600000,6.74125],[1181520000000,6.74125],[1181606400000,null],[1181692800000,6.73923],[1181779200000,6.70993],[1181865600000,null],[1181952000000,null],[1182038400000,6.72357],[1182124800000,6.72357],[1182211200000,6.76902],[1182297600000,6.76851],[1182384000000,null],[1182470400000,6.76548],[1182556800000,6.7877],[1182643200000,6.7877],[1182729600000,6.7877],[1182816000000,6.79781],[1182902400000,6.7973],[1182988800000,6.78619],[1183075200000,6.78619],[1183161600000,6.78619]], 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: [[1180656000000, 6.793765],[1180656000000, 6.793765],[1180742400000, 6.785180],[1180828800000, 6.785180],[1180915200000, 6.785180],[1181001600000, 6.808410],[1181088000000, 6.833660],[1181174400000, 6.824065],[1181260800000, 6.802350],[1181347200000, 6.741245],[1181433600000, 6.741245],[1181520000000, 6.741245],[1181692800000, 6.739225],[1181779200000, 6.709935],[1182038400000, 6.723570],[1182124800000, 6.723570],[1182211200000, 6.769020],[1182297600000, 6.768515],[1182470400000, 6.765485],[1182556800000, 6.787705],[1182643200000, 6.787705],[1182729600000, 6.787705],[1182816000000, 6.797805],[1182902400000, 6.797300],[1182988800000, 6.786190],[1183075200000, 6.786190],[1183161600000, 6.786190]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });