Aidan275 / nativeqda-dev

NativeQDA
http://dev.nativeqda.xyz/
GNU General Public License v3.0
2 stars 0 forks source link

Tree map visualisation #42

Open Aidan275 opened 6 years ago

Aidan275 commented 6 years ago

Requirement #: FR_3.1.4_02

The system should generate a tree map to visually represent the frequency of words in a dataset. The size of a rectangle represents the number of times that word has been mentioned in the dataset.

rogersBen commented 6 years ago

To do this will need to either this: { title: "", // Title rootname: "TOP", // Name of top-level entity in case data is an array format: ",d", // Format as per d3.format (https://github.com/mbostock/d3/wiki/Formatting) field: "data", // Object field to treat as data [default: data] width: 960, // Width of SVG height: 500, // Height of SVG margin: { top: 48, right: 0, bottom: 0, left: 0 } // Margin as per D3 convention }

or this:

{ "key": "Asia", "values": [ { "key": "India", "value": 1236670000 }, { "key": "China", "value": 1361170000 }, ... },

There are other visualisations that use data in this format aswell, I was going to try and make something like that from the semantic or relations analysis

rogersBen commented 6 years ago

This was not implemented, none of the data we had matched this sort of visualization. This sort of visualization is good for results with lots of sub categories but because none of our results did this we would've had to either automatically group some analysis results or have the user choose the groups, either way was going to take too long to implement and this was only a medium importance requirement so it was left.