hochileo / achartengine

Automatically exported from code.google.com/p/achartengine
0 stars 0 forks source link

Is is possible drag the marker? #316

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Some XySeries has one data, i called this 'marker'. Also dataset includes 
'marker' 
and marker has own 'XYSeriesRender';
2. draw marker on the view;
3. i want to know How to drag marker myabe if it is possilble;

What is the expected output? What do you see instead?

i will use clickListner
/////////////////////////////////////////////////////
Is is possible drag the marker in achartengine?

Please provide a source code snippet that we can use to replicate the issue.

mChartView.setOnClickListener(new OnClickListener() {

@Override
public void onClick(View v) {
SeriesSelection selection = mChartView.getCurrentSeriesAndPoint();
if(selection!=null){
int eqiupmentIndex = selection.getPointIndex();
double durationIndex = selection.getValue();
int xValue = (int) selection.getXValue();
Log.e("test","xValue : "+xValue+", eqiupmentIndex : "+eqiupmentIndex+", 
durationIndex : "+durationIndex);
}
}
});
///////////////////////////////////////////////////////////
What version of the product binary library are you using?

Achartengine1.2

Please provide any additional information below.

Original issue reported on code.google.com by simsoolt...@gmail.com on 12 Jun 2013 at 2:41

GoogleCodeExporter commented 9 years ago
Please ask questions on stackoverflow.com

Original comment by dandrome...@gmail.com on 13 Jun 2013 at 1:27