$(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: [[970358400000,7.99044],[970444800000,7.99044],[970531200000,7.99247],[970617600000,7.93718],[970704000000,7.91124],[970790400000,7.93029],[970876800000,7.87235],[970963200000,7.87235],[971049600000,7.87235],[971136000000,7.87559],[971222400000,7.9176],[971308800000,7.94852],[971395200000,7.94547],[971481600000,7.99629],[971568000000,7.99629],[971654400000,7.99629],[971740800000,7.86732],[971827200000,7.82098],[971913600000,7.89401],[972000000000,7.8507],[972086400000,7.88042],[972172800000,7.88042],[972259200000,7.88042],[972345600000,7.90768],[972432000000,7.90246],[972518400000,7.90246],[972604800000,7.72636],[972691200000,7.7978],[972777600000,7.7978],[972864000000,7.7978],[972950400000,7.93458]], 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: [[970358400000, 7.990440],[970358400000, 7.990440],[970444800000, 7.990440],[970531200000, 7.992470],[970617600000, 7.937180],[970704000000, 7.911240],[970790400000, 7.930290],[970876800000, 7.872350],[970963200000, 7.872350],[971049600000, 7.872350],[971136000000, 7.875590],[971222400000, 7.917600],[971308800000, 7.948520],[971395200000, 7.945470],[971481600000, 7.996290],[971568000000, 7.996290],[971654400000, 7.996290],[971740800000, 7.867320],[971827200000, 7.820980],[971913600000, 7.894010],[972000000000, 7.850700],[972086400000, 7.880420],[972172800000, 7.880420],[972259200000, 7.880420],[972345600000, 7.907680],[972432000000, 7.902460],[972518400000, 7.902460],[972604800000, 7.726360],[972691200000, 7.797800],[972777600000, 7.797800],[972864000000, 7.797800],[972950400000, 7.934580]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });