$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1007164800000,4.70393],[1007251200000,4.70393],[1007337600000,4.70393],[1007424000000,4.71909],[1007510400000,4.71949],[1007596800000,4.71949],[1007683200000,4.70895],[1007769600000,4.7206],[1007856000000,4.7206],[1007942400000,4.7206],[1008028800000,4.68829],[1008115200000,4.73419],[1008201600000,4.73419],[1008288000000,4.77433],[1008374400000,4.77433],[1008460800000,4.77433],[1008547200000,4.77433],[1008633600000,4.79181],[1008720000000,4.77221],[1008806400000,4.75686],[1008892800000,4.7338],[1008979200000,4.7338],[1009065600000,4.7338],[1009152000000,4.7338],[1009238400000,4.65608],[1009324800000,4.65608],[1009411200000,4.65696],[1009497600000,4.66957],[1009584000000,4.66957],[1009670400000,4.66957],[1009756800000,4.66957]], 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, 4.703930],[1007164800000, 4.703930],[1007251200000, 4.703930],[1007337600000, 4.703930],[1007424000000, 4.719090],[1007510400000, 4.719490],[1007596800000, 4.719490],[1007683200000, 4.708950],[1007769600000, 4.720600],[1007856000000, 4.720600],[1007942400000, 4.720600],[1008028800000, 4.688290],[1008115200000, 4.734190],[1008201600000, 4.734190],[1008288000000, 4.774330],[1008374400000, 4.774330],[1008460800000, 4.774330],[1008547200000, 4.774330],[1008633600000, 4.791810],[1008720000000, 4.772210],[1008806400000, 4.756860],[1008892800000, 4.733800],[1008979200000, 4.733800],[1009065600000, 4.733800],[1009152000000, 4.733800],[1009238400000, 4.656080],[1009324800000, 4.656080],[1009411200000, 4.656960],[1009497600000, 4.669570],[1009584000000, 4.669570],[1009670400000, 4.669570],[1009756800000, 4.669570]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });