$(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: [[1251763200000,12.9369],[1251849600000,12.9581],[1251936000000,12.9753],[1252022400000,13.0862],[1252108800000,13.0762],[1252195200000,13.0762],[1252281600000,13.0762],[1252368000000,13.116],[1252454400000,13.2479],[1252540800000,13.2041],[1252627200000,13.2776],[1252713600000,13.3555],[1252800000000,13.3555],[1252886400000,13.3555],[1252972800000,13.2472],[1253059200000,13.1863],[1253145600000,13.1988],[1253232000000,13.2276],[1253318400000,13.0774],[1253404800000,13.0774],[1253491200000,13.0774],[1253577600000,12.9455],[1253664000000,13.0806],[1253750400000,13.1604],[1253836800000,12.9846],[1253923200000,12.7847],[1254009600000,12.7847],[1254096000000,12.7847],[1254182400000,12.7184],[1254268800000,12.781]], 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: [[1251763200000, 12.936859],[1251763200000, 12.936859],[1251849600000, 12.958108],[1251936000000, 12.975283],[1252022400000, 13.086198],[1252108800000, 13.076226],[1252195200000, 13.076226],[1252281600000, 13.076226],[1252368000000, 13.116010],[1252454400000, 13.247935],[1252540800000, 13.204070],[1252627200000, 13.277596],[1252713600000, 13.355539],[1252800000000, 13.355539],[1252886400000, 13.355539],[1252972800000, 13.247197],[1253059200000, 13.186308],[1253145600000, 13.198788],[1253232000000, 13.227583],[1253318400000, 13.077372],[1253404800000, 13.077372],[1253491200000, 13.077372],[1253577600000, 12.945475],[1253664000000, 13.080635],[1253750400000, 13.160387],[1253836800000, 12.984618],[1253923200000, 12.784735],[1254009600000, 12.784735],[1254096000000, 12.784735],[1254182400000, 12.718420],[1254268800000, 12.781036]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });