$(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: [[1007164800000,7.54076],[1007251200000,7.54076],[1007337600000,7.54076],[1007424000000,7.52047],[1007510400000,7.52709],[1007596800000,7.52709],[1007683200000,7.52769],[1007769600000,7.56386],[1007856000000,7.56386],[1007942400000,7.56386],[1008028800000,7.56419],[1008115200000,7.62718],[1008201600000,7.62718],[1008288000000,7.67948],[1008374400000,7.67948],[1008460800000,7.67948],[1008547200000,7.67948],[1008633600000,7.71255],[1008720000000,7.7108],[1008806400000,7.67607],[1008892800000,7.66483],[1008979200000,7.66483],[1009065600000,7.66483],[1009152000000,7.66483],[1009238400000,7.59928],[1009324800000,7.59928],[1009411200000,7.60071],[1009497600000,7.6739],[1009584000000,7.6739],[1009670400000,7.6739],[1009756800000,7.6739]], 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: [[1007164800000, 7.540760],[1007164800000, 7.540760],[1007251200000, 7.540760],[1007337600000, 7.540760],[1007424000000, 7.520470],[1007510400000, 7.527090],[1007596800000, 7.527090],[1007683200000, 7.527690],[1007769600000, 7.563860],[1007856000000, 7.563860],[1007942400000, 7.563860],[1008028800000, 7.564190],[1008115200000, 7.627180],[1008201600000, 7.627180],[1008288000000, 7.679480],[1008374400000, 7.679480],[1008460800000, 7.679480],[1008547200000, 7.679480],[1008633600000, 7.712550],[1008720000000, 7.710800],[1008806400000, 7.676070],[1008892800000, 7.664830],[1008979200000, 7.664830],[1009065600000, 7.664830],[1009152000000, 7.664830],[1009238400000, 7.599280],[1009324800000, 7.599280],[1009411200000, 7.600710],[1009497600000, 7.673900],[1009584000000, 7.673900],[1009670400000, 7.673900],[1009756800000, 7.673900]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });