question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[question] Example for Events provided in docs?

See original GitHub issue

I’m not sure how I need to use the events specified in the docs like getElementsAtEvent. Are there any examples on this? Or can you provide one?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
gor181commented, Jan 23, 2017

Hello,

Example would be similar to Bar example just you would add:

getElementsAtEvent: (elems) => {}

To the list of defined properties for the Bar component, so it would look like:

<Bar
  data={data}
  width={100}
  height={50}
  getElementsAtEvent={(elems) => {
    console.log(elems);
  }}
  options={{
    maintainAspectRatio: false
  }}
/>

Kr,

1reaction
jerairrestcommented, Jan 24, 2017

As seen in this jsfiddle, (not rcjs2 but shows chart.js functionality) https://jsfiddle.net/f417uxcx/ it shows that this function is called from a user clicking on an active point. Hope this helps!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Event planning questionnaire: 30 questions to ask
Get a list of 30 questions to ask clients in an event planning questionnaire so you can pull off a successful event.
Read more >
Create events - Google Workspace Learning Center
Create events · Calendar · Schedule one-time activities, such as conferences, as well as recurring events, such as staff meetings. Let everyone know...
Read more >
21 Post-Event Evaluation Questions & Survey Setup Tips
Grab the post-event evaluation questions you need from our handy list and use our top 7 tips to design post-event surveys that get...
Read more >
Learn About Google Event Schema Markup | Documentation
Make it easier for people to discover and attend your online or offline events by adding schema markup to your event pages.
Read more >
Introduction to events - Learn web development | MDN
The HTTP connect event docs provide a good example. You can also use JavaScript to build cross-browser add-ons — browser functionality ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found