fixes to flot and add d3