The rose chart is a similar visualization to a usual pie chart, except sectors are equal angles and differ rather in how far each sector extends from the center of the circle. Therefore, it's important to notice with the rose chart that it's the area, rather than the radius of a segment that represents its value.
A common use of a rose chart is in showing wind speed or noise levels. The 'axes' for the graph are the directions of a compass and the speed of the wind or the decibel level is then drawn in the appropriate direction.
Data Requirements
Every mod handles missing, corrupted and/or inconsistent data in different ways. It is advised to always review how the data is visualized.
To make the rose chart mod work properly, the data table must be formatted in a certain way. A data table with at least two columns is required. One column should contain the sectors categories. A second column should contain the value for each sector.
Setting Up the Mod
In this example dataset, we have three columns: Month, Season, Avg Speed
Month | Season | Avg Speed |
---|---|---|
January | Winter | 9.37 |
February | Winter | 10.06 |
March | Spring | 11.02 |
April | Spring | 11.28 |
May | Spring | 10.54 |
June | Summer | 9.79 |
July | Summer | 8.91 |
August | Summer | 8.17 |
September | Fall | 8.42 |
October | Fall | 8.87 |
November | Fall | 9.28 |
December | Winter | 9.31 |
In the rose chart configuration in Spotfire, we would specify the 'Month' column from the data table above as our Hierarchy axis and the 'Avg Speed' column as our Size by axis. We can also us the 'Season' column as our Color by axis.
The end result will look something like this:
The chart above shows a sector for each month sized by the average speed and colored by season.
Configuring the Mod
Once the rose chart is configured and has data provided, you can configure when to show sectors labels and also show/hide background circles. These settings are accessed in Editing mode by clicking the settings button on the top right corner of the visualization.
Using the Mod
The rose chart supports marking data and filtering data. Clicking on a sector will mark it. The rose chart also allows marking of multiple sectors using rectangular marking; whilst holding down the mouse click and dragging the cursor across the chart, you can mark one or multiple sectors corresponding to the sectors that the rectangle overlaps with. To unmark all marked sectors, just click the background of the visualization canvas area.
Building the Project
In a terminal window:
- npm install
- npm start
In a new terminal window:
- npm run server
Help and Support
This Mod is not supported by Spotfire® Support.
In the event of issues or to suggest features and enhancements, submit an issue in the Mod's GitHub repository.
For general questions about Mods, please post a question in the Forum for Extensions & Mods to make it visible and routed to the appropriate team(s) to respond.
More Information About Spotfire® Mods
- Spotfire Community Exchange: A safe and trusted place to discover ready-to-use Mods
- Developer Documentation: Introduction and tutorials for Mods developers
- Mods code examples on GitHub: A public repository for example projects
Recommended Comments
There are no comments to display.