$(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: 'Курс CZK, грн'}, 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: 'Курс CZK', data: [[1522540800000,1.27484],[1522627200000,1.27484],[1522713600000,1.26777],[1522800000000,1.2775],[1522886400000,1.27232],[1522972800000,1.2618],[1523059200000,1.25662],[1523145600000,1.25662],[1523232000000,1.25662],[1523318400000,1.25662],[1523404800000,1.26735],[1523491200000,1.26788],[1523577600000,1.26493],[1523664000000,1.27151],[1523750400000,1.27151],[1523836800000,1.27151],[1523923200000,1.27736],[1524009600000,1.27626],[1524096000000,1.28016],[1524182400000,1.28215],[1524268800000,1.27163],[1524355200000,1.27163],[1524441600000,1.27163],[1524528000000,1.25836],[1524614400000,1.25684],[1524700800000,1.257],[1524787200000,1.25301],[1524873600000,1.24134],[1524960000000,1.24134],[1525046400000,1.24134]], 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: [[1522540800000, 1.274844],[1522540800000, 1.274844],[1522627200000, 1.274844],[1522713600000, 1.267765],[1522800000000, 1.277504],[1522886400000, 1.272318],[1522972800000, 1.261799],[1523059200000, 1.256616],[1523145600000, 1.256616],[1523232000000, 1.256616],[1523318400000, 1.256616],[1523404800000, 1.267351],[1523491200000, 1.267885],[1523577600000, 1.264930],[1523664000000, 1.271508],[1523750400000, 1.271508],[1523836800000, 1.271508],[1523923200000, 1.277358],[1524009600000, 1.276257],[1524096000000, 1.280159],[1524182400000, 1.282149],[1524268800000, 1.271628],[1524355200000, 1.271628],[1524441600000, 1.271628],[1524528000000, 1.258362],[1524614400000, 1.256842],[1524700800000, 1.256996],[1524787200000, 1.253012],[1524873600000, 1.241339],[1524960000000, 1.241339],[1525046400000, 1.241339]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });