• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Setting up maximum range for X and Y axis in CeWolf Chart

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

i am facing a problem with CeWolf Chart generation. I would like to set up the highest range for X and Y axis. But i am unable to get the expected result.


For example i have set up 600 as the highest range, but when the chart is rendered, only default range which is set by the library rendered automatically.

Please some one help me to solve this problem...

Thanks in advance.

My Data Provider Class

PageViewCountData.java:


My Chart Rendrer Page

index.jsp:

cewolf.png
[Thumbnail for cewolf.png]
The rendered chart
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't see setMinVal and setMaxVal methods in the DatasetProducer class that would accept -and subsequently make use of- those values.

But regardless, cewolf always scales the axes to accommodate the actual values; there is no way to display larger axis value without larger actual data values. I'm not even sure if the JFreeChart library (which is used by cewolf) supports that.

As an aside, you should use the cewolf distribution downloadable from the link in my signature, not the one from SourceForge.
 
and POOF! You're gone! But look, this tiny ad is still here:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic