Subchart incompatible with intializing charts without "bindto"
- Dominant language
- JavaScript
- Stars
- 9.3k
- Forks
- 1.4k
- Avg merge
- 6d 16h
- Merged PRs (30d)
- 1
Description
I use the solution outlined in #382 to render multiple charts on one page.
When experimenting with adding a subchart, I noticed that these seem to be incompatible.
When using the `$('#id').append(chart.element);` method, the subchart renders, but the event listeners that bind to the brushes are not bound correctly. Switching to the `bindto` method makes the bug disappear.
Contributor guide
Research direction
Start by reviewing the approach described in #382 and reproducing the issue with multiple charts and a subchart. Compare initialization through $('#id').append(chart.element) with the bindto method, focusing on whether brush event listeners are bound correctly. Done means both initialization paths render the subchart and bind its brush events correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- d3, javascript
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100