original work: https://flotdotnet.codeplex.com