File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GWT Chart which displays bars on x axis at irregular intervals

 
Louise Moritmer
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to create various charts (using GWT) which will display values along the x axis at irregular intervals.
All examples I have come across (and testing I have done) display the values along the x axis at regular intervals.
However for my purposes I need to display a set of values (Y axis) taken at specific times/java.util.Date (X axis).
The range of the x axis can be varied from 1 month to n months and the labels must show the Months. The values however must be displayed at the appropriate place on the x axis (see screen shots).

Does anyone have any idea how to achieve this using the GWT charts?
1 mnth.png
Range of 1 month
[Thumbnail for 1 mnth.png]
6 mnths.png
Range of 6 months
[Thumbnail for 6 mnths.png]
12 months.png
Range of 12 months
[Thumbnail for 12 months.png]
 
Maneesh Godbole
Saloon Keeper
Posts: 10971
11
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

In the past I have used the Visualization API to generate charts and graphs for my GWT apps.
A sampler of what all is possible can be found here
 
Louise Moritmer
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for the quick reply Maneesh.

I have looked at the Visualization API but i believe the same problem exists.

I realise I may not have made the actual problem clear in the initial post but it is this:
in the examples I have seen, when drawing a simple column grid (for example), the bars are drawn from the x grid at REGULAR intervals for each entry supplied (Jan, Feb, March) (Java, C++, Prolog)

However, I need to display an x grid which, while marking the intervals along the x axis as months (Jan, Feb, etc), will display the Bars themselves at points along the x axis which reflect the actual java.util.Date when the value was measured.

So there may be no Bars during Jan and yet 20 Bars in May!

Does the Visualisation API allow this? I didn't see it.
Can you point me to some example code?

Many thanks
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic