Hi, I'm ChinHua, a software engineer who works in a project that use Exhibit to visualize a set of data. We followed the guide from Getting Started with Exhibit and successfully create a demo version. The following HTML code shows the working set. We are using JSON file as input. The attached first.js is the sample data that work with this HTML code.
However, we would like to enrich the topics with weight. You can find the
new data format of topics in the second.js file. Obviously, I failed to make
it work. We would like do two things:
1. Replace the ".topics" with "topicId" attributes for the first div that
contains ".topics"
2. Add the weight of the topicId to the words cloud so that it distinguish
based on the topicId weight.
Could you advise me on these?
Existing HTML code:
<div class="Hfacet" id="HfacetDiv" >
<div ex:role="facet" ex:expression=".topics" ex:facetLabel="Topics"
ex:sortMode="count" ex:showMissing="false"></div>
</div>
<div id="plotDivFrame">
<div id="plotDiv">
<div class="clouds plotframe" id="cloudsFrame" >
<div ex:role="facet" id="cloudsFrameIn"
ex:facetClass="Cloud"
ex:expression=".topics"
ex:showMissing="false"
></div>
</div>
</div>
--
Best and Regards,
Chin Hua Kong
--
You received this message because you are subscribed to the Google Groups
"SIMILE Widgets" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/simile-widgets?hl=en.
first.js
Description: JavaScript source
second.js
Description: JavaScript source
