option "starts at midnight" for a graph (SQL inc)

Add a checkbox in the graph edit panel for this.
If checked, the graph will be drawn with option "from=midnight-[...]"