mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-07 20:59:08 +02:00
Merge branch 'master' of github.com:nnnick/Chart.js
# By Amir E. Aharoni # Via Amir E. Aharoni (1) and Evert Timberg (1) * 'master' of github.com:nnnick/Chart.js: Fix the spelling of "separate"
This commit is contained in:
commit
d5f1738a3f
@ -176,7 +176,7 @@ npm install -g gulp
|
|||||||
|
|
||||||
This will install the local development dependencies for Chart.js, along with a CLI for the JavaScript task runner <a href="http://gulpjs.com/" target="_blank">gulp</a>.
|
This will install the local development dependencies for Chart.js, along with a CLI for the JavaScript task runner <a href="http://gulpjs.com/" target="_blank">gulp</a>.
|
||||||
|
|
||||||
Now, we can run the `gulp build` task, and pass in a comma seperated list of types as an argument to build a custom version of Chart.js with only specified chart types.
|
Now, we can run the `gulp build` task, and pass in a comma-separated list of types as an argument to build a custom version of Chart.js with only specified chart types.
|
||||||
|
|
||||||
Here we will create a version of Chart.js with only Line, Radar and Bar charts included:
|
Here we will create a version of Chart.js with only Line, Radar and Bar charts included:
|
||||||
|
|
||||||
|
@ -407,7 +407,7 @@
|
|||||||
var maxValue = max(valuesArray),
|
var maxValue = max(valuesArray),
|
||||||
minValue = min(valuesArray);
|
minValue = min(valuesArray);
|
||||||
|
|
||||||
// We need some degree of seperation here to calculate the scales if all the values are the same
|
// We need some degree of separation here to calculate the scales if all the values are the same
|
||||||
// Adding/minusing 0.5 will give us a range of 1.
|
// Adding/minusing 0.5 will give us a range of 1.
|
||||||
if (maxValue === minValue){
|
if (maxValue === minValue){
|
||||||
maxValue += 0.5;
|
maxValue += 0.5;
|
||||||
|
@ -294,7 +294,7 @@
|
|||||||
},this);
|
},this);
|
||||||
|
|
||||||
|
|
||||||
// Control points need to be calculated in a seperate loop, because we need to know the current x/y of the point
|
// Control points need to be calculated in a separate loop, because we need to know the current x/y of the point
|
||||||
// This would cause issues when there is no animation, because the y of the next point would be 0, so beziers would be skewed
|
// This would cause issues when there is no animation, because the y of the next point would be 0, so beziers would be skewed
|
||||||
if (this.options.bezierCurve){
|
if (this.options.bezierCurve){
|
||||||
helpers.each(pointsWithValues, function(point, index){
|
helpers.each(pointsWithValues, function(point, index){
|
||||||
|
Loading…
Reference in New Issue
Block a user