Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select a vertical area on a chart #2147

Open
danidin opened this issue Aug 17, 2017 · 2 comments
Open

Select a vertical area on a chart #2147

danidin opened this issue Aug 17, 2017 · 2 comments

Comments

@danidin
Copy link
Contributor

danidin commented Aug 17, 2017

I created the following feature using C3 & jQuery:
http://jsfiddle.net/prqwrjtq/2/

You can select an area on the chart. I would like to implement this ability as C3 API. It would accept a callback with start and end points as arguments, so a user can select an area on the chart between two data points and get a response to their selection.

e.g

c3.generate({
  ...
  areaselect: {
    enabled: true,
    onselect: function(a, b) {
      // do something with data points here
    },
    color: #999999 // selector color
  }
})

How would one go about this?

@bsarkadi
Copy link

It would be useful for me.

@ghost
Copy link

ghost commented Mar 19, 2018

this is actual requirement which I'm having now. Would be great If I get this as C3 Api.
I'm using reactJS for developing application.

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

No branches or pull requests

2 participants