Graph rendering improved

Now it renders just the interval that will be displayed (stupid d3).
Optimized! Must be much faster with huge amounts of data.
Now the interval that is displayed is just time dependent (begin and
end are time instants)