$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1007164800000,5.2865],[1007251200000,5.2865],[1007337600000,5.2865],[1007424000000,5.2875],[1007510400000,5.2915],[1007596800000,5.2915],[1007683200000,5.2975],[1007769600000,5.2975],[1007856000000,5.2975],[1007942400000,5.2975],[1008028800000,5.2975],[1008115200000,5.2967],[1008201600000,5.2967],[1008288000000,5.2954],[1008374400000,5.2954],[1008460800000,5.2954],[1008547200000,5.2954],[1008633600000,5.2954],[1008720000000,5.2954],[1008806400000,5.2954],[1008892800000,5.2933],[1008979200000,5.2933],[1009065600000,5.2933],[1009152000000,5.2933],[1009238400000,5.2922],[1009324800000,5.2922],[1009411200000,5.2932],[1009497600000,5.2985],[1009584000000,5.2985],[1009670400000,5.2985],[1009756800000,5.2985]], 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, 5.286500],[1007164800000, 5.286500],[1007251200000, 5.286500],[1007337600000, 5.286500],[1007424000000, 5.287500],[1007510400000, 5.291500],[1007596800000, 5.291500],[1007683200000, 5.297500],[1007769600000, 5.297500],[1007856000000, 5.297500],[1007942400000, 5.297500],[1008028800000, 5.297500],[1008115200000, 5.296700],[1008201600000, 5.296700],[1008288000000, 5.295400],[1008374400000, 5.295400],[1008460800000, 5.295400],[1008547200000, 5.295400],[1008633600000, 5.295400],[1008720000000, 5.295400],[1008806400000, 5.295400],[1008892800000, 5.293300],[1008979200000, 5.293300],[1009065600000, 5.293300],[1009152000000, 5.293300],[1009238400000, 5.292200],[1009324800000, 5.292200],[1009411200000, 5.293200],[1009497600000, 5.298500],[1009584000000, 5.298500],[1009670400000, 5.298500],[1009756800000, 5.298500]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });