$(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: [[1036108800000,0.16781],[1036195200000,0.16781],[1036281600000,0.16781],[1036368000000,0.16781],[1036454400000,0.16776],[1036540800000,0.16767],[1036627200000,0.16775],[1036713600000,0.16775],[1036800000000,0.16775],[1036886400000,0.16775],[1036972800000,0.16775],[1037059200000,0.1675],[1037145600000,0.16754],[1037232000000,0.16752],[1037318400000,0.1675],[1037404800000,0.1675],[1037491200000,0.1675],[1037577600000,0.1675],[1037664000000,0.1675],[1037750400000,0.1675],[1037836800000,0.16749],[1037923200000,0.16751],[1038009600000,0.16751],[1038096000000,0.16751],[1038182400000,0.1674],[1038268800000,0.1674],[1038355200000,0.16741],[1038441600000,0.16741],[1038528000000,0.16742],[1038614400000,0.16742]], 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: [[1036108800000, 0.167810],[1036108800000, 0.167810],[1036195200000, 0.167810],[1036281600000, 0.167810],[1036368000000, 0.167810],[1036454400000, 0.167760],[1036540800000, 0.167670],[1036627200000, 0.167750],[1036713600000, 0.167750],[1036800000000, 0.167750],[1036886400000, 0.167750],[1036972800000, 0.167750],[1037059200000, 0.167500],[1037145600000, 0.167540],[1037232000000, 0.167520],[1037318400000, 0.167500],[1037404800000, 0.167500],[1037491200000, 0.167500],[1037577600000, 0.167500],[1037664000000, 0.167500],[1037750400000, 0.167500],[1037836800000, 0.167490],[1037923200000, 0.167510],[1038009600000, 0.167510],[1038096000000, 0.167510],[1038182400000, 0.167400],[1038268800000, 0.167400],[1038355200000, 0.167410],[1038441600000, 0.167410],[1038528000000, 0.167420],[1038614400000, 0.167420]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });