$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1548979200000,20.6151],[1549065600000,20.441],[1549152000000,20.441],[1549238400000,20.441],[1549324800000,20.2637],[1549411200000,20.1286],[1549497600000,19.9253],[1549584000000,19.88],[1549670400000,19.8496],[1549756800000,19.8496],[1549843200000,19.8496],[1549929600000,19.9164],[1550016000000,19.8954],[1550102400000,19.9677],[1550188800000,19.9894],[1550275200000,20.0622],[1550361600000,20.0622],[1550448000000,20.0622],[1550534400000,20.0535],[1550620800000,20.0271],[1550707200000,20.0461],[1550793600000,19.9705],[1550880000000,19.9668],[1550966400000,19.9668],[1551052800000,19.9668],[1551139200000,20.0038],[1551225600000,19.9941],[1551312000000,20.0273]], 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: [[1548979200000, 20.615056],[1548979200000, 20.615056],[1549065600000, 20.441025],[1549152000000, 20.441025],[1549238400000, 20.441025],[1549324800000, 20.263681],[1549411200000, 20.128631],[1549497600000, 19.925340],[1549584000000, 19.880002],[1549670400000, 19.849592],[1549756800000, 19.849592],[1549843200000, 19.849592],[1549929600000, 19.916409],[1550016000000, 19.895438],[1550102400000, 19.967664],[1550188800000, 19.989447],[1550275200000, 20.062204],[1550361600000, 20.062204],[1550448000000, 20.062204],[1550534400000, 20.053528],[1550620800000, 20.027062],[1550707200000, 20.046140],[1550793600000, 19.970549],[1550880000000, 19.966788],[1550966400000, 19.966788],[1551052800000, 19.966788],[1551139200000, 20.003844],[1551225600000, 19.994106],[1551312000000, 20.027343]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });