Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Zoom in/out a chart graph

 
Yahya Elyasse
Ranch Hand
Posts: 510
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Forum,

i used theopenoffice.org charting component to draw a candlestick chart.
i have a spreadsheet that holds more than 2000 columns .when i draw the candle chart with these 2000 data series ,the chart is not readable (very small).
I thought to implement a sort of zooming effect on the chart canvas .I believe zooming a graphics requires scaling the y-axis and x-axis values. is that right ?
the issue with OOo candle chart is that x-axis values that holds "dates" are treated as "categories" and should be in text format. thus there is no way to scale x-axis values by specifying a min ,max ,step date .
can you please describe me an algorithm to implement zoom in/out for a candle chart ?

thanks.
[ September 14, 2008: Message edited by: omar Bakr ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic