Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

XYChart clikable area

Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using XYChart and its API's
I am facing the following problem

The getHTMLImageMap of this class returns a dymanic tags list something like
<area shape="rect" coords="58,255,77,255" title='BC: 5 ' href="javascript:sbmt(bpid[0],'');">
<area shape="rect" coords="95,255,114,255" title='BS: 3 ' href="javascript:sbmt(bpid[1],'');">
<area shape="rect" coords="131,255,150,255" title='FB: 1 ' href="javascript:sbmt(bpid[2],'');">
<area shape="rect" coords="167,255,186,255" title='FB: 1 ' href="javascript:sbmt(bpid[3],'');">
<area shape="rect" coords="204,66,223,255" title='FI: 28121 ' href="javascript:sbmt(bpid[4],'');">

problem is that in the last entry I have thousands of records so bar grpah become tallest and we get a clikable area as the wall of this graph

But the remaiining graphs contain only 1 record so I don't get their height and also I cannot even click on their top to call the javascript function
Is there a way to make top of BarGraph as clickable ?

Posts: 43027
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm having a hard time picturing the problem; can you post a screenshot or the generated chart image?
Let's get him boys! We'll make him read this tiny ad!
Free, earth friendly heat - from the CodeRanch trailboss
    Bookmark Topic Watch Topic
  • New Topic