If I call the sample using this direct ULR

http://127.0.0.1:8080/lps-3.3.3/lps/components/charts/test/integral/ barchart/test_bar_02.lzx

the graph appears to be ok. I suppose, that the charting components doesn't
get linked or included somehow.

Am 10.03.2007 um 20:11 schrieb Stefan:

Source:

>>>
<canvas width="200">
<dataset name="grades">
    <entry year="1970" class="english" grade="a"  hours-worked="66" />
    <entry year="1971" class="english" grade="a-" hours-worked="70" />
    <entry year="1972" class="english" grade="a"  hours-worked="83" />
    <entry year="1970" class="french"  grade="a"  hours-worked="80" />
    <entry year="1971" class="french"  grade="a-" hours-worked="84" />
    <entry year="1972" class="french"  grade="b+" hours-worked="77" />
    <entry year="1970" class="math"    grade="a+" hours-worked="82" />
    <entry year="1971" class="math"    grade="a-" hours-worked="84" />
    <entry year="1972" class="math"    grade="a"  hours-worked="86" />
</dataset>
<barchart id="mychart" title="Stuff" >
      <dataseries label="English"
                seriesdatapath="grades:/[EMAIL PROTECTED]'english']" >
            <datacolumn name="x" columndatapath="@year" />
            <datacolumn name="y" columndatapath="@hours-worked" />
            <datacolumn name="tip" columndatapath="@grade" />
      </dataseries>
      <dataseries label="French"
                seriesdatapath="grades:/[EMAIL PROTECTED]'english']" >
            <datacolumn name="x" columndatapath="@year" />
            <datacolumn name="y" columndatapath="@hours-worked" />
      </dataseries>
     <horizontalAxis label="Year" />
     <verticalAxis label="Hours" />
</barchart>
<legend chart="mychart" /></canvas>
<<<

Compiler output:

>>>
The application could not be compiled due to the following errors:
Compilation Errors

layout.lzx:15:74: Syntax error: the token ":" was not expected at this position.
Compilation Warnings

layout.lzx:13:39: attribute "title" not allowed at this point; ignored
layout.lzx:15:68: attribute "seriesdatapath" not allowed at this point; ignored layout.lzx:21:68: attribute "seriesdatapath" not allowed at this point; ignored layout.lzx:25:37: element "horizontalAxis" not allowed in this context. Check whether it is spelled correctly, and whether a class with this name exists. layout.lzx:26:36: element "verticalAxis" not allowed in this context. Check whether it is spelled correctly, and whether a class with this name exists. layout.lzx:13:39: found an unknown attribute named "title" on element barchart, check the spelling of this attribute name layout.lzx:15:68: found an unknown attribute named "seriesdatapath" on element dataseries, however there is an attribute named "datapath" on class element dataseries, did you mean to use that? layout.lzx:21:68: found an unknown attribute named "seriesdatapath" on element dataseries, however there is an attribute named "datapath" on class element dataseries, did you mean to use that? layout.lzx:25:37: found an unknown attribute named "label" on element horizontalAxis, check the spelling of this attribute name layout.lzx:26:36: found an unknown attribute named "label" on element verticalAxis, check the spelling of this attribute name
<<<


Am 10.03.2007 um 19:47 schrieb J Crowley:

What are the errors you're getting? I remember there were some odd issues with the charting and graphing examples.

On Mar 10, 2007, at 1:25 PM, Stefan wrote:

Hi,

I found the documentation of the Charting components in the current
3.3.3 docs.

But, if I try to compile the sample code, I get syntax errors.

Any ideas, why this happens? Do I need to add (new) libraries to my
standard 3.3.3 installation?

Does someone know of a web location, which explains the charting
stuff a bit more detailed based on some samples?

Kind regards,

Stefan



Reply via email to