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 ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • 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],'viewRoleLibDetailsDrillDown.do?recordHistory=true');">
<area shape="rect" coords="95,255,114,255" title='BS: 3 ' href="javascript:sbmt(bpid[1],'viewRoleLibDetailsDrillDown.do?recordHistory=true');">
<area shape="rect" coords="131,255,150,255" title='FB: 1 ' href="javascript:sbmt(bpid[2],'viewRoleLibDetailsDrillDown.do?recordHistory=true');">
<area shape="rect" coords="167,255,186,255" title='FB: 1 ' href="javascript:sbmt(bpid[3],'viewRoleLibDetailsDrillDown.do?recordHistory=true');">
<area shape="rect" coords="204,66,223,255" title='FI: 28121 ' href="javascript:sbmt(bpid[4],'viewRoleLibDetailsDrillDown.do?recordHistory=true');">

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 ?

 
Rancher
Posts: 43027
76
  • 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
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic