File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes GWT and the fly likes GWT Chart which displays bars on x axis at irregular intervals Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "GWT Chart which displays bars on x axis at irregular intervals" Watch "GWT Chart which displays bars on x axis at irregular intervals" New topic
Author

GWT Chart which displays bars on x axis at irregular intervals

Louise Moritmer
Greenhorn

Joined: Oct 11, 2012
Posts: 2
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?



[Thumbnail for 1 mnth.png]


[Thumbnail for 6 mnths.png]


[Thumbnail for 12 months.png]

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9990
    
    7

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


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Louise Moritmer
Greenhorn

Joined: Oct 11, 2012
Posts: 2
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
 
subject: GWT Chart which displays bars on x axis at irregular intervals
 
Similar Threads
Line chart problem
Cewolf: How to handle the values on y axis
Display graph and perform action on click of the values in chart
Problem with displaying an histogramm with Cewolf
Keeping Two HTML Componnets (Divs) in Synchronization with each Other (Image Attached )