Skip to content

Commit a5fc046

Browse files
committed
Fix examples
1 parent b14f100 commit a5fc046

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

lib/node_modules/@stdlib/plot/base/ctor/lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,11 +1151,11 @@ Object.defineProperty( Plot.prototype, 'yRange', {
11511151
*
11521152
* @example
11531153
* var plot = new Plot();
1154-
* plot.yTickFormat = '.2f%';
1154+
* plot.yTickFormat = '.0%';
11551155
*
11561156
* @example
11571157
* var plot = new Plot({
1158-
* 'yTickFormat': '.2f%'
1158+
* 'yTickFormat': '.0%'
11591159
* });
11601160
* var fmt = plot.yTickFormat;
11611161
* // returns <Function>

lib/node_modules/@stdlib/plot/ctor/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -771,15 +771,15 @@ var plot = new Plot({
771771
'yScale': 'linear'
772772
});
773773

774-
plot.yTickFormat = '.2f%';
774+
plot.yTickFormat = '.0%';
775775
```
776776

777777
When retrieved, if the value has not been set to `null`, the returned value is a formatting `function`.
778778

779779
```javascript
780780
var plot = new Plot({
781781
'yScale': 'linear',
782-
'yTickFormat': '.2f%'
782+
'yTickFormat': '.0%'
783783
});
784784

785785
var fmt = plot.yTickFormat;

lib/node_modules/@stdlib/plot/ctor/lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,11 +1012,11 @@ Object.defineProperty( Plot.prototype, 'xTickFormat', {
10121012
*
10131013
* @example
10141014
* var plot = new Plot();
1015-
* plot.yTickFormat = '.2f%';
1015+
* plot.yTickFormat = '.0%';
10161016
*
10171017
* @example
10181018
* var plot = new Plot({
1019-
* 'yTickFormat': '.2f%'
1019+
* 'yTickFormat': '.0%'
10201020
* });
10211021
* var fmt = plot.yTickFormat;
10221022
* // returns <Function>

0 commit comments

Comments
 (0)