views:

285

answers:

0

By default, the legend created by dojox.charting.widget.Legend(...) is aligned left side:

...
// myChart is a var with a dojox chart
var myLegend = new dojox.charting.widget.Legend({chart: myChart}, "legend1");

Any settings in the Legend() constructor to set legend as centered legend?

By the way, I realize that dojox actually convert a div with "legend1" id to a table. I guess there must be some way to pass the alignment attribute in so that the table is centered.