User (Legacy) Posted May 25, 2005 Report Share Posted May 25, 2005 hi, I'm using AxisX.CustomStep to label particular dates on a DateTime x axis, but some labels are missing when the chart is exported to a metafile. I have atached a screenshot of an exported image and a binary dump. Can you tell me why this is happening here? btw, if I handle the GetAxisLabel event, it seems the missing labels do exist, but they are set to "" cheers, Rob Link to comment Share on other sites More sharing options...
Software FX Posted May 25, 2005 Report Share Posted May 25, 2005 It appears the labels are skipped because they don't fit. I imported your chart file (dump) and as I resize the chart bigger the labels start to appear. If you don't want any label to be skipped you can set: chart1.AxisX.Step = 1; However this will cause the labels to overlap in some cases. -- Francisco Padron www.chartfx.com Attachments.zip Link to comment Share on other sites More sharing options...
User (Legacy) Posted May 25, 2005 Author Report Share Posted May 25, 2005 hi Francisco, > It appears the labels are skipped because they don't fit. I see... well the thing I'm trying to achieve is for the ends of the axis to be labelled MM/yy, but the year ends in between to be labelled yy. My plan was to set the CutomStep to set up the labelling, then catch the GetAxisLabel event to set the label appropriately. Is it possible to switch off the culling of labels that won't fit? It would have been better if the labels were just not drawn, rather than being set to an empty string. Also, it would be very handy if the AxisLabelEventArgs class had a Value property or something to tell you what was actually being labelled, rather than just the label string (especially if the label is ""). thanks for your help, Rob Link to comment Share on other sites More sharing options...
User (Legacy) Posted May 30, 2005 Author Report Share Posted May 30, 2005 any suggestions...? > hi Francisco, > > > It appears the labels are skipped because they don't fit. > > I see... well the thing I'm trying to achieve is for the ends of the axis to > be labelled MM/yy, but the year ends in between to be labelled yy. My plan > was to set the CutomStep to set up the labelling, then catch the > GetAxisLabel event to set the label appropriately. > > Is it possible to switch off the culling of labels that won't fit? It would > have been better if the labels were just not drawn, rather than being set to > an empty string. > > Also, it would be very handy if the AxisLabelEventArgs class had a Value > property or something to tell you what was actually being labelled, rather > than just the label string (especially if the label is ""). > > thanks for your help, > Rob > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.