$(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: [[1446336000000,5.94039],[1446422400000,5.94039],[1446508800000,5.96971],[1446595200000,5.93938],[1446681600000,5.95595],[1446768000000,5.88551],[1446854400000,5.78362],[1446940800000,5.78362],[1447027200000,5.78362],[1447113600000,5.75199],[1447200000000,5.74559],[1447286400000,5.77669],[1447372800000,5.81524],[1447459200000,5.85014],[1447545600000,5.85014],[1447632000000,5.85014],[1447718400000,5.86797],[1447804800000,5.97145],[1447891200000,5.99582],[1447977600000,5.99456],[1448064000000,6.04436],[1448150400000,6.04436],[1448236800000,6.04436],[1448323200000,6.03307],[1448409600000,5.98689],[1448496000000,5.90678],[1448582400000,5.86121],[1448668800000,5.9276],[1448755200000,5.9276],[1448841600000,5.9276]], 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: [[1446336000000, 5.940388],[1446336000000, 5.940388],[1446422400000, 5.940388],[1446508800000, 5.969714],[1446595200000, 5.939376],[1446681600000, 5.955952],[1446768000000, 5.885511],[1446854400000, 5.783621],[1446940800000, 5.783621],[1447027200000, 5.783621],[1447113600000, 5.751986],[1447200000000, 5.745585],[1447286400000, 5.776691],[1447372800000, 5.815240],[1447459200000, 5.850138],[1447545600000, 5.850138],[1447632000000, 5.850138],[1447718400000, 5.867971],[1447804800000, 5.971451],[1447891200000, 5.995823],[1447977600000, 5.994564],[1448064000000, 6.044355],[1448150400000, 6.044355],[1448236800000, 6.044355],[1448323200000, 6.033072],[1448409600000, 5.986889],[1448496000000, 5.906782],[1448582400000, 5.861215],[1448668800000, 5.927603],[1448755200000, 5.927603],[1448841600000, 5.927603]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });