$(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: [[1193875200000,10.4628],[1193961600000,10.5194],[1194048000000,10.5192],[1194134400000,10.5192],[1194220800000,10.5192],[1194307200000,10.5091],[1194393600000,10.5421],[1194480000000,10.6269],[1194566400000,10.6375],[1194652800000,10.5867],[1194739200000,10.5867],[1194825600000,10.5867],[1194912000000,10.4513],[1194998400000,10.4676],[1195084800000,10.4497],[1195171200000,10.3416],[1195257600000,10.3299],[1195344000000,10.3299],[1195430400000,10.3299],[1195516800000,10.358],[1195603200000,10.4112],[1195689600000,10.3947],[1195776000000,10.4219],[1195862400000,10.3833],[1195948800000,10.3833],[1196035200000,10.3833],[1196121600000,10.4418],[1196208000000,10.4535],[1196294400000,10.434],[1196380800000,10.413]], 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: [[1193875200000, 10.462835],[1193875200000, 10.462835],[1193961600000, 10.519375],[1194048000000, 10.519199],[1194134400000, 10.519199],[1194220800000, 10.519199],[1194307200000, 10.509107],[1194393600000, 10.542061],[1194480000000, 10.626944],[1194566400000, 10.637458],[1194652800000, 10.586686],[1194739200000, 10.586686],[1194825600000, 10.586686],[1194912000000, 10.451267],[1194998400000, 10.467625],[1195084800000, 10.449747],[1195171200000, 10.341603],[1195257600000, 10.329850],[1195344000000, 10.329850],[1195430400000, 10.329850],[1195516800000, 10.357996],[1195603200000, 10.411246],[1195689600000, 10.394706],[1195776000000, 10.421884],[1195862400000, 10.383263],[1195948800000, 10.383263],[1196035200000, 10.383263],[1196121600000, 10.441848],[1196208000000, 10.453511],[1196294400000, 10.433954],[1196380800000, 10.412998]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });