You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<a href="https://www.phind.com/search?q=I%27m%20using%20the%20Cytoscape.js%20graph%20theory%20JS%20library.%20How%20do%20I%20create%20a%20graph%20in%20my%20HTML%20page"><img src="https://img.shields.io/badge/Get%20help-Phind-yellow.svg" alt="Ask a question with Phind"></a>
44
43
<a href="https://blog.js.cytoscape.org"><img src="https://img.shields.io/badge/News%20%26%20tutorials-Blog-yellow.svg" alt="News and tutorials"></a>
<h3 id="very-commonly-used-options">Very commonly used options</h3>
2320
2309
<p><span id="init-opts/container"></span>
2321
-
<strong><code>container</code></strong> : A HTML DOM element in which the graph should be rendered. This is unspecified if Cytoscape.js is run headlessly. The container is expected to be an empty div; the visualisation owns the div.</p>
2310
+
<strong><code>container</code></strong> : A HTML DOM element in which the graph should be rendered. This is unspecified if Cytoscape.js is run headlessly. The container is expected to be an empty div with its own width and height set by the page’s styles; the visualisation owns the div’s contents.</p>
2322
2311
<p><span id="init-opts/elements"></span>
2323
2312
<strong><code>elements</code></strong> : An array of <a href="#notation/elements-json">elements specified as plain objects</a>. For convenience, this option can alternatively be specified as a promise that resolves to the elements JSON.</p>
<li><strong><code>text-halign</code></strong> : The vertical alignment of a node’s label; may have value <code>left</code>, <code>center</code>, or <code>right</code>.</li>
15179
+
<li><strong><code>text-halign</code></strong> : The horizontal alignment of a node’s label; may have value <code>left</code>, <code>center</code>, or <code>right</code>.</li>
15191
15180
<li><strong><code>text-valign</code></strong> : The vertical alignment of a node’s label; may have value <code>top</code>, <code>center</code>, or <code>bottom</code>.</li>
0 commit comments