Jump to content
Software FX Community

Selection Mouse Event


MS.Yang

Recommended Posts

Hi! Support team.

I am a person that plans to convert ChartFX for VS2005 to ChartFX for WPF within a few of months.

So, I have some question about ChartFX for WPF to clear the path to new experience.

First. We has used the functionality to select data on a chart with mouse by dragging like rectangle then retrive data relevant to index or Y value in ChartFX for VS2005. In ChartFX for WPF, is it possible like this?

Second, We'd like to do something like jobs such as adding limit lines for available data on already displayed charts. In fact, It has been implemented in ChartFX for VS 2005 using GDI functions. Can we implement this function in ChartFX for WPF?

In advance, thanks alot!

 

Link to comment
Share on other sites

>> select data on a chart with mouse by dragging like rectangle then retrive data relevant to index or Y value

This is possible, you need to use the Chart.Selection.StartMouseSelection method and supply a delegate that will be called after the user draws the selection rectangle.

>> We'd like to do something like jobs such as adding limit lines for available data on already displayed charts.

There are several ways to accomplish this, if you only need horizontal/vertical lines you can use Axis.CustomGridLines, we also support annotations where you can create visuals (lines, buttons, etc.) and attach them to logical positions in the chart. Finally we also support for you to handle an event to render additional elements in the chart, please note that because of the differences between GDI and WPF you will normally not paint on the screen but instead create logical items that are in turn templated into visuals.

JuanC

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...