$(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: [[1554076800000,0.42032],[1554163200000,0.41565],[1554249600000,0.41199],[1554336000000,0.41558],[1554422400000,0.41364],[1554508800000,0.40926],[1554595200000,0.40926],[1554681600000,0.40926],[1554768000000,0.40772],[1554854400000,0.41213],[1554940800000,0.41344],[1555027200000,0.41664],[1555113600000,0.41406],[1555200000000,0.41406],[1555286400000,0.41406],[1555372800000,0.4173],[1555459200000,0.41596],[1555545600000,0.41735],[1555632000000,0.41889],[1555718400000,0.41985],[1555804800000,0.41985],[1555891200000,0.41985],[1555977600000,0.41977],[1556064000000,0.41837],[1556150400000,0.41567],[1556236800000,0.41156],[1556323200000,0.40944],[1556409600000,0.40944],[1556496000000,0.40944],[1556582400000,0.40944]], 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: [[1554076800000, 0.420320],[1554076800000, 0.420320],[1554163200000, 0.415650],[1554249600000, 0.411990],[1554336000000, 0.415580],[1554422400000, 0.413640],[1554508800000, 0.409260],[1554595200000, 0.409260],[1554681600000, 0.409260],[1554768000000, 0.407720],[1554854400000, 0.412130],[1554940800000, 0.413440],[1555027200000, 0.416640],[1555113600000, 0.414060],[1555200000000, 0.414060],[1555286400000, 0.414060],[1555372800000, 0.417300],[1555459200000, 0.415960],[1555545600000, 0.417350],[1555632000000, 0.418890],[1555718400000, 0.419850],[1555804800000, 0.419850],[1555891200000, 0.419850],[1555977600000, 0.419770],[1556064000000, 0.418370],[1556150400000, 0.415670],[1556236800000, 0.411560],[1556323200000, 0.409440],[1556409600000, 0.409440],[1556496000000, 0.409440],[1556582400000, 0.409440]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });