$(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: [[1443657600000,5.62041],[1443744000000,5.55649],[1443830400000,5.55935],[1443916800000,5.55935],[1444003200000,5.55935],[1444089600000,5.61566],[1444176000000,5.61743],[1444262400000,5.665],[1444348800000,5.66391],[1444435200000,5.79179],[1444521600000,5.79179],[1444608000000,5.79179],[1444694400000,5.87353],[1444780800000,5.88482],[1444867200000,5.88482],[1444953600000,5.86695],[1445040000000,5.70847],[1445126400000,5.70847],[1445212800000,5.70847],[1445299200000,5.7826],[1445385600000,5.88895],[1445472000000,6.00383],[1445558400000,5.88252],[1445644800000,5.88346],[1445731200000,5.88346],[1445817600000,5.88346],[1445904000000,5.90976],[1445990400000,5.89227],[1446076800000,5.90872],[1446163200000,5.86291],[1446249600000,5.94039]], 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: [[1443657600000, 5.620406],[1443657600000, 5.620406],[1443744000000, 5.556486],[1443830400000, 5.559349],[1443916800000, 5.559349],[1444003200000, 5.559349],[1444089600000, 5.615655],[1444176000000, 5.617429],[1444262400000, 5.665005],[1444348800000, 5.663907],[1444435200000, 5.791793],[1444521600000, 5.791793],[1444608000000, 5.791793],[1444694400000, 5.873529],[1444780800000, 5.884822],[1444867200000, 5.884822],[1444953600000, 5.866945],[1445040000000, 5.708465],[1445126400000, 5.708465],[1445212800000, 5.708465],[1445299200000, 5.782603],[1445385600000, 5.888948],[1445472000000, 6.003830],[1445558400000, 5.882524],[1445644800000, 5.883461],[1445731200000, 5.883461],[1445817600000, 5.883461],[1445904000000, 5.909762],[1445990400000, 5.892274],[1446076800000, 5.908719],[1446163200000, 5.862914],[1446249600000, 5.940388]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });