Multiple Series Line Chart

12 views
Skip to first unread message

Oldtimer

unread,
Sep 8, 2011, 10:04:41 PM9/8/11
to Choosel
Does anyone know how to create multiple series line chart? In
protovis, you need to add two dimensional array to the panel and use
function to draw lines. Just can't find a java equivalent here.

Thanks.

Oldtimer

unread,
Sep 8, 2011, 10:36:16 PM9/8/11
to Choosel
Ok. I find the way.


PVPanel vis = getPVPanel().width(w).height(h).bottom(20).left(20)
.right(10).top(5);
vis.data(data);

vis.add(PV.Line).data(new
JsFunction<JsArrayGeneric<ValuePoint>>(){

@Override
public JsArrayGeneric<ValuePoint> f(JsArgs args) {

return (JsArrayGeneric<ValuePoint>) args.getObject();
}


})...

Where data is the two dim data array.
Reply all
Reply to author
Forward
0 new messages