Skip to content

Commit b304fa6

Browse files
committed
update readme
1 parent b3b1db2 commit b304fa6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ var bins = ecStat.histogram(data, binMethod);
7272

7373
##### Return Value
7474

75-
* `bins` - `Object`. Contain detail messages of each bin and data used for [ECharts](https://github.com/ecomfe/echarts) to draw the bar chart.
75+
* `bins` - `Object`. Contain detailed messages of each bin and data used for [ECharts](https://github.com/ecomfe/echarts) to draw the bar chart.
7676
* `bins.bins` - `Array.<Object>`. An array of bins, where each bin is an object, containing three attributes:
7777
* `x0` - `number`. The lower bound of the bin (inclusive).
7878
* `x1` - `number`. The upper bound of the bin (exclusive).
@@ -81,7 +81,7 @@ var bins = ecStat.histogram(data, binMethod);
8181

8282
#### Examples
8383

84-
When using ECharts bar chart to draw the histogram, we must notice that, setting the xAxis scale is true.
84+
When using ECharts bar chart to draw the histogram, we must notice that, setting the `xAxis.scale` as `true`.
8585

8686
```html
8787
<script src='https://cdn.bootcss.com/echarts/3.4.0/echarts.js'></script>
@@ -93,8 +93,7 @@ var option = {
9393
...
9494
xAxis: [{
9595
type: 'value',
96-
// this must be set, otherwise barWidth and bins width
97-
// can not corresponding on
96+
// this must be set as true, otherwise barWidth and bins width can not corresponding on
9897
scale: true
9998
}],
10099
...

0 commit comments

Comments
 (0)