$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1430438400000,3.17562],[1430524800000,3.17562],[1430611200000,3.17562],[1430697600000,3.17562],[1430784000000,3.17562],[1430870400000,3.1473],[1430956800000,3.16306],[1431043200000,3.13876],[1431129600000,3.09542],[1431216000000,3.09542],[1431302400000,3.09542],[1431388800000,3.09542],[1431475200000,3.10794],[1431561600000,3.09292],[1431648000000,3.1466],[1431734400000,3.14084],[1431820800000,3.14084],[1431907200000,3.14084],[1431993600000,3.37499],[1432080000000,3.18547],[1432166400000,3.10189],[1432252800000,3.08698],[1432339200000,3.11965],[1432425600000,3.11965],[1432512000000,3.11965],[1432598400000,3.11199],[1432684800000,3.13985],[1432771200000,null],[1432857600000,3.07436],[1432944000000,3.10068],[1433030400000,3.10068]], 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, 3.175622],[1430438400000, 3.175622],[1430524800000, 3.175622],[1430611200000, 3.175622],[1430697600000, 3.175622],[1430784000000, 3.175622],[1430870400000, 3.147296],[1430956800000, 3.163064],[1431043200000, 3.138757],[1431129600000, 3.095417],[1431216000000, 3.095417],[1431302400000, 3.095417],[1431388800000, 3.095417],[1431475200000, 3.107940],[1431561600000, 3.092922],[1431648000000, 3.146601],[1431734400000, 3.140836],[1431820800000, 3.140836],[1431907200000, 3.140836],[1431993600000, 3.374993],[1432080000000, 3.185465],[1432166400000, 3.101895],[1432252800000, 3.086976],[1432339200000, 3.119646],[1432425600000, 3.119646],[1432512000000, 3.119646],[1432598400000, 3.111995],[1432684800000, 3.139852],[1432857600000, 3.074365],[1432944000000, 3.100677],[1433030400000, 3.100677]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });