$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1548979200000,3.29826],[1549065600000,3.27107],[1549152000000,3.27107],[1549238400000,3.27107],[1549324800000,3.23471],[1549411200000,3.2122],[1549497600000,3.16999],[1549584000000,3.14493],[1549670400000,3.12415],[1549756800000,3.12415],[1549843200000,3.12415],[1549929600000,3.11636],[1550016000000,3.11462],[1550102400000,3.13783],[1550188800000,3.13612],[1550275200000,3.14066],[1550361600000,3.14066],[1550448000000,3.14066],[1550534400000,3.15833],[1550620800000,3.14893],[1550707200000,3.15639],[1550793600000,3.13459],[1550880000000,3.13357],[1550966400000,3.13357],[1551052800000,3.13357],[1551139200000,3.13951],[1551225600000,3.13686],[1551312000000,3.16444]], 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, 3.298264],[1548979200000, 3.298264],[1549065600000, 3.271071],[1549152000000, 3.271071],[1549238400000, 3.271071],[1549324800000, 3.234713],[1549411200000, 3.212204],[1549497600000, 3.169987],[1549584000000, 3.144929],[1549670400000, 3.124147],[1549756800000, 3.124147],[1549843200000, 3.124147],[1549929600000, 3.116363],[1550016000000, 3.114616],[1550102400000, 3.137834],[1550188800000, 3.136122],[1550275200000, 3.140662],[1550361600000, 3.140662],[1550448000000, 3.140662],[1550534400000, 3.158326],[1550620800000, 3.148930],[1550707200000, 3.156389],[1550793600000, 3.134589],[1550880000000, 3.133569],[1550966400000, 3.133569],[1551052800000, 3.133569],[1551139200000, 3.139509],[1551225600000, 3.136860],[1551312000000, 3.164437]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });