$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1235865600000,11.2987],[1235952000000,11.2987],[1236038400000,11.2864],[1236124800000,11.2644],[1236211200000,11.2264],[1236297600000,11.241],[1236384000000,11.3171],[1236470400000,11.3171],[1236556800000,11.3171],[1236643200000,11.3171],[1236729600000,null],[1236816000000,11.2969],[1236902400000,11.3379],[1236988800000,11.3513],[1237075200000,11.3513],[1237161600000,11.3513],[1237248000000,11.404],[1237334400000,11.3761],[1237420800000,11.3824],[1237507200000,11.6676],[1237593600000,11.6355],[1237680000000,11.6355],[1237766400000,11.6355],[1237852800000,11.648],[1237939200000,11.6017],[1238025600000,11.5923],[1238112000000,11.6172],[1238198400000,11.516],[1238284800000,11.516],[1238371200000,11.516],[1238457600000,11.4736]], 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: [[1235865600000, 11.298705],[1235865600000, 11.298705],[1235952000000, 11.298705],[1236038400000, 11.286417],[1236124800000, 11.264391],[1236211200000, 11.226355],[1236297600000, 11.240958],[1236384000000, 11.317139],[1236470400000, 11.317139],[1236556800000, 11.317139],[1236643200000, 11.317139],[1236816000000, 11.296915],[1236902400000, 11.337919],[1236988800000, 11.351340],[1237075200000, 11.351340],[1237161600000, 11.351340],[1237248000000, 11.403978],[1237334400000, 11.376127],[1237420800000, 11.382400],[1237507200000, 11.667586],[1237593600000, 11.635462],[1237680000000, 11.635462],[1237766400000, 11.635462],[1237852800000, 11.648030],[1237939200000, 11.601732],[1238025600000, 11.592265],[1238112000000, 11.617153],[1238198400000, 11.515982],[1238284800000, 11.515982],[1238371200000, 11.515982],[1238457600000, 11.473614]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });