generated from jackyzha0/quartz
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Affected files: content/.obsidian/plugins/recent-files-obsidian/data.json content/.obsidian/workspace.json content/chart-js/Chart.js.md content/chart-js/Getting Started with Chart.js.md
- Loading branch information
Showing
4 changed files
with
74 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
title: Chart.js | ||
draft: false | ||
date: 2023-10-02 11:22 | ||
tags: | ||
- chart-js | ||
- learning | ||
--- | ||
|
||
Chart.js is a widely-used charting library for JavaScript developers, boasting approximately 60,000 [GitHub stars](https://github.com/chartjs/Chart.js) and around 2,400,000 weekly [npm downloads](https://www.npmjs.com/package/chart.js) as of October 2023. It not only provides default [chart types](https://www.chartjs.org/docs/latest/charts/area.html) with a variety of [plugins](https://github.com/chartjs/awesome#plugins), configurations, and animations but also offers numerous additional [community-maintained chart types](https://github.com/chartjs/awesome#charts). Furthermore, it is possible to combine several chart types into a [mixed chart](https://www.chartjs.org/docs/latest/charts/mixed.html). | ||
|
||
In addition to its well-maintained, easy-to-use, and out-of-the-box functionalities, Chart.js offers two compelling advantages that users appreciate: a developer-friendly experience and high performance. | ||
|
||
For developer experience, Chart.js includes built-in TypeScript typings and is compatible with [React](https://github.com/reactchartjs/react-chartjs-2), Vue, Svelte, and Angular. Furthermore, Chart.js offers comprehensive [documentation](https://www.chartjs.org/docs/latest/), an extensive [API reference](https://www.chartjs.org/docs/latest/api/), and a variety of [examples](https://www.chartjs.org/docs/latest/samples/information.html). Developers can also find numerous solved questions on Stack Overflow tagged with `chart.js`. | ||
|
||
For performance, Chart.js renders chart elements on an HTML5 canvas instead of as SVG, which can require managing thousands of SVG nodes in the DOM tree. This approach makes Chart.js well-suited for handling large datasets, even without the need for [data parsing and normalization](https://www.chartjs.org/docs/latest/general/performance.html). Additionally, developers have the option to implement [data decimation](https://www.chartjs.org/docs/latest/configuration/decimation.html) to sample the dataset and reduce the chart's size before rendering. Chart.js also supports tree-shaking, allowing you to further reduce the bundle size. | ||
|
||
> [!info] References | ||
> - [Chart.js | Chart.js (chartjs.org)](https://www.chartjs.org/docs/latest/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
title: Getting Started with Chart.js | ||
draft: false | ||
date: 2023-10-02 11:41 | ||
tags: | ||
- chart-js | ||
- learning | ||
--- | ||
|
||
> [!tldr] TL;DR | ||
> Write some tldr | ||
1. create package.json | ||
2. create index.html, the chart is responsive by default | ||
3. create js file to load the chart into canvas | ||
4. | ||
|
||
> [!info] References | ||
> - [Step-by-step guide | Chart.js (chartjs.org)](https://www.chartjs.org/docs/latest/getting-started/usage.html) |