Jump to content
Software FX Community

Question about gap widths


User (Legacy)

Recommended Posts

Do these values include length of the labels or length from the end of the

labels? For instance if I set bottomgap to 100 would this be from the edge

of the graph( including labels ) to the bounding box or from the end of the

longest label to the bounding box?

In the previous version of ChartFX I could use the gap widths to figure out

how much of the area is set aside for the labels, after doing

UpdateSizeNow() and RecalcScale() calls, and resize the chart if the actual

"chart area" was deemed too small. In the new version if I do not

explicitly SET a value for the gap widths I do not get a value that seems

correct. For instance for long labels on the x-axis I get gap width of 1 or

10 or something to tha effect which is definitely not correct. Is this new

behavior or a bug of some kind? Is there another way to ask how much space

the labels take up? In essence what I would like to do is call

UpdateSizeNow() and RecalcScale() and then ask for gap widths and have them

be the actual values( again....assuming that they INCLUDE label lengths )

-Mac

Attachments.zip

Attachments.zip

Link to comment
Share on other sites

Do these values include length of the labels or length from the end of the

labels? For instance if I set bottomgap to 100 would this be from the edge

of the graph( including labels ) to the bounding box or from the end of the

longest label to the bounding box?

In the previous version of ChartFX I could use the gap widths to figure out

how much of the area is set aside for the labels, after doing

UpdateSizeNow() and RecalcScale() calls, and resize the chart if the actual

"chart area" was deemed too small. In the new version if I do not

explicitly SET a value for the gap widths I do not get a value that seems

correct. For instance for long labels on the x-axis I get gap width of 1 or

10 or something to tha effect which is definitely not correct. Is this new

behavior or a bug of some kind? Is there another way to ask how much space

the labels take up? In essence what I would like to do is call

UpdateSizeNow() and RecalcScale() and then ask for gap widths and have them

be the actual values( again....assuming that they INCLUDE label lengths )

-Mac

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...