0

How to get the value(category) in a PieChart??

asked 2010-10-05 15:08:47 +0800

zippy gravatar image zippy
504 1 2

updated 2010-10-05 16:51:40 +0800

Hi, i use a piechart and i need to get the value of the selected area. I see the example in zk demo and +area.getAttribute("category") return the category in a zscript, i need the info in the controller, i need to create onClick function??
Greetings
--------
Added

in zscript i pass the value to hiden field, i searching how pass the value to controller when the value changed.

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2010-10-05 20:11:17 +0800

RyanWu gravatar image RyanWu
533 2
about.me/flyworld

you better take a look at the zk event document :)

http://docs.zkoss.org/wiki/Event_listening_%26_processing

you already know the answer

link publish delete flag offensive edit

answered 2010-10-06 08:56:58 +0800

zippy gravatar image zippy
504 1 2

hi, thank you =)

i use this code
<attribute name="onClick"><![CDATA[
Area area = event.getAreaComponent();
if (area != null)
alert(""+area.getAttribute("category"));

and pass the value to include file :P

Greetings

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-10-05 15:08:47 +0800

Seen: 177 times

Last updated: Oct 06 '10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More