Skip to content

Commit 1d5a249

Browse files
authored
Merge pull request #7469 from plotly/fix-doc-formatting
fix: minor documentation formatting issues
2 parents e226c16 + cc688b8 commit 1d5a249

File tree

8 files changed

+78
-78
lines changed

8 files changed

+78
-78
lines changed

src/components/annotations/attributes.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ module.exports = templatedArray('annotation', {
4949
description: [
5050
'Sets the text associated with this annotation.',
5151
'Plotly uses a subset of HTML tags to do things like',
52-
'newline (<br>), bold (<b></b>), italics (<i></i>),',
53-
'hyperlinks (<a href=\'...\'></a>). Tags <em>, <sup>, <sub>, <s>, <u>',
54-
'<span> are also supported.'
52+
'newline (`<br>`), bold (`<b></b>`), italics (`<i></i>`),',
53+
'hyperlinks (`<a href=\'...\'></a>`). Tags `<em>`, `<sup>`,',
54+
'`<sub>`, `<s>`, `<u>`, and `<span>` are also supported.'
5555
].join(' ')
5656
},
5757
textangle: {

src/components/errorbars/attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = {
1616
description: [
1717
'Determines the rule used to generate the error bars.',
1818

19-
'If *constant`, the bar lengths are of a constant value.',
19+
'If *constant*, the bar lengths are of a constant value.',
2020
'Set this constant in `value`.',
2121

2222
'If *percent*, the bar lengths correspond to a percentage of',

src/plots/cartesian/layout_attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ module.exports = {
335335
description: [
336336
'If *normal*, the range is computed in relation to the extrema',
337337
'of the input data.',
338-
'If *tozero*`, the range extends to 0,',
338+
'If *tozero*, the range extends to 0,',
339339
'regardless of the input data',
340340
'If *nonnegative*, the range is non-negative,',
341341
'regardless of the input data.',

src/plots/polar/layout_attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ var radialAxisAttrs = {
7474
dflt: 'tozero',
7575
editType: 'calc',
7676
description: [
77-
'If *tozero*`, the range extends to 0,',
77+
'If *tozero*, the range extends to 0,',
7878
'regardless of the input data',
7979
'If *nonnegative*, the range is non-negative,',
8080
'regardless of the input data.',

src/plots/template_attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ exports.hovertemplateAttrs = function(opts, extra) {
7676
'The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data.',
7777
'Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available.',
7878
descPart,
79-
'Anything contained in tag `<extra>` is displayed in the secondary box, for example "<extra>{fullData.name}</extra>".',
79+
'Anything contained in tag `<extra>` is displayed in the secondary box, for example `<extra>%{fullData.name}</extra>`.',
8080
'To hide the secondary box completely, use an empty tag `<extra></extra>`.'
8181
].join(' ')
8282
};

src/traces/carpet/axis_attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ module.exports = {
8686
description: [
8787
'If *normal*, the range is computed in relation to the extrema',
8888
'of the input data.',
89-
'If *tozero*`, the range extends to 0,',
89+
'If *tozero*, the range extends to 0,',
9090
'regardless of the input data',
9191
'If *nonnegative*, the range is non-negative,',
9292
'regardless of the input data.'

src/traces/contour/attributes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,11 +226,11 @@ module.exports = extendFlat({
226226
'Sets the value or values of the constraint boundary.',
227227

228228
'When `operation` is set to one of the comparison values',
229-
'(' + COMPARISON_OPS2 + ')',
229+
'(`' + COMPARISON_OPS2 + '`)',
230230
'*value* is expected to be a number.',
231231

232232
'When `operation` is set to one of the interval values',
233-
'(' + INTERVAL_OPS + ')',
233+
'(`' + INTERVAL_OPS + '`)',
234234
'*value* is expected to be an array of two numbers where the first',
235235
'is the lower bound and the second is the upper bound.',
236236
].join(' ')

test/plot-schema.json

Lines changed: 68 additions & 68 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)