Share

Chart2D

Tracker: Support Requests

5 User Editing of Charts with Mouse - ID: 499412
Last Update: Comment added ( xwedge )

I want my users to be able to drag nodes on my
linechart up and down. To do this (Java newbie), I
guess I would have to add a mouse listener to get the
mouse down event, detect which node the mouse is over,
and calculate the new value when the mouse button is
released. The only problem I think I'll have is trying
to detect which node the mouse pointer is over. Does
each dot on a line chart have a fixed width in pixels,
or even better, is there a function to give me the
data item clicked on?

thanks,
Kristian.


Kristian Nilssen ( flobadob ) - 2002-01-04 15:03

5

Closed

None

Jason J Simas

All

All

Public


Comments ( 2 )

Date: 2009-06-17 00:22
Sender: xwedge

has anyone implemented this feature? I'm trying to do the same with Chart2d
but am having difficulties. Kristian, do you have any tips?


Date: 2002-01-04 17:57
Sender: jjsimasProject AdminAccepting Donations

Logged In: YES
user_id=179964

This is possible to do, and I think you are on the right
track in implementing this, but I this will be pretty
difficult. My understanding is that you want the user to be
able to edit the dataset graphically. Out of curiosity, may
I ask for what purpose?

Chart2D was not designed with this in mind, and you'd have
to do some real digging in the source code in order to
accomplish this. For LB charts, you'd be digging in the
LBGraphArea and the LBChartArea classes.

My guess is that it would take me about two days to
implement this feature. Without any knowledge of Chart2D's
code, it might take you twice that. I don't offer very
much free support, if you would like more support on this
issue, then for $25 I can guide you through the code and
tell you the places you need to look and so on. For $150
I can implement this feature for you.

Jason


Attached File

No Files Currently Attached

Changes ( 7 )

Field Old Value Date By
close_date 2002-01-06 04:55 2002-01-11 11:07 flobadob
close_date 2002-01-05 13:11 2002-01-06 04:55 jjsimas
status_id Pending 2002-01-06 04:55 jjsimas
close_date - 2002-01-05 13:11 jjsimas
status_id Open 2002-01-05 13:11 jjsimas
assigned_to nobody 2002-01-04 17:57 jjsimas
summary User editing of charts with mouse 2002-01-04 17:57 jjsimas