File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ var bins = ecStat.histogram(data, binMethod);
72
72
73
73
##### Return Value
74
74
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.
76
76
* `bins.bins` - `Array.<Object>`. An array of bins, where each bin is an object, containing three attributes:
77
77
* `x0` - `number`. The lower bound of the bin (inclusive).
78
78
* `x1` - `number`. The upper bound of the bin (exclusive).
@@ -81,7 +81,7 @@ var bins = ecStat.histogram(data, binMethod);
81
81
82
82
#### Examples
83
83
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 ` .
85
85
86
86
``` html
87
87
<script src =' https://cdn.bootcss.com/echarts/3.4.0/echarts.js' ></script >
@@ -93,8 +93,7 @@ var option = {
93
93
...
94
94
xAxis: [{
95
95
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
98
97
scale: true
99
98
}],
100
99
...
You can’t perform that action at this time.
0 commit comments