How to Set Linemarker position

Posted by: richard.sadler on 29 August 2018, 6:50 pm EST

  • Posted 29 August 2018, 6:50 pm EST

    I have an application with 2 flex charts, each share the same horizontal axis data but have different vertical axis data sets.

    I want to have a line marker which tracks with the mouse, one on chart, and a line marker on the other has its position updated to keep in sync with the first linemarker

    Using an earlier version of the flexchart component, I was able to raise and event when the mouse moved on one chart that effectively updated the linemarker position in the other chart. (I was setting the X and Y values of the linemarker)

    with the latest version of the component, I set the horizontal and vertical values of the second line marker (and they seem to update), but the actual position of the linemarker doesn’t change.

    I already invalidate the flexchart after updating the linemarker position.

    any ideas?

    thanks

    Richard

  • Posted 30 August 2018, 8:27 am EST

    Hello,

    I was able to replicate the issue and it seems to be a bug. I have escalated this problem to the concerned development team [Internal Tracking Id: 341412] and will update you when the issue will get fixed.

    Thank you.

  • Posted 30 August 2018, 1:53 pm EST

    thanks for the quick reply

    any thoughts on a possible work around other than going back to the previous version of the component?

    thanks

    Richard

  • Posted 31 August 2018, 7:24 am EST

    Hi Richard,

    Although there is no direct work around for this but one possible way is by inheriting FlexChart class and exposing a method to perform mouse move programmatically.

    class FlexChartEx : FlexChart
    {
      public void PerformMouseMove(MouseEventArgs eArgs)
      {
        this.OnMouseMove(eArgs);
      }
    }
    

    Please refer to the attached sample for an example.

    Thanks and Regards,

    Basant

    prj_SyncLineMarkers.zip

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels