mhowes Posted December 10, 2007 Report Share Posted December 10, 2007 Is there a way if I have a simple scatter plot (less than 300 points) to have a label on the chart for each point? Something like A1, B2, etc? All of a sudden (I didn't change any chart properties) just outside the outer chart border (the outermost line that goes around the outside of the chart) there are awful black lines on the right side and bottom of the chart. As if it's failing to show some sort of shadow. Any idea what that is? I have a class that inherits from ChartFx. Everything was fine and the project still runs but now I can't view the class or any form with the class/chart on it at *design* time? When I click on my class I get the following in Visual Studio Entry point was not found. Hide at ChartFX.WinForms.Internal.IAdornment.set_Host(IAdornmentHost value)at ChartFX.WinForms.Internal.DockableFrameCore.set_Border(IAdornment value)at ChartFX.WinForms.Chart.c(IAdornment A_0)at ChartFX.WinForms.Chart.bs()at ChartFX.WinForms.Chart..ctor() I've tried restarting Visual Studio and rebuilding a ton of times. Any ideas what's going on here? I'm using the latest release. thanks mike Quote Link to comment Share on other sites More sharing options...
mhowes Posted December 11, 2007 Author Report Share Posted December 11, 2007 I've figured out what I was doing wrong with my point labels. I never set the .Format to %L but it ended up turning out nearly useless. I only have 30 points but they tend to fall in bunches of 2-3 on the chart. The point labels for 2-3 points display right on top of each other making them unreadable. Doesn't even look like they try to not display on top of each other. Any way to fix this? and I still have the other issues above thanks mike Quote Link to comment Share on other sites More sharing options...
Frank Posted December 12, 2007 Report Share Posted December 12, 2007 Try: chart.AllSeries.PointLabelsOrganizer.AutoArrange = true; Quote Link to comment Share on other sites More sharing options...
mhowes Posted December 12, 2007 Author Report Share Posted December 12, 2007 a curious thing happened when I set AutoArrange to true. Most of my point labels vanished. About 1/3 of them show mike Quote Link to comment Share on other sites More sharing options...
Frank Posted December 12, 2007 Report Share Posted December 12, 2007 Its not really that strange. A possible strategy to avoid overlapping labels is to hide some. There are some parameters you can control in the PointLabelOrganizer (check the docs for details) that can make it more or less aggressive. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.