Canvas text labels in Flot graphs

While html ticks, labels, and legends are great for styling and extendability by default, there are times it’d be nice if all of that information was on the graph itself, like when you want to convert the canvas image to real image, i.e. through data uris:


Anyway, Andre Lessa did just that with his Flot canvas text plugin that was inspired by the Jim Studt’s canvas text.

I’ve copied Lessa’s library to github and patched a small issue I encountered. Check it out at flot-text on github.

Side note, if you’re having trouble getting your canvas saved images to have a white background (in chrome and ie they’ll default to a black background because they’re actually transparent by default), then check out this blog on how to resolve that:

8 Responses to “Canvas text labels in Flot graphs”

  1. Sijo Says:

    It stil doesnt work on chrome, trying to fix. it any pointers?

  2. yard lights Says:

    When I originally commented I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added I get several emails with the same
    comment. Is there any way you can remove people from that service?

  3. planning retirement once Says:

    This is really interesting, You’re a very skilled blogger.
    I’ve joined your rss feed and look forward to seeking more of
    your great post. Also, I’ve shared your site in my social networks!

  4. pawn shop las vegas guns Says:

    Stunning quest there. What happened after? Thanks!

    Have a look at my weblog; pawn shop las vegas guns

  5. Says:

    Ⅴery descriptive post, I loved that a lot. Will tһede
    bеe a parrt 2?

    Feel free to surf to my webpage: consolidation loan mae
    sallie student (

  6. fleshlight sale Says:

    fleshlight sale

    Canvas text labels in Flot graphs | sanghvi labs

  7. Says:

    Canvas text labels in Flot graphs | sanghvi labs

  8. casino Says:


    blog topic

Leave a Reply