Requirement of a 3rd Y-Axis

6 posts, 0 answers
  1. jayanth
    jayanth avatar
    4 posts
    Member since:
    Jul 2011

    Posted 13 Jul 2011 Link to this post

    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 !! 
     
  2. jayanth
    jayanth avatar
    4 posts
    Member since:
    Jul 2011

    Posted 15 Jul 2011 Link to this post

    Hi Guys can some one help !!
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Bartholomeo Rocca
    Bartholomeo Rocca avatar
    247 posts
    Member since:
    May 2006

    Posted 15 Jul 2011 Link to this post

    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.
  5. jayanth
    jayanth avatar
    4 posts
    Member since:
    Jul 2011

    Posted 18 Jul 2011 Link to this post

    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
  6. Bartholomeo Rocca
    Bartholomeo Rocca avatar
    247 posts
    Member since:
    May 2006

    Posted 21 Jul 2011 Link to this post

    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.
  7. jayanth
    jayanth avatar
    4 posts
    Member since:
    Jul 2011

    Posted 22 Jul 2011 Link to this post

    Hello Bart,

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

    Thanks again for your support

    Regards,
    Jayanth R
Back to Top
UI for WinForms is Visual Studio 2017 Ready