Ah, this is actually the result of a change that was made to the C&G
API. If you want labels over a particular set of columns, you have
to specify a labeldatapath on that datacolumn. (Sorry, this wasn't a
very well-publicized change, and the C&G documentation was/is...
rather lacking.) So, if you change the dataseries in
test_column_01.lzx to the following:
<dataseries datapath="baseball:/records" >
<datacolumn name="x" columndatapath="record/@year"
datatype="number"/>
<datacolumn name="label" columndatapath="record/@year"/>
<dataseries label="wins">
<datacolumn name="y" columndatapath="record/@wins"
labeldatapath="record/@wins"
datatype="number"/>
<datacolumn name="tooltip" columndatapath="record">
<method name="processData" args="v">
return "year: " + v.attributes.year + "
wins: " + v.attributes.wins;
</method>
</datacolumn>
</dataseries>
</dataseries>
It should work. Sorry about that... perhaps maybe file a bug against
better documenting the labeldatapath attribute?
-Josh
On Mar 14, 2007, at 9:01 PM, Philip Romanik wrote:
Change 20070314-Philip-2 by [EMAIL PROTECTED] on 2007-03-14 20:56:28
EDT
in /cygdrive/f/laszlo/svn/src/svn/openlaszlo/branches/legals
Summary: Prevent 'undefined' labels from being displayed in charts
New Features:
Bugs Fixed: LPP-3207 (partially)
Technical Reviewer: jcrowley
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
Column labels were displayed as 'undefined' if no data were
available to display . Note. I found a new regression that the
labels and axis information is no longer displayed. I'll create a
new jira task to cover this.
Tests: http://localhost:8080/legals/test/charts/columnchart/
test_column_01.lzx
The labels above the bars are empty (just like in trunk).
Files:
M lps/components/charts/columnchart/columnchartplotarea.lzx
Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20070314-
Philip-2.tar