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
ElenaPochernina edited this page Jan 23, 2017
·
1 revision
An InteractiveDataDisplay plot which contains one or more div elements, defined declaratively in HTML or added imperatively.
API
HTML
In HTML, DOM plot is indicated by the attribute data-idd-plot="dom".
<scripttype="text/javascript">$(document).ready(function(){varchart=InteractiveDataDisplay.asPlot($("#chart"));});</script><divid="chart" data-idd-plot="chart" style="width: 800px; height: 600px;"><divid="dom" data-idd-plot="dom"><divdata-idd-position="0 0" data-idd-scale="none" style="width:150px; text-align:left;">
The first DOM element
</div><divdata-idd-position="1.5 -1" data-idd-origin="0.5 0" data-idd-scale="none" style="width:150px; text-align:center;">
The second DOM element
</div><divdata-idd-position="3 0" data-idd-origin="1 0" data-idd-scale="none" style="width:150px; text-align:right;">
The third DOM element
</div></div></div>