Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 435627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T20:23:43+00:00 2026-05-12T20:23:43+00:00

Is it possible for someone to give me a few pointers on how to

  • 0

Is it possible for someone to give me a few pointers on how to display a multidimensional array in the form of a bar graph?

The array is multidimensional, with three elements in each part – and the elements are determined by a HTML form.

So if it is possible to display this kind of array in the form of a bar graph in Javascript on a standard HTML site, i’d appreciate some help!

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T20:23:43+00:00Added an answer on May 12, 2026 at 8:23 pm

    Check out Flot and MilkChart. The former extends jQuery, the latter MooTools. Both use the canvas element, which is now supported by all the major browsers (even IE with the inclusion of an extra script). Take a look at the reputation tab in your stackoverflow profile to see it in use. I’ve used Flot (haven’t tried MilkChart) in a project before and while the manner you pass data into it can seem a bit unintuitive at first, you’ll find that it is actually pretty powerful for a non-flash charting solution. Flot also defines custom events that you can use to define chart interactions. Flot supports stacked bar charts with a plugin, and I believe you can do clustered bar charts with it as well.

    You could always go with some sort of declarative graphics solution using div elements as bars in a graph, but that’s not as easy or consistent across browsers as drawing charts with the canvas.

    If you are leery of either of those solutions you could send the data to a service to return a static image. The Google Charting API supports grouped bar charts, or you could use some service you host yourself.

    My recommendation is the first solution using the HTML canvas, specifically leveraging Flot since that is the library I have the most experience with and can vouch for. Maybe someone else has some comments about MilkChart.

    EDIT:

    Another library I forgot to mention is PlotKit which extends MochiKit. I haven’t used it but apparently it supports not only the charting using the canvas element but also supports charting using SVG. Scalable Vector Graphics offer you another declarative graphics option beyond hacking a solution using HTML, however I’m not sure how crossbrowser an SVG based solution would be (particularly in IE).

    EDIT:

    Here is a jQuery plugin which charts using div elements. I personally don’t like this option because I think it is more complex and less easily configurable than some of the other options. I feel like using HTML elements to create complex declarative graphics (while impressive) is sort of a hacked solution and will, in my experience, cause problems at some point.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been using pointers more and more in my programs, and while reading up
I've been struggling with this for a few hours. Everything just stopped working and
Hey, I'm developing a GWT app and now facing the CSS part. I read
Someone I know went to an interview and was given the following problem to
Do you think it is possible to play a movie or something on the
for a datastructures & algorithms class in college we have to implement an algorithm
I'm having a hard time wrapping my head around XSLT but I heard it's
I am able to query for queues by invoking a GET_DESTINATIONS operation using JMX.
i am interested in creating a setup tool for our business application which is
Is it advisable to create your own Activity stack (which contains only the activity

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.