$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1501545600000,33.9073],[1501632000000,34.1485],[1501718400000,34.2656],[1501804800000,33.9916],[1501891200000,33.9725],[1501977600000,33.9725],[1502064000000,33.9725],[1502150400000,33.6357],[1502236800000,33.5257],[1502323200000,33.405],[1502409600000,33.3791],[1502496000000,33.351],[1502582400000,33.351],[1502668800000,33.351],[1502755200000,33.2507],[1502841600000,32.9833],[1502928000000,32.9098],[1503014400000,32.8234],[1503100800000,32.8176],[1503187200000,32.8176],[1503273600000,32.8176],[1503360000000,null],[1503446400000,32.6663],[1503532800000,32.7149],[1503619200000,32.7149],[1503705600000,32.7149],[1503792000000,32.7149],[1503878400000,32.7149],[1503964800000,32.9559],[1504051200000,32.9703],[1504137600000,33.0427]], 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: [[1501545600000, 33.907304],[1501545600000, 33.907304],[1501632000000, 34.148451],[1501718400000, 34.265647],[1501804800000, 33.991565],[1501891200000, 33.972469],[1501977600000, 33.972469],[1502064000000, 33.972469],[1502150400000, 33.635710],[1502236800000, 33.525709],[1502323200000, 33.405006],[1502409600000, 33.379053],[1502496000000, 33.350989],[1502582400000, 33.350989],[1502668800000, 33.350989],[1502755200000, 33.250691],[1502841600000, 32.983290],[1502928000000, 32.909845],[1503014400000, 32.823419],[1503100800000, 32.817619],[1503187200000, 32.817619],[1503273600000, 32.817619],[1503446400000, 32.666253],[1503532800000, 32.714912],[1503619200000, 32.714912],[1503705600000, 32.714912],[1503792000000, 32.714912],[1503878400000, 32.714912],[1503964800000, 32.955925],[1504051200000, 32.970264],[1504137600000, 33.042713]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });