-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFR] Responsive chart #249
Changes from 2 commits
d98f6d9
3afe593
5935c75
953e672
6a437fd
d5f3d5f
34a2036
569054a
d04a819
ed82c73
9b7dee7
de5fb75
36ffb89
871acb9
fdbf768
91f2365
eacc059
2be4abb
fd56c95
1ff0a37
f18f262
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,9 +84,10 @@ You can either use D3 as a specific import (specifying it in first argument of ` | |
|
||
In addition to this configuration object, it also exposes some public methods allowing you to customize your application based on filtered data: | ||
|
||
* **scale()** provides the horizontal scale, allowing you to retrieve bounding dates thanks to `.scale().domain()`, | ||
* **filteredData()** returns an object with both `data` and `fullData` keys containing respectively bounds filtered data and full dataset. | ||
* **draw(config, scale)** redraw chart using given configuration and `d3.scaleTime` scale | ||
* **scale()** provides the horizontal scale, allowing you to retrieve bounding dates thanks to `.scale().domain()`, | ||
* **filteredData()** returns an object with both `data` and `fullData` keys containing respectively bounds filtered data and full dataset. | ||
* **draw(config, scale)** redraw chart using given configuration and `d3.scaleTime` scale | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. s/redraw/redraws/ |
||
* **destroy** execute this function before to removing the chart from DOM. It prevents some memory leaks due to event listeners. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. s/execute this function before to removing the chart from DOM/should be executed whenever you remove the chart from DOM/ There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. s/destroy/destroy()/ |
||
|
||
Hence, if you want to display number of displayed data and time bounds as in the [demo](https://marmelab.com/EventDrops/), you can use the following code: | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/methods/members/