Skip to content

Commit 7fc7dfa

Browse files
committed
fix a few typos
1 parent ba9b933 commit 7fc7dfa

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/plots/plots.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1635,7 +1635,7 @@ plots.doCalcdata = function(gd, traces) {
16351635
// call calcTransform method if any
16361636
if(trace.transforms) {
16371637

1638-
// we need one round of of trace module calc before
1638+
// we need one round of trace module calc before
16391639
// the calc transform to 'fill in' the categories list
16401640
// used for example in the data-to-coordinate method
16411641
_module = trace._module;

src/transforms/filter.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ exports.attributes = {
5454
'*[]* filters items inside `value[0]` to value[1]` including both bounds`',
5555
'*()* filters items inside `value[0]` to value[1]` excluding both bounds`',
5656
'*[)* filters items inside `value[0]` to value[1]` including `value[0]` but excluding `value[1]',
57-
'*(]* filters items inside `value[0]` to value[1]` including both bounds`',
57+
'*(]* filters items inside `value[0]` to value[1]` excluding `value[0]` but including `value[1]',
5858

5959
'*][* filters items outside `value[0]` to value[1]` and not equal to both bounds`',
6060
'*)(* filters items outside `value[0]` to value[1]`',
@@ -76,7 +76,7 @@ exports.attributes = {
7676

7777
'When `operation` is set to one of the inequality values',
7878
'(' + INEQUALITY_OPS + ')',
79-
'*value* is expected to be number or a string.',
79+
'*value* is expected to be a number or a string.',
8080

8181
'When `operation` is set to one of the interval value',
8282
'(' + INTERVAL_OPS + ')',
@@ -166,8 +166,8 @@ function getDataToCoordFunc(gd, filtersrc) {
166166
// -> cast to String
167167
if(filtersrc === 'ids') return function(v) { return String(v); };
168168

169-
// otherwise -> case to number
170-
return function(v) { return +(v); };
169+
// otherwise -> cast to Number
170+
return function(v) { return +v; };
171171
}
172172

173173
function getFilterFunc(opts, d2c) {

0 commit comments

Comments
 (0)