Skip to content

Commit bcff219

Browse files
make prettier paragraphs
1 parent 5092e30 commit bcff219

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_posts/reference_pages/2016-06-03-plotly_js_function_ref.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ <h4 id="plotly-update"><a href="{{ BASE_URL }}/javascript/plotlyjs-function-refe
304304
<h4 id="plotly-addtraces"><a href="{{ BASE_URL }}/javascript/plotlyjs-function-reference/#plotlyaddtraces">Plotly.addTraces</a></h4>
305305
<em>This function has comparable performance to <a href="#plotlyreact"><code>Plotly.react</code></a> and is faster than redrawing the whole plot with <a href="#plotlynewplot"><code>Plotly.newPlot</code></a>.</em><br /><br />
306306

307-
This allows you to add <b>new</b> traces to an existing <code>graphDiv</code> at any location in its <a href='#retrieving-data-layout'>data array</a>. Every <code>graphDiv</code> object has a <code>data</code> component which is an array of JSON blobs that each describe a traces. The full list of trace types can be found <a href="{{ BASE_URL }}/javascript/reference/">in the Full Reference</a>.
307+
This allows you to add <b>new</b> traces to an existing <code>graphDiv</code> at any location in its <a href='#retrieving-data-layout'>data array</a>. Every <code>graphDiv</code> object has a <code>data</code> component which is an array of JSON blobs that each describe one trace. The full list of trace types can be found <a href="{{ BASE_URL }}/javascript/reference/">in the Full Reference</a>.
308308

309309

310310
<pre><code class="language-javascript hljs" data-lang="javascript">
@@ -340,7 +340,7 @@ <h4 id="plotly-movetraces"><a href="{{ BASE_URL }}/javascript/plotlyjs-function-
340340
<em>This function has comparable performance to <a href="#plotlyreact"><code>Plotly.react</code></a> and is faster than redrawing the whole plot with <a href="#plotlynewplot"><code>Plotly.newPlot</code></a>.</em><br /><br />
341341
This allows you to reorder traces in an existing <code>graphDiv</code>. This will change the ordering of the layering and the legend.
342342

343-
All traces defined in a Plotly chart are drawn one by one from the first to last one in their order. Each time a new layer or trace is drawn, the active trace replaces the colors of the traces and background drawn before. This type of stacking is known as the <a href='https://www.youtube.com/watch?v=oMgOR3PxmDU'>Painter's Algorithm</a> and as its name implies, is typically how a painter paints a landscape, starting from the furthest depth the the smallest depth.
343+
All traces defined in <code>graphDiv</code> are ordered in an array. They are drawn one by one from first to last. Each time a new layer or trace is drawn to the canvas the new trace is drawn directly over the current canvas, replacing the colors of the traces and background. This algorithm to image stacking/drawing is known as the <a href='https://www.youtube.com/watch?v=oMgOR3PxmDU'>Painter's Algorithm</a>. As its name implies the Painter's Algorithm is typically the manner in which a painter paints a landscape, starting from objects with the most perspective depth and progressively moving forward and layering over the background objects.
344344

345345
<pre><code class="language-javascript hljs" data-lang="javascript">
346346
// move the first trace (at index 0) the the end of the data array

0 commit comments

Comments
 (0)