Multiple vertical axis labels?

1 view
Skip to first unread message

Chirag Patel

unread,
Nov 29, 2007, 6:40:36 PM11/29/07
to ZiYa Plugin
I would like to create line chart with 3 different lines like the one
shown here:
http://www.maani.us/xml_charts/index.php?menu=Gallery&submenu=Line

Is it possible to create a different set of axis labels values
(axis_value in the .yml file) for each of the 3 lines? Each line will
have different vertical ranges.

Thanks,
Chirag

Lori Olson

unread,
Nov 29, 2007, 11:03:05 PM11/29/07
to ziya-...@googlegroups.com
Only if you draw them in by hand, using the drawing primitives.

http://www.maani.us/xml_charts/index.php?menu=Reference&submenu=draw

You will also have to

Lori Olson

unread,
Nov 29, 2007, 11:05:39 PM11/29/07
to ziya-...@googlegroups.com
Oops.  ... also have to either use a Composite Chart type (extra charts for each line), or run a transform on your series data to normalize it across a common range, in order to display them all on the same chart.

Regards, Lori

Fernand Galiana

unread,
Nov 30, 2007, 1:46:11 AM11/30/07
to ziya-...@googlegroups.com
Hi Chirag,

Yes. This exact chart is actually featured in the charting sample
app.
As far as the axis values they will be compounded by default from
the 3
series that make up the chart. To annotate the charts y-axis
differently, as Lori said,
you would have to manually compute and draw the axis-values or
you could leverage
the series labels in the add call to display point labels for
each of the series ie

add( :series, "line1", [10,20,30], ["point1", "point2",
"point3"] )

-Fernand

Reply all
Reply to author
Forward
0 new messages