$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1548979200000,7.45714],[1549065600000,7.39988],[1549152000000,7.39988],[1549238400000,7.39988],[1549324800000,7.33053],[1549411200000,7.25151],[1549497600000,7.15767],[1549584000000,7.10924],[1549670400000,7.0873],[1549756800000,7.0873],[1549843200000,7.0873],[1549929600000,7.09013],[1550016000000,7.05233],[1550102400000,7.07599],[1550188800000,7.0545],[1550275200000,7.08457],[1550361600000,7.08457],[1550448000000,7.08457],[1550534400000,7.1136],[1550620800000,7.07995],[1550707200000,7.07163],[1550793600000,7.07304],[1550880000000,7.0549],[1550966400000,7.0549],[1551052800000,7.0549],[1551139200000,7.06824],[1551225600000,7.08261],[1551312000000,7.12325]], 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, 7.457136],[1548979200000, 7.457136],[1549065600000, 7.399882],[1549152000000, 7.399882],[1549238400000, 7.399882],[1549324800000, 7.330534],[1549411200000, 7.251509],[1549497600000, 7.157673],[1549584000000, 7.109242],[1549670400000, 7.087296],[1549756800000, 7.087296],[1549843200000, 7.087296],[1549929600000, 7.090127],[1550016000000, 7.052328],[1550102400000, 7.075985],[1550188800000, 7.054503],[1550275200000, 7.084566],[1550361600000, 7.084566],[1550448000000, 7.084566],[1550534400000, 7.113601],[1550620800000, 7.079952],[1550707200000, 7.071634],[1550793600000, 7.073037],[1550880000000, 7.054901],[1550966400000, 7.054901],[1551052800000, 7.054901],[1551139200000, 7.068240],[1551225600000, 7.082613],[1551312000000, 7.123247]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });