$(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: [[1433116800000,5.60079],[1433203200000,5.60079],[1433289600000,5.62851],[1433376000000,5.66832],[1433462400000,5.70402],[1433548800000,5.69165],[1433635200000,5.69165],[1433721600000,5.69165],[1433808000000,5.66883],[1433894400000,5.71653],[1433980800000,5.74912],[1434067200000,5.70416],[1434153600000,5.69391],[1434240000000,5.69391],[1434326400000,5.69391],[1434412800000,5.78772],[1434499200000,5.99273],[1434585600000,5.87341],[1434672000000,5.83766],[1434758400000,5.85825],[1434844800000,5.85825],[1434931200000,5.85825],[1435017600000,5.93311],[1435104000000,5.78397],[1435190400000,5.69867],[1435276800000,5.69231],[1435363200000,5.63771],[1435449600000,5.63771],[1435536000000,5.63771],[1435622400000,5.63771]], 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: [[1433116800000, 5.600785],[1433116800000, 5.600785],[1433203200000, 5.600785],[1433289600000, 5.628513],[1433376000000, 5.668316],[1433462400000, 5.704025],[1433548800000, 5.691646],[1433635200000, 5.691646],[1433721600000, 5.691646],[1433808000000, 5.668828],[1433894400000, 5.716529],[1433980800000, 5.749118],[1434067200000, 5.704162],[1434153600000, 5.693907],[1434240000000, 5.693907],[1434326400000, 5.693907],[1434412800000, 5.787717],[1434499200000, 5.992735],[1434585600000, 5.873413],[1434672000000, 5.837657],[1434758400000, 5.858245],[1434844800000, 5.858245],[1434931200000, 5.858245],[1435017600000, 5.933115],[1435104000000, 5.783969],[1435190400000, 5.698667],[1435276800000, 5.692313],[1435363200000, 5.637714],[1435449600000, 5.637714],[1435536000000, 5.637714],[1435622400000, 5.637714]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });