User (Legacy) Posted April 1, 2003 Report Share Posted April 1, 2003 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 More sharing options...
Software FX Posted April 1, 2003 Report Share Posted April 1, 2003 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.