fixed examples to make them work with renamed functions

Hi haskell-chart team!

The examples would not compile for me, and ghc noted that the error was at the call to ```renderableToFile```.  It complained of a type error.

Re-ordering the function arguments fixed the issure, and now every example compiles and runs as expected for me.

Some other misc. fixes were necessary, mostly renaming deprecated functions within the body.

I hope this helps!