|format of data for a bar chart [message #734344]
||Fri, 07 October 2011 10:00
| Missing name Missing name
Registered: September 2011
I have a simple chart I would like to display from my JBOSS application.
For each day, I keep track of events and I want to display the number of events each day in a bar chart. The number of events can be zero events to 30ish events.
The bar should represent the day of the week, and be either 0 or up to 30 high.
If I create a sql tabel with just one int column and put each days data in a separate row and create 7 rows, then use the int column as the x axis it does not draw the chart correctly.
It appears I need some way to index the day as well as the data for that day.
Do I need a separate column, called dayIndex that would that references the day?
Sorry if this question seems vague, I don't have any working exampls of the sql data to look at to draw a simple bar chart.
Powered by FUDForum
. Page generated in 0.02313 seconds