$(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: [[1159660800000,9.43382],[1159747200000,9.43382],[1159833600000,9.44966],[1159920000000,9.54047],[1160006400000,9.49936],[1160092800000,9.50171],[1160179200000,9.50412],[1160265600000,9.50412],[1160352000000,9.50412],[1160438400000,9.42054],[1160524800000,9.38376],[1160611200000,9.37361],[1160697600000,9.37088],[1160784000000,9.39761],[1160870400000,9.39761],[1160956800000,9.39761],[1161043200000,9.39509],[1161129600000,9.42847],[1161216000000,9.45335],[1161302400000,9.43523],[1161388800000,9.52053],[1161475200000,9.52053],[1161561600000,9.52053],[1161648000000,9.45538],[1161734400000,9.45043],[1161820800000,9.47911],[1161907200000,9.51495],[1161993600000,9.55102],[1162080000000,9.55102],[1162166400000,9.55102],[1162252800000,9.6139]], 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: [[1159660800000, 9.433820],[1159660800000, 9.433820],[1159747200000, 9.433820],[1159833600000, 9.449661],[1159920000000, 9.540470],[1160006400000, 9.499362],[1160092800000, 9.501708],[1160179200000, 9.504117],[1160265600000, 9.504117],[1160352000000, 9.504117],[1160438400000, 9.420537],[1160524800000, 9.383757],[1160611200000, 9.373607],[1160697600000, 9.370880],[1160784000000, 9.397613],[1160870400000, 9.397613],[1160956800000, 9.397613],[1161043200000, 9.395087],[1161129600000, 9.428473],[1161216000000, 9.453347],[1161302400000, 9.435230],[1161388800000, 9.520529],[1161475200000, 9.520529],[1161561600000, 9.520529],[1161648000000, 9.455383],[1161734400000, 9.450429],[1161820800000, 9.479111],[1161907200000, 9.514950],[1161993600000, 9.551021],[1162080000000, 9.551021],[1162166400000, 9.551021],[1162252800000, 9.613900]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });