marmelab/EventDrops — dự án mã nguồn mở — đang có 1.3k sao GitHub. A time based / event series interactive visualization using d3.js
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Note you don't need this step if you don't use any module bundler.
Since version 1.0, event-drops follows semantic versionning. Hence, we recommend checking your package.json file and ensure that event-drops version is preceded by a carret:
{
"event-drops": "^1.0.0"
}
This way, you'll get all bug fixes and non breaking new features.
Usage
Without a Module Bundler
If you don't use any module bundler such as Webpack, we recommend using EventDrop script available on unpkg.com. Grabbing last versions of the library is as simple as:
You can either use D3 as a specific import (specifying it in first argument of eventDrops call), or use the global one. By default, it fallbacks to a global defined d3.
Interface
eventDrops function takes as a single argument a configuration object, detailed in the:
Configuration Reference
In addition to this configuration object, it also exposes some public members 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) redraws chart using given configuration and d3.scaleTime scale
destroy() execute this function before to removing the chart from DOM. It prevents some memory leaks due to event listeners.
currentBreakpointLabel returns current breakpoint (for instance small) among a list of breakpoints.
Hence, if you want to display number of displayed data and time bounds as in the demo, you can use the following code:
If you want to contribute to EventDrops, first, thank you!
To launch the project locally, grab this repository, install its dependencies, and launch the demo:
git clone [email protected]:marmelab/EventDrops.git
cd EventDrops
make install
make run
Demo will then be available on http://localhost:8080. Source files are watched automatically. Changing one file would automagically reload your browser.
When you are satisfied with your changes, ensure you didn't break anything launching tests:
make test
Finally, if everything is fine, you can then create a pull request.
Feel free to ask some help on GitHub issue tracker. The core team would be glad to help you to contribute.
License
EventDrops is released under the MIT License, courtesy of marmelab and Canal Plus. It means you can use this tool without any restrictions.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/marmelab/EventDrops là nguồn chính thức.
marmelab/EventDrops có phải mã nguồn mở không?
Có — marmelab/EventDrops phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/marmelab/EventDrops.
marmelab/EventDrops là gì?
marmelab/EventDrops (marmelab/EventDrops) là dự án JavaScript trên GitHub. Theo mô tả gốc: A time based / event series interactive visualization using d3.js
Đọc đầy đủ README ở tab phía trên.
EventDrops có đáng để bạn bỏ thời gian?
ChatGPT, Claude và Perplexity đều đọc được trang này. Hỏi thử xem họ nghĩ gì về EventDrops.