$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1554076800000,1.568],[1554163200000,1.56645],[1554249600000,1.55052],[1554336000000,1.55653],[1554422400000,1.55082],[1554508800000,1.53541],[1554595200000,1.53541],[1554681600000,1.53541],[1554768000000,1.52729],[1554854400000,1.52817],[1554940800000,1.52561],[1555027200000,1.52431],[1555113600000,1.51373],[1555200000000,1.51373],[1555286400000,1.51373],[1555372800000,1.50874],[1555459200000,1.49858],[1555545600000,1.49266],[1555632000000,1.49858],[1555718400000,1.50093],[1555804800000,1.50093],[1555891200000,1.50093],[1555977600000,1.4971],[1556064000000,1.49167],[1556150400000,1.4881],[1556236800000,1.48779],[1556323200000,1.48068],[1556409600000,1.48068],[1556496000000,1.48068],[1556582400000,1.48068]], 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, 1.568004],[1554076800000, 1.568004],[1554163200000, 1.566448],[1554249600000, 1.550524],[1554336000000, 1.556529],[1554422400000, 1.550816],[1554508800000, 1.535413],[1554595200000, 1.535413],[1554681600000, 1.535413],[1554768000000, 1.527287],[1554854400000, 1.528172],[1554940800000, 1.525606],[1555027200000, 1.524305],[1555113600000, 1.513731],[1555200000000, 1.513731],[1555286400000, 1.513731],[1555372800000, 1.508743],[1555459200000, 1.498583],[1555545600000, 1.492660],[1555632000000, 1.498582],[1555718400000, 1.500926],[1555804800000, 1.500926],[1555891200000, 1.500926],[1555977600000, 1.497102],[1556064000000, 1.491667],[1556150400000, 1.488104],[1556236800000, 1.487795],[1556323200000, 1.480678],[1556409600000, 1.480678],[1556496000000, 1.480678],[1556582400000, 1.480678]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });