EventDrops | time based / event series interactive visualization using d3 | Data Visualization library
kandi X-RAY | EventDrops Summary
kandi X-RAY | EventDrops Summary
EventDrops is a time based / event series interactive visualization tool powered by D3.js. If you want to pan and zoom on previous data on your own, here is the demo.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Convert a string to word array
- Base64 encode a string .
- Adds two 64 - bit unsigned negative numbers .
- Convert a word value to a hex value
- Rotate an F .
- Digit matrix
- Adds two numbers .
- Edit an II .
- Rotates the left bits of the given value .
- Fills the FFT
EventDrops Key Features
EventDrops Examples and Code Snippets
import {AfterViewInit, Component} from '@angular/core';
import * as d3 from 'd3';
import * as eventDrops from 'event-drops';
declare global {
interface Window { d3: any; }
}
@Component({
selector: 'some-selector',
templateUrl: '.
Community Discussions
Trending Discussions on EventDrops
QUESTION
I am trying to use Mike Bostock's 'Observable' to re-create a simple HTML webpage, but I am encountering TypeError: Cannot read property 'timeFormat' of undefined
in reference to the line of code that draws the chart, namely:
d3.select('#events').data([repositoriesData]).call(chart);
As visible in my notebook, the error points to the .call(chart)
parameter.
Can anyone help me why I get this error in Observable when the script works just fine in HTML? And how can I fix it?
As evinced by Alpesh Jikadra comment and jsFiddle (below), the JavaScript function works just fine when embedded in a standard HTML page:
...ANSWER
Answered 2018-Apr-02 at 12:00This answer was provided by Tom MacWright in the Observable help forum, where I raised the question after being prompted by Jared Smith:
The event-drops module expects d3 to be just ‘hanging around’ on the window object. This isn’t ideal: modules should really declare their dependencies and load them with AMD, but anyway - it’s not a dealbreaker. I added a cell that sets
window.d3 = d3
and that makes event-drops happy. This was the issue that complained abouttimeFormat
- it expectedd3.timeFormat
to just be there.[Also] I created a cell for the output, and now reference that in
d3.select(events)
instead ofd3.select('#events')
. See the little observer for one explanation of why: cells run the order that they need to depending on each other, so it’s best to connect things liked3.select
to elements on the page based on referencing variables, rather than using strings like‘#events’
to select elements on the page.
QUESTION
I am trying to get a d3.js library called Event-Drops working under a windows machine. Specifically, I want to run the demo and learn how it all works by tweaking one thing at a time.
Now, the github readme for event-drop has instructions to how to do so but I am unable to get anywhere with them. It recommends you install the relevant dependencies first. I am fairly new to the world of JavaScript and according to what I understand the dependencies would require installation of nodejs and a npm install of d3? Local or global install?
Secondly, the install instructions require you to run
...ANSWER
Answered 2018-Mar-29 at 07:23You don't need Node to play with EventDrops, unless you want to contribute (which would be great... yes, I'm a core maintainer. :p)
You can test it without Node either with the related JSFiddle or by including it directly in your page such as:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install EventDrops
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page