$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1007164800000,0.17681],[1007251200000,0.17681],[1007337600000,0.17681],[1007424000000,0.17666],[1007510400000,0.17674],[1007596800000,0.17674],[1007683200000,0.17706],[1007769600000,0.17688],[1007856000000,0.17688],[1007942400000,0.17688],[1008028800000,0.17606],[1008115200000,0.17609],[1008201600000,0.17609],[1008288000000,0.17546],[1008374400000,0.17546],[1008460800000,0.17546],[1008547200000,0.17546],[1008633600000,0.17477],[1008720000000,0.17488],[1008806400000,0.17488],[1008892800000,0.17597],[1008979200000,0.17597],[1009065600000,0.17597],[1009152000000,0.17597],[1009238400000,0.1757],[1009324800000,0.1757],[1009411200000,0.17521],[1009497600000,0.17581],[1009584000000,0.17581],[1009670400000,0.17581],[1009756800000,0.17581]], 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, 0.176810],[1007164800000, 0.176810],[1007251200000, 0.176810],[1007337600000, 0.176810],[1007424000000, 0.176660],[1007510400000, 0.176740],[1007596800000, 0.176740],[1007683200000, 0.177060],[1007769600000, 0.176880],[1007856000000, 0.176880],[1007942400000, 0.176880],[1008028800000, 0.176060],[1008115200000, 0.176090],[1008201600000, 0.176090],[1008288000000, 0.175460],[1008374400000, 0.175460],[1008460800000, 0.175460],[1008547200000, 0.175460],[1008633600000, 0.174770],[1008720000000, 0.174880],[1008806400000, 0.174880],[1008892800000, 0.175970],[1008979200000, 0.175970],[1009065600000, 0.175970],[1009152000000, 0.175970],[1009238400000, 0.175700],[1009324800000, 0.175700],[1009411200000, 0.175210],[1009497600000, 0.175810],[1009584000000, 0.175810],[1009670400000, 0.175810],[1009756800000, 0.175810]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });