Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

[lineChart] Adding tooltip support #48

Open
raphamorim opened this issue Oct 26, 2016 · 6 comments
Open

[lineChart] Adding tooltip support #48

raphamorim opened this issue Oct 26, 2016 · 6 comments

Comments

@raphamorim
Copy link
Owner

origami(canvas).chartLine({
    tooltip: true
    labels: ["January", "February", "March", "April", "May", "June", "July"],
    fill: true,
    datasets: [
      {
        data: [1, 9, 8, 71, 56, 30, 60],
        line: "2px solid pink",
      }]
})

screen shot 2016-10-26 at 16 41 57

@goelrohan6
Copy link

@raphamorim can you please guide how to proceed with the issue ?

@raphamorim
Copy link
Owner Author

Hi @goelrohan6 the goal is display a tooltip when the user put mouse over a point in the chart. This tooltip show the current data

@kolharsam
Copy link

Hey @raphamorim I'd like to work on this. Where and how do I get started?

@raphamorim
Copy link
Owner Author

Nice @Kolhar730
The idea is for every dataset.length show ...labels

So if we have: [0,1,3,4] as dataset.
when exist ["first", "second"] as labels, 0 and 1 should be labeled

@kolharsam
Copy link

@raphamorim thanks for the response. I'd want to get familiar with usage of OrigamiJS and also with the Canvas API. Could you give me a few days to get myself familiar with these.

I'm only a beginner, so I'd appreciate any help that comes from your side.

How should I be tackling these problems?

@raphamorim
Copy link
Owner Author

raphamorim commented Oct 3, 2017

No problem at all @Kolhar730,
take your time.

I highly recommend you to look: https://github.com/raphamorim/origami.js/blob/master/src/charts/line.js

All line graph logic is there, any other thing you can ask. No problem at all, I'm be happy to help :octocat:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants