$(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: [[967766400000,0.19598],[967852800000,0.19598],[967939200000,0.19598],[968025600000,0.19598],[968112000000,0.19598],[968198400000,0.19535],[968284800000,0.19509],[968371200000,0.19537],[968457600000,0.19523],[968544000000,0.19523],[968630400000,0.19523],[968716800000,0.19537],[968803200000,0.19551],[968889600000,0.19551],[968976000000,0.19577],[969062400000,0.19614],[969148800000,0.19614],[969235200000,0.19614],[969321600000,0.19614],[969408000000,0.19586],[969494400000,0.19551],[969580800000,0.19551],[969667200000,0.19573],[969753600000,0.19573],[969840000000,0.19573],[969926400000,0.19531],[970012800000,0.19553],[970099200000,0.1956],[970185600000,0.19603],[970272000000,0.19603]], 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: [[967766400000, 0.195980],[967766400000, 0.195980],[967852800000, 0.195980],[967939200000, 0.195980],[968025600000, 0.195980],[968112000000, 0.195980],[968198400000, 0.195350],[968284800000, 0.195090],[968371200000, 0.195370],[968457600000, 0.195230],[968544000000, 0.195230],[968630400000, 0.195230],[968716800000, 0.195370],[968803200000, 0.195510],[968889600000, 0.195510],[968976000000, 0.195770],[969062400000, 0.196140],[969148800000, 0.196140],[969235200000, 0.196140],[969321600000, 0.196140],[969408000000, 0.195860],[969494400000, 0.195510],[969580800000, 0.195510],[969667200000, 0.195730],[969753600000, 0.195730],[969840000000, 0.195730],[969926400000, 0.195310],[970012800000, 0.195530],[970099200000, 0.195600],[970185600000, 0.196030],[970272000000, 0.196030]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });