|
How do you set a Max Bar Width? |
Posted by Geoff Groskreutz on Mar-05-2013 05:51 |
|
What I mean by this, is how can we make Chart Directory auto-size the width of the bars if
they are below a certain width, but make it limit the auto-sizing of the bar widths to the set
max width, particularly if there are only a few bars in the dataset?
So, essentially is there a way to set the max width that the auto-width size routine uses
when calculating bar widths, and if so, what is it? |
Re: How do you set a Max Bar Width? |
Posted by Peter Kwan on Mar-05-2013 23:42 |
|
Hi Geoff,
Basically, you just need to write a line of code to reflect your requirement. It is like (in Java):
if (c.getPlotArea().getWidth() / myData.Length * 0.8 > some_threshold) myBarLayer.setBarWidth(some_threshold);
Hope this can help.
Regards
Peter Kwan |
Re: How do you set a Max Bar Width? |
Posted by Geoff Groskreutz on Mar-14-2013 14:18 |
|
This is pretty much what I expected. That I was going to have code it myself, rather than it being some
"auto-magic" feature. Thanks, for the proposed solution, at least it seems relatively straight forward and
not the most difficult to implement...a little trickier in my case since our tool dynamically builds all the
datasets and layers for the chart based on a dynamically created Datacube, generated from user defined
measure and dimension columns from a relational dataset. |
|