$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1546300800000,0.098611],[1546387200000,0.098611],[1546473600000,0.098611],[1546560000000,0.096834],[1546646400000,0.098295],[1546732800000,0.098295],[1546819200000,0.098295],[1546905600000,0.098295],[1546992000000,0.099516],[1547078400000,0.10009],[1547164800000,0.101537],[1547251200000,0.100963],[1547337600000,0.100963],[1547424000000,0.100963],[1547510400000,0.100005],[1547596800000,0.099683],[1547683200000,0.099194],[1547769600000,0.099813],[1547856000000,0.100298],[1547942400000,0.100298],[1548028800000,0.100298],[1548115200000,0.09995],[1548201600000,0.099607],[1548288000000,0.09899],[1548374400000,0.098966],[1548460800000,0.099169],[1548547200000,0.099169],[1548633600000,0.099169],[1548720000000,0.09993],[1548806400000,0.100001],[1548892800000,0.100217]], 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: [[1546300800000, 0.098611],[1546300800000, 0.098611],[1546387200000, 0.098611],[1546473600000, 0.098611],[1546560000000, 0.096834],[1546646400000, 0.098295],[1546732800000, 0.098295],[1546819200000, 0.098295],[1546905600000, 0.098295],[1546992000000, 0.099516],[1547078400000, 0.100090],[1547164800000, 0.101537],[1547251200000, 0.100963],[1547337600000, 0.100963],[1547424000000, 0.100963],[1547510400000, 0.100005],[1547596800000, 0.099683],[1547683200000, 0.099194],[1547769600000, 0.099813],[1547856000000, 0.100298],[1547942400000, 0.100298],[1548028800000, 0.100298],[1548115200000, 0.099950],[1548201600000, 0.099607],[1548288000000, 0.098990],[1548374400000, 0.098966],[1548460800000, 0.099169],[1548547200000, 0.099169],[1548633600000, 0.099169],[1548720000000, 0.099930],[1548806400000, 0.100001],[1548892800000, 0.100217]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });