marmelab / marmelab/EventDrops

Generate a chart from any type of data array

Open
#103 1 comment 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
1.3k
Forks
233
PR merge metrics
No merged PRs in 30d

Description

The .date function should be used like this:

``` js
var eventDropsChart = d3.chart.eventDrops()
.date(function(d){ return d.date; });

d3.select('#chart_placeholder')
.datum(data)
.call(eventDropsChart);`
```

Instead of

``` js
var eventDropsChart = d3.chart.eventDrops();

d3.select('#chart_placeholder')
.datum(data)
.date(function(d){
return d.date;
}),
.call(eventDropsChart);
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the eventDrops chart entry point and compare the two .date invocation examples in the issue. Reproduce both data-binding patterns in the chart, then verify that the accessor is applied correctly when .date is configured before or after the chart is called.

Written by the indexing model from the issue text.

Assessment

Tech stack
d3js, javascript
Domain
data-visualization
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.