Jump to content
  • Circular Bar Chart Mod for Spotfire®


    This article explains how to create and use a Circular Bar Chart Mod for Spotfire® using Vega. It provides step-by-step instructions on opening, configuring, and utilizing the mod in Spotfire® Analyst. The guide details necessary data requirements and includes steps for building the project. The mod visualizes categorical data in a unique radial format, improving data analysis and presentation in Spotfire®.

    Circular Bar Chart Mod for Spotfire®

    The Circular Bar Chart Mod for Spotfire® is a custom visualization built using Vega specifications. This mod provides a unique way to visualize categorical data in a circular format, offering an alternative to traditional bar charts by arranging the bars in a radial layout.

    About Vega

    Vega is a visualization grammar and framework for creating expressive, interactive, and highly customizable visualizations. It provides a declarative format for describing visualizations in JSON, making it easy to create complex visualizations with a concise and intuitive syntax. In the context of the Circular Bar Chart Mod, Vega specifications are used to define the visual properties and behavior of the chart, ensuring a high level of customization and interactivity. By leveraging Vega, users can create visually compelling and informative charts that enhance data analysis and presentation in Spotfire.

    Industry Use Cases

    • Oil and Gas: The Circular Bar Chart can be used to display production data from multiple wells, with each segment representing a different well. This allows for a quick comparison of production levels in a compact and visually appealing format.
    • Manufacturing: In manufacturing, this visualization can be used to track the production output of various production lines or machines. Each segment can represent different machinery or production units, helping to identify efficiency levels and areas that need improvement.
    • Healthcare: In healthcare, this visualization can be used to show patient distribution across different departments or conditions. For instance, it can display the number of patients in various wards or the distribution of different types of diagnoses, enabling better resource allocation and patient management.
    • Retail: Retailers can use this mod to visualize sales data across different product categories or store locations. Each segment of the chart can represent a different category or location, helping to identify top-performing areas quickly.
    • Marketing: Marketing teams can use the Circular Bar Chart to visualize campaign performance metrics across different channels, allowing for a clear comparison of engagement and conversion rates.

     

    image.png.7f3db311d70a388e035037b63e25b949.png

    Try this Mod in Spotfire® Analyst

    How to open the mod

    1. Open Spotfire® Analyst, and create an analysis by loading some data.
    2. Locate the downloaded .mod file.
    3. Drag the file into the analysis.
    4. The visualization mod is added to the analysis.
    5. To learn more about the capabilities and limitations of this visualization mod, keep reading or see the User Guide which is also located in the downloaded folder.

    For general information on how to use and share visualization mods, you can read the Spotfire documentation.

    Data Requirements

    Every mod handles missing, corrupted and/or inconsistent data in different ways. Always review how the data is visualized.

    To render the circular bar chart correctly, the following data structure is required:

    • X-Axis: contains the categorical variable that defines the bars.
    • Y-Axis: contains the numeric value to be displayed on the chart.
    • Colors: An additional category for color representation.

    Sample Data

    AD_4nXdwEiCu8bapDVlOBMp22nfRD-V4TyL4oWMGQ-PPa027ocQ0FhJ4IiWKNLqnHWtnaLr1koI5CsNoYQxVaxv-mI9KsvdBz_pROyeHkfJEcK5TCR84mpc6XNE7ue196nnTY2F3W05ZsxU5-gZ5lGpXZi3Hjls?key=byMgyGUWZJBwQck6TCH8NQ

     

    Setting Up the Circular Bar Chart

    The mod includes several configuration options:

    • Start Angle (Default: -2.5): The starting angle for the bars.
    • End Angle (Default: 2.5): The ending angle for the bars.
    • Pad Angle (Default: 0): The padding angle between bars.
    • Band Padding (Default: 0.15): The padding between bands.
    • Inner Radius (Default: 60): The inner radius of the chart.
    • Corner Radius (Default: 0): The corner radius of the bars.
    • Offset (Default: "zero"): The offset for the bars.

    AD_4nXfvHox-h_eqq_Fw3iJjZjIpKg7M-sl_SH6Ae99PxovissU0GLhKVedtTeofiD_22g2OdycT9D2ade2biu4p6lRiS2W47uT_Glpt2piWKERWbyGoSX1lrDizva0BJoyKCmSLg_16WCABkP2yDX8zx04LgqOP?key=byMgyGUWZJBwQck6TCH8NQ

    Using the Circular Bar Chart

    After configuring the mod, it will render a circular bar chart where each bar represents a category, arranged radially.

    Marking

    • Supports marking of bar segments.
    • Click a bar segment to mark it.
    • Use CTRL-Click to add/remove segments from marking.
    • Click in any open area to clear the marking.

    Help and support

    This Mod for Spotfire® 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 Mods for Spotfire®


    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Create New...