User (Legacy) Posted May 24, 2006 Report Posted May 24, 2006 Hi, I have a chart with multiple series. If I move the mouse curser on one, only the point and not the whole series is highlighted. How could this happen (see screenshot)? Is there any property to set to get back the normal behaviour (whole series is selected)? Best regards, Thomas Ibel
Software FX Posted May 24, 2006 Report Posted May 24, 2006 Selected the whole series is the normal behavior for multiple series. You must be doing something that is making it change. Please attach a sample app or code snippet that reproduces the problem. -- Francisco Padron www.chartfx.com
User (Legacy) Posted May 29, 2006 Author Report Posted May 29, 2006 Hi, I'm sorry for the late answer, but I was on vacation the last days. The chart is used for displaying data comming from a query, but databinding will not work because there is some logic to prepare data for the charting. I have attached a sample app that sets the chart properties like in the component where it is used. If you move the mouse cursor on one point, you will see that only the point is selected. So please tell me, what is going wrong? Greets, Thomas Ibel
Software FX Posted May 30, 2006 Report Posted May 30, 2006 Ok. The reason the Highlight is occurring this way is because you are assigning per-point attributes: chart1.Points[0, 0].Tag = new object(); //simulate real behavior By doing this, you are changing the highlight behavior because each point has different attributes. This is by design, the idea is that you can change attributes and the highlight will highlight together those with the same set of attributes, for example: PointAttributes attr = new PointAttributes(); attr.Tag = new object(); chart1.Points[0,0] = attr; chart1.Points[1,0] = attr; chart1.Points[0,1] = attr; chart1.Points[1,1] = attr; Will group these four points together in one group. They will highlight together. If you add a Custom Legend item with the same attributes (attr) it will also highlight with them. Unfortunately, there is no way to have per-point attributes and at the same time keep highlighting the same way. -- Francisco Padron www.chartfx.com
User (Legacy) Posted May 31, 2006 Author Report Posted May 31, 2006 But this works with Version 6.2! This is a behaviour change, and so quite bad. The 'Tag' property should not group some points together. Mostly this property is used to hold point to DataRow relation, like in other controls (eg tree). Normaly you will not have two points from the same row in one series. I don't think that it was a good decision to use the point attributes for grouping. Maybe a extra 'Group' property would be better. The possibility to configure the highlighting behaviour would also be nice. So you can choose if you want to highlight whole series, group or one point. Back to my problem: How should I hold the relation between DataRow and Point without loosing the highlighting? Another problem is, that some DataRows are selected, to visualize that in the chart I need to set the Point attributes of that points. If the points gets deselected (by user or by code) how I get back to normal behaviour? I also tried what you said and the result is not usable (see two screenshots). Nobody understands that behaviour! I think not all changes from 6.2 to 2005 were good and I hope you improve that very soon. Greets, Thomas Ibel
Software FX Posted May 31, 2006 Report Posted May 31, 2006 Thank you for your feedback. I agree with you that in YOUR case, the highlight per-series will be the right choice, however there are many other situations in which the Per-Point attributes are a better grouping criteria. I do think, there is also many situations in which your case will present itself, so I have added a new property in the HighlightAttributes class: IgnorePointAttributes. Doing: chart.Highlight.IgnorePointAttributes = true; Will ignore the per-point attributes when it comes to Highlighting. This property will be available in the next Service Pack and as a HotFix in the next couple of days. Please contact Software FX support to obtain the HotFix. -- Francisco Padron www.chartfx.com
Recommended Posts
Archived
This topic is now archived and is closed to further replies.