473,804 Members | 3,557 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Selecting Chartfx area

Hi all,

Ok basically what I am trying to do is this:

I have a line graph with multple series what i want the user to be able
to do is click and highlight an area of the graph in order to apply
some mathematical function to the selected area.... ie axis x ranges
from 0 to 10 but the user only wants to apply the function between 3
and 7 so they click and highlight that area.

I don't think there is any builtin controls in chartfx to do this....
if there are, the documentation is rubbish and I can't find them! So
what I am doing is picking up on the mousemove event to draw a vertical
stripe wherever the mouse goes over the chart. However, I cannot seem
to translate my mouse position to the value on the x axis in order to
create the stripe. e.Point and e.Series always appear to be 0 so the
stripe doesnt move from the leftmost point.

The idea in the end is to have the user mouse down and drag the line
across to select the area they want with the stripe signifying the said
area.

Does anyone know how i can translate my mouse position into the actual
axis-x value that it is on?

If this makes sense, please let me know!

Thank you

Dave

Mar 10 '06 #1
1 1464
No need to panic, answer my own question,

chart.AxisX.Pix elToValue(int) solved!

Mar 10 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2871
by: Dave Sauny | last post by:
I'm creating graphs which have data between 300 and 400 on the x-axis and also 900 and 1000 on the x-axis. When this gets plotted, the graph rescales and the information becomes to small to be of any significance. Other than zooming in, is there any ohter way of altering the x-axis so that it displays 300 - 400 (small gap) 900 - 1000 Ive tried doidng this with panes however they only allow the reuse of the previous xaxis and using...
0
2311
by: Dave | last post by:
Hey all, Am having a slight problem when trying to use chartfx to plot an XY chart against a dataset. When i do the code below, The graph gets plotted fine, however, the X-Axis is full of odd values that I dont know where it gets the from... normally starting at -1.xxxxxxxxxxxxx to NaN. Also when hovering over the points, the point labels show: <string value> NaN
1
2011
by: Dave | last post by:
Hi all, I have a slight problem when using chartfx in vb.net. I have a line graph that needs to be able to plot 10,000 points. I believe that this isn't too unfeasible however whenever I begin plotting the points it slows down immensely. If i Alt-Tab to another full screen application and then Alt-Tab back a few seconds later, the graph has redrawn a lot more of it that it would have had it been on the screen all the time. This...
0
1162
by: DaTurk | last post by:
Hi, I don't even know if many people use this product, but bless you if you do and know what I'm talking about. We recently upgraded ChartFX to 7.0, and are having some difficulties with the way we used to display the data. We populate a ListProvider with an ArrayList of arrays, and then use this as the datasource. But for some reason we do not have the ability to Map the Fields so ChartFX knows how we want them to be displayed. If...
0
9706
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
10323
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10082
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9160
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6854
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5654
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4301
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3822
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.