$(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: [[1491004800000,0.48287],[1491091200000,0.48287],[1491177600000,0.48287],[1491264000000,0.48138],[1491350400000,0.47951],[1491436800000,0.48587],[1491523200000,0.48019],[1491609600000,0.47389],[1491696000000,0.47389],[1491782400000,0.47389],[1491868800000,0.46931],[1491955200000,0.47219],[1492041600000,0.47353],[1492128000000,0.47462],[1492214400000,0.47628],[1492300800000,0.47628],[1492387200000,0.47628],[1492473600000,0.47628],[1492560000000,0.47955],[1492646400000,0.47685],[1492732800000,0.47427],[1492819200000,0.47541],[1492905600000,0.47541],[1492992000000,0.47541],[1493078400000,0.47564],[1493164800000,0.47689],[1493251200000,0.47216],[1493337600000,0.46605],[1493424000000,0.46611],[1493510400000,0.46611]], 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: [[1491004800000, 0.482870],[1491004800000, 0.482870],[1491091200000, 0.482870],[1491177600000, 0.482870],[1491264000000, 0.481380],[1491350400000, 0.479510],[1491436800000, 0.485870],[1491523200000, 0.480190],[1491609600000, 0.473890],[1491696000000, 0.473890],[1491782400000, 0.473890],[1491868800000, 0.469310],[1491955200000, 0.472190],[1492041600000, 0.473530],[1492128000000, 0.474620],[1492214400000, 0.476280],[1492300800000, 0.476280],[1492387200000, 0.476280],[1492473600000, 0.476280],[1492560000000, 0.479550],[1492646400000, 0.476850],[1492732800000, 0.474270],[1492819200000, 0.475410],[1492905600000, 0.475410],[1492992000000, 0.475410],[1493078400000, 0.475640],[1493164800000, 0.476890],[1493251200000, 0.472160],[1493337600000, 0.466050],[1493424000000, 0.466110],[1493510400000, 0.466110]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });