0

Chart problem

asked 2012-08-25 15:26:44 +0800

wijdan gravatar image wijdan
37 5

Hi everyone,

I'm using juno with zk 6.0.2 & i'm trying to make my first char example, i followed the sample given in the site, but when i run my zul i get the error:

Unknown shape: RECT

Any help will be appreciated, here's my code:

<chart id="mychart" title="Pie Chart Demo" width="550" height="400"
    type="pie" threeD="false" fgAlpha="128">
    <attribute name="onClick"><![CDATA[
        Area area = event.getAreaComponent();
        if (area != null)
            alert(""+area.getAttribute("entity")+":"+area.getTooltiptext());
    ]]></attribute>
    <zscript><![CDATA[
        PieModel model = new SimplePieModel();
        model.setValue("C/C++", new Double(21.2));
        model.setValue("VB", new Double(10.2));
        model.setValue("Java", new Double(40.4));
        model.setValue("PHP", new Double(28.2));
        mychart.setModel(model);
    ]]></zscript>
</chart>

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2012-08-25 18:09:30 +0800

wijdan gravatar image wijdan
37 5

Does anyone have any idea?

link publish delete flag offensive edit

answered 2013-07-22 02:59:32 +0800

paowang gravatar image paowang
140 6

Can you provide full stack trace ?

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: 2012-08-25 15:26:44 +0800

Seen: 76 times

Last updated: Jul 22 '13

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