$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1430438400000,21.1324],[1430524800000,21.1324],[1430611200000,21.1324],[1430697600000,21.1324],[1430784000000,21.1324],[1430870400000,21.1331],[1430956800000,21.0255],[1431043200000,20.7225],[1431129600000,20.5899],[1431216000000,20.5899],[1431302400000,20.5899],[1431388800000,20.5899],[1431475200000,20.6376],[1431561600000,20.5708],[1431648000000,20.5693],[1431734400000,20.6982],[1431820800000,20.6982],[1431907200000,20.6982],[1431993600000,22.1187],[1432080000000,21.2526],[1432166400000,20.8127],[1432252800000,20.6788],[1432339200000,20.8369],[1432425600000,20.8369],[1432512000000,20.8369],[1432598400000,21.1337],[1432684800000,21.4235],[1432771200000,null],[1432857600000,21.0482],[1432944000000,21.0849],[1433030400000,21.0849]], 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: [[1430438400000, 21.132395],[1430438400000, 21.132395],[1430524800000, 21.132395],[1430611200000, 21.132395],[1430697600000, 21.132395],[1430784000000, 21.132395],[1430870400000, 21.133059],[1430956800000, 21.025503],[1431043200000, 20.722460],[1431129600000, 20.589862],[1431216000000, 20.589862],[1431302400000, 20.589862],[1431388800000, 20.589862],[1431475200000, 20.637560],[1431561600000, 20.570787],[1431648000000, 20.569333],[1431734400000, 20.698242],[1431820800000, 20.698242],[1431907200000, 20.698242],[1431993600000, 22.118662],[1432080000000, 21.252580],[1432166400000, 20.812662],[1432252800000, 20.678827],[1432339200000, 20.836853],[1432425600000, 20.836853],[1432512000000, 20.836853],[1432598400000, 21.133675],[1432684800000, 21.423472],[1432857600000, 21.048227],[1432944000000, 21.084888],[1433030400000, 21.084888]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });