This is a migrated thread and some comments may be shown as answers.

Requirement of a 3rd Y-Axis

5 Answers 74 Views
Chart (obsolete as of Q1 2013)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
jayanth
Top achievements
Rank 1
jayanth asked on 13 Jul 2011, 11:11 AM
Hi,

        My client has a requirement to have a 3rd Y axis, since the Rad Chart tool does not have this feature we planned of having a background chart to display the Y axis based on that we are trying to plot the series on the Foreground Graph.

We have  tried to handle this by using Prepaint Event of the chart Control..

The problem we are facing is that The Prepaint of the foreground is executed more than once when my mouse cursor is on the plot area.

Things are fine till this execution is correctly done , But some times the prepaint is executed more than once beacuse of the mouseover.

so ,
1. can some one please give us an overview of the complete Cycle of the Chart ploting
2. explain When and How the prepaint event is triggered and if there is a code where we can stop triggering this event that would also be useful.
Am Using C#.Net 2005.


-- Any Links or any Documents on this can be of great use to us.
-- Prepaint Event is what we are stuck with and This event is fired when i call mouseMove function also...

Thank u in Advance !! 
 

5 Answers, 1 is accepted

Sort by
0
jayanth
Top achievements
Rank 1
answered on 15 Jul 2011, 02:07 PM
Hi Guys can some one help !!
0
Bartholomeo Rocca
Top achievements
Rank 1
answered on 15 Jul 2011, 05:28 PM
Hello Jayanth,

The approach you are trying to implement seems way too complex to me and I have some doubts whether it will produce satisfactory results. I would suggest you to check the WPF version of the chart control that provides built-in support for multiple Y-Axes -- you can easily host it in a winforms application provided that you can up the project .Net Framework version to 3.5 or later.

You can check the WPF ClickOnce demo application here as well (the specific demo is available under Chart > Features > Multiple Y Axes).


Greetings,
Bart.
0
jayanth
Top achievements
Rank 1
answered on 18 Jul 2011, 03:25 PM
Bart,

Thank you for that reply ...
Yes actually after starting the implementation we came to understand the complexity...

Ya we are almost done with the coding attached is a file for ur reference ....

My only concern is some times when i move the mouse cursor on the chart am unable to see the green line or it is not getting plotted.

So just need to understand when Prepaint is executed !!

or can i get some Document on prepaint !! I tried to search for that but i couldnt find one !!

Ya sure i would go with ur opinion if things dont go Right .... Thanks !!!

 Regards,
Jayanth R
0
Bartholomeo Rocca
Top achievements
Rank 1
answered on 21 Jul 2011, 09:40 AM
Hello Jayanth,

Not sure what might be triggering the PrePaint multiple times - I have never observed such behavior in my own applications so this might be related to the specifics of your own scenario.

Anyway, I don't think it is possible to cancel the triggering of the PrePaint event but probably you can add a flag and execute your custom logic only once based on it or alternatively you can try the BeforeLayout event to see whether there will be any difference in behavior.


Greetings,
Bart.
0
jayanth
Top achievements
Rank 1
answered on 22 Jul 2011, 07:24 PM
Hello Bart,

Thanks, I will try the BeforeLayout Event and check if this can be resolved !!

Thanks again for your support

Regards,
Jayanth R
Tags
Chart (obsolete as of Q1 2013)
Asked by
jayanth
Top achievements
Rank 1
Answers by
jayanth
Top achievements
Rank 1
Bartholomeo Rocca
Top achievements
Rank 1
Share this question
or