$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1554076800000,27.3405],[1554163200000,27.3271],[1554249600000,26.9862],[1554336000000,27.1705],[1554422400000,27.051],[1554508800000,26.7639],[1554595200000,26.7639],[1554681600000,26.7639],[1554768000000,26.6465],[1554854400000,26.7127],[1554940800000,26.7629],[1555027200000,26.7365],[1555113600000,26.7021],[1555200000000,26.7021],[1555286400000,26.7021],[1555372800000,26.7346],[1555459200000,26.5672],[1555545600000,26.4558],[1555632000000,26.5241],[1555718400000,26.5402],[1555804800000,26.5402],[1555891200000,26.5402],[1555977600000,26.4625],[1556064000000,26.1645],[1556150400000,26.112],[1556236800000,26.0456],[1556323200000,25.936],[1556409600000,25.936],[1556496000000,25.936],[1556582400000,25.936]], 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, 27.340513],[1554076800000, 27.340513],[1554163200000, 27.327065],[1554249600000, 26.986205],[1554336000000, 27.170538],[1554422400000, 27.050967],[1554508800000, 26.763941],[1554595200000, 26.763941],[1554681600000, 26.763941],[1554768000000, 26.646507],[1554854400000, 26.712679],[1554940800000, 26.762855],[1555027200000, 26.736474],[1555113600000, 26.702079],[1555200000000, 26.702079],[1555286400000, 26.702079],[1555372800000, 26.734582],[1555459200000, 26.567175],[1555545600000, 26.455814],[1555632000000, 26.524081],[1555718400000, 26.540206],[1555804800000, 26.540206],[1555891200000, 26.540206],[1555977600000, 26.462525],[1556064000000, 26.164486],[1556150400000, 26.111984],[1556236800000, 26.045636],[1556323200000, 25.935952],[1556409600000, 25.935952],[1556496000000, 25.935952],[1556582400000, 25.935952]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });