Jump to content
Software FX Community

ChartFX 5.x - Label fit check REPOST


User (Legacy)
 Share

Recommended Posts

Hi!

Is there a way to check whether axis labels fit into the size of the graph

or not for ChartFX 5.x? I use ChartFX ocx to create graph and store it into

bmp for further presentation via web applicaition. Legend in off. When

labels are too long and graph width/height is not enough to put them in i

get only border - nothing inside. AUTOSCALE is set for AXIS_X. I only want

to know when the size of the graph needs to be increased (or KeyLabels +

Legend have to be used).

Thanks in advance,

Iosif

P.S. Could you please comment the question somehow even if it seems to be

meaningless? It looks really odd when there is no answer for the question

for 2 weeks.

Link to comment
Share on other sites

I'm afraid there is no API that will give you that.

The ValueToPixel method can help you determine the distance between 2

consecutive X-Axis labels but you will have to use the Windows API to

calculate the size in pixel of the legend string to determine whether or not

it fits.

--

FP

Software FX, Inc.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...