$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1491004800000,6.83519],[1491091200000,6.83519],[1491177600000,6.83519],[1491264000000,6.81449],[1491350400000,6.78499],[1491436800000,6.85295],[1491523200000,6.83807],[1491609600000,6.78675],[1491696000000,6.78675],[1491782400000,6.78675],[1491868800000,6.73586],[1491955200000,6.73137],[1492041600000,6.70864],[1492128000000,6.72713],[1492214400000,6.71407],[1492300800000,6.71407],[1492387200000,6.71407],[1492473600000,6.71407],[1492560000000,6.76906],[1492646400000,6.78246],[1492732800000,6.75075],[1492819200000,6.69336],[1492905600000,6.69336],[1492992000000,6.69336],[1493078400000,6.82122],[1493164800000,6.86129],[1493251200000,6.85667],[1493337600000,6.84353],[1493424000000,6.8755],[1493510400000,6.8755]], 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, 6.835194],[1491004800000, 6.835194],[1491091200000, 6.835194],[1491177600000, 6.835194],[1491264000000, 6.814487],[1491350400000, 6.784994],[1491436800000, 6.852949],[1491523200000, 6.838070],[1491609600000, 6.786754],[1491696000000, 6.786754],[1491782400000, 6.786754],[1491868800000, 6.735857],[1491955200000, 6.731372],[1492041600000, 6.708638],[1492128000000, 6.727127],[1492214400000, 6.714068],[1492300800000, 6.714068],[1492387200000, 6.714068],[1492473600000, 6.714068],[1492560000000, 6.769064],[1492646400000, 6.782460],[1492732800000, 6.750754],[1492819200000, 6.693362],[1492905600000, 6.693362],[1492992000000, 6.693362],[1493078400000, 6.821223],[1493164800000, 6.861289],[1493251200000, 6.856671],[1493337600000, 6.843528],[1493424000000, 6.875497],[1493510400000, 6.875497]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });