drawing images or charts with javascript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jx2
    New Member
    • Feb 2007
    • 228

    drawing images or charts with javascript

    I cant find any information about drawing bitmaps with javascript.

    At the moment my website creates charts using PHP I want to get rid of it from the server and do it on client side (transfer / computer power).

    Anyone know something about it or could you point out a good source to start with?
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    good evening ... it's late here and i hope i don't give you a bad recommendation ;) ... but i faced that problem once and looked for something that does the job you want ... there are some libraries out there ... google for them ... i remember plotkit for instance:



    or simple google 'charts with javascript' for example



    a lot of them seems to do very well ... but i think you should choose the one you like ... the time i needed to use that, i only needed bargraphs ... that is relativly easy to do by yourself ... so i wrote my own barchart-script ... it did only simple vertical or horizontal barcharts ... and was not able to do some things that you need for a real cool lib ... like simple (generic) creation, simple passing of data ... ideally in native js-array/object notation ... all together: you may find a lot of scripts out there that will help you ... and some produce real slick output :) ... if you prefer to 'selfcode', it would be possible too ...

    but remember ... javascript doesn't have the ability to produce bitmaps ... all 'javascript-graphics' are limited to the creation of dom-elements (divs, lines, spans together with styles etc.) ... that gives you the advantage of creating interactive charts (attach event-handlers to a bar - a div with width and height) ... but no bitmap ... thats not possible ... i think ;)

    Comment

    • jx2
      New Member
      • Feb 2007
      • 228

      #3
      thanks a lot
      that was very helpful - thats a pity its not suported by not that old IE 6 :)

      Comment

      • tomaszwor
        New Member
        • Mar 2010
        • 1

        #4
        Try flot based on JQuery

        It makes nice charts and it's customizable.


        Comment

        Working...