Skip to content

Commit

Permalink
release:V3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
linxin committed Nov 1, 2019
1 parent 0abf986 commit 9469b4d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,17 @@
<br>
</p>

## Demo
## Document
- [中文文档](https://lin-xin.gitee.io/example/schart/)
- [English](https://lin-xin.gitee.io/example/schart/en/)

- [Demo](http://blog.gdfengshuo.com/example/sChart/demo.html)
- [Demo code](https://github.com/lin-xin/sChart.js/blob/master/example/chart.html)
## Demo

![demo](http://blog.gdfengshuo.com/example/sChart/static/img/demo.png)
![柱状图](https://lin-xin.gitee.io/example/schart/assets/img/1.6ad92a2c.png)
![折线图](https://lin-xin.gitee.io/example/schart/assets/img/2.c260f420.png)
![饼状图](https://lin-xin.gitee.io/example/schart/assets/img/3.bfe79000.png)
![环形图](https://lin-xin.gitee.io/example/schart/assets/img/4.5db72d39.png)

## Doc
- [中文文档](http://blog.gdfengshuo.com/example/sChart/index.html)
- [English](http://blog.gdfengshuo.com/example/sChart/en.html)

## Chart Types
The following chart types are implemented:
Expand Down
2 changes: 1 addition & 1 deletion lib/sChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@
ctx.fillText(text, x + (5 * i + 3) * S10 + textWidth, this.canvas.height - legend.bottom);
} else {
ctx.fillRect(S10, legend.top + 2 * S10 * i, 2 * S10, S10);
ctx.fillStyle = legend.olor;
ctx.fillStyle = legend.color;
ctx.fillText(text, 4 * S10, legend.top + 2 * S10 * i + 0.5 * S10);
}

Expand Down
2 changes: 1 addition & 1 deletion lib/sChart.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ class Schart {
ctx.fillText(text, x + (5 * i + 3) * S10 + textWidth, this.canvas.height - legend.bottom);
} else {
ctx.fillRect(S10, legend.top + 2 * S10 * i, 2 * S10, S10);
ctx.fillStyle = legend.olor;
ctx.fillStyle = legend.color;
ctx.fillText(text, 4 * S10, legend.top + 2 * S10 * i + 0.5 * S10);
}
textWidth += Math.ceil(ctx.measureText(text).width);
Expand Down

0 comments on commit 9469b4d

Please sign in to comment.