$(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: [[1004572800000,0.17836],[1004659200000,0.17808],[1004745600000,0.17808],[1004832000000,0.17808],[1004918400000,0.17808],[1005004800000,0.17819],[1005091200000,0.1785],[1005177600000,0.17845],[1005264000000,0.17817],[1005350400000,0.17817],[1005436800000,0.17817],[1005523200000,0.17817],[1005609600000,0.17817],[1005696000000,0.17814],[1005782400000,0.17801],[1005868800000,0.1775],[1005955200000,0.1775],[1006041600000,0.1775],[1006128000000,0.1775],[1006214400000,0.17729],[1006300800000,0.17654],[1006387200000,0.17643],[1006473600000,0.1763],[1006560000000,0.1763],[1006646400000,0.1763],[1006732800000,0.1763],[1006819200000,0.17616],[1006905600000,0.17628],[1006992000000,0.17635],[1007078400000,0.17681]], 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: [[1004572800000, 0.178360],[1004572800000, 0.178360],[1004659200000, 0.178080],[1004745600000, 0.178080],[1004832000000, 0.178080],[1004918400000, 0.178080],[1005004800000, 0.178190],[1005091200000, 0.178500],[1005177600000, 0.178450],[1005264000000, 0.178170],[1005350400000, 0.178170],[1005436800000, 0.178170],[1005523200000, 0.178170],[1005609600000, 0.178170],[1005696000000, 0.178140],[1005782400000, 0.178010],[1005868800000, 0.177500],[1005955200000, 0.177500],[1006041600000, 0.177500],[1006128000000, 0.177500],[1006214400000, 0.177290],[1006300800000, 0.176540],[1006387200000, 0.176430],[1006473600000, 0.176300],[1006560000000, 0.176300],[1006646400000, 0.176300],[1006732800000, 0.176300],[1006819200000, 0.176160],[1006905600000, 0.176280],[1006992000000, 0.176350],[1007078400000, 0.176810]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });