Skip to content

Conversation

@3ph
Copy link

@3ph 3ph commented Jun 15, 2017

Initial idea linked to Issue #1631 though since that the Bezier bit has been dropped.

Interactive chart view makes charts interactive:

  • chart entries (values) can be dragged around the chart
  • data set can be (un)selected as well (currently calculation based on straight lines)
  • added demo to demonstrate the chart view
  • new flag determining if value can be selected without selecting the data set first

Added two new methods to the delegate:

  • chartValueMoved - called when entry was moved
  • chartDataSetSelected - called when data set was (un)selected

This might not ready to be included in the Charts master but still somebody might find it useful.

@liuxuan30
Copy link
Member

wow, thank you for your effort. This is a huge work and need a careful review from the author. However he has been busy with other stuff for quite a time. So please wait

@jjatie jjatie added this to the Future milestone Jan 22, 2018
@acegreen
Copy link

Great work @3ph! You should assign @danielgindi as reviewer.

@liuxuan30
Copy link
Member

actually, any Collaborator is fine to review. But you have to solve the conflict.

I'm sorry you waited so long :( lack of man power

@anhdle14
Copy link

Recently come across this feature, i have a very bad time to implement what #2522 's PR is.

My solution is to implement ChartDataEntryBase/ChartDataEntry implement the NSItemProviderReading/Writing, NSObject, & Codable to get drag and drop. At least that is my assumption.

Is this a good approach or not? I really want this feature, so please help me understand how to solve this problem. I will try to submit a PR after implementing it successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants