Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/timqian/chart.xkcd
xkcd styled chart lib
https://github.com/timqian/chart.xkcd
chart graph hand-drawn html5 html5-charts svg svg-sprite xkcd
Last synced: about 1 month ago
JSON representation
xkcd styled chart lib
- Host: GitHub
- URL: https://github.com/timqian/chart.xkcd
- Owner: timqian
- License: mit
- Created: 2019-08-05T03:13:05.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-02T06:58:11.000Z (9 months ago)
- Last Synced: 2024-07-18T16:42:12.767Z (about 2 months ago)
- Topics: chart, graph, hand-drawn, html5, html5-charts, svg, svg-sprite, xkcd
- Language: JavaScript
- Homepage: https://timqian.com/chart.xkcd/
- Size: 1010 KB
- Stars: 7,606
- Watchers: 73
- Forks: 199
- Open Issues: 40
-
Metadata Files:
- Readme: readme.md
- Contributing: contributing.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome - chart.xkcd - xkcd styled chart lib (JavaScript)
- my-awesome-list - chart.xkcd
- awesome - timqian/chart.xkcd - xkcd styled chart lib (JavaScript)
- awesome-repositories - timqian/chart.xkcd - xkcd styled chart lib (JavaScript)
- awesome-github-star - chart.xkcd
- awesome-list - chart.xkcd
README
[![](https://raw.githubusercontent.com/timqian/images/master/20190819131226.gif)](https://timqian.com/chart.xkcd/)
> [Who is using chart.xkcd?](https://github.com/timqian/chart.xkcd/issues/14)
## About
Chart.xkcd is a chart library that plots “sketchy”, “cartoony” or “hand-drawn” styled charts.
Check out the [documentation](https://timqian.com/chart.xkcd/) for more instructions and links, or try out the [examples](https://timqian.com/chart.xkcd/example.html), or chat with us in [Slack](https://join.slack.com/t/t9tio/shared_invite/enQtNjgzMzkwMDM0NTE3LTE5ZTUzYjU4Y2I0YzRiZjNkYTkzMzE1ZmM0NDdmYzRlZmMxNGY1MzZlN2EwYjYyNWVlMWY0Nzk2MDBhNWZlY2I)
## Sponsors
[琚致远](https://github.com/juzhiyuan) | [Bytebase](https://bytebase.com/) | [Madao](https://madao.me/) | [SecondState](https://bit.ly/3gfWwps)
[Become a sponsor](https://github.com/sponsors/timqian)
## Quick start
It’s easy to get started with chart.xkcd. All that’s required is the script included in your page along with a single `` node to render the chart.
In the following example we create a line chart.
> **[Preview and edit on codepen](https://codepen.io/timqian/pen/GRKqLaL)**
```html
const svg = document.querySelector('.line-chart')
new chartXkcd.Line(svg, {
title: 'Monthly income of an indie developer',
xLabel: 'Month',
yLabel: '$ Dollars',
data: {
labels:['1', '2', '3', '4', '5', '6','7', '8', '9', '10'],
datasets: [{
label: 'Plan',
data: [30, 70, 200, 300, 500 ,800, 1500, 2900, 5000, 8000],
}, {
label: 'Reality',
data: [0, 1, 30, 70, 80, 100, 50, 80, 40, 150],
}]
},
options: {}
});```
## Contributing
- Code: read the [contributing.md](./contributing.md) file
- Financial:
- [Become a patron](https://www.patreon.com/timqian) - chart.xkcd is an MIT-licensed open source project with its ongoing development made possible entirely by the support of my patrons. If you like this tool, please consider supporting my work by becoming a patron.
- [Fund issues on issuehunt](https://issuehunt.io/r/timqian/chart.xkcd?tab=idle) - Issues on chart.xkcd can be funded by anyone and the money will be distributed to contributors.## Star History
[![Star History Chart](https://api.star-history.com/svg?repos=timqian/chart.xkcd&type=Date)](https://star-history.com/#timqian/chart.xkcd&Date)