You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to protovis
Hi
I need to anchor to corners of a Panel top-left, top-right, bottom-
left and bottom-right. I saw the use of vis.anchor("right bottom") on
this forum and it works only for bottom right in the example below
vis.anchor("right top") doesn't work infact vis.anchor("right ") with
a space after the position right does the same thing. So it looks like
vis.anchor("right bottom") is a red herring and bottom right is the
default if protovis doesn't recognise the anchor position.
I'm wondering if any knows of a good solution for anchoring to the
corners of a Panel
I'm using anchors because my charts are resizable and in my scenario I
want to control the placement of a legend within the margin.
/* The root panel. */
var vis = new pv.Panel()
.canvas('chart')
.overflow(false)
.fillStyle("#cccccc")
.width(200)
.height(200)
.bottom(50)
.left(50)
.right(50)
.top(50);