Icon

04_​Example_​for_​Pie_​Chart

Pie Chart Examples<br /><br />In this example, we are building a Pie Chart example using data from the WHO GLOBAL HEALTH OBSERVATORY; you can download the data here<br />https://www.who.int/data/gho/data/themes/topics/topic-details/GHO/vaccine-preventable-communicable-diseases.<br />The dataset shows the total cases of four Vaccine-preventable communicable diseases (Diphtheria, Measles, Mumps and Rubella) in 2020 by country, Region and World Bank Income Group.<br /><br />We use the Pie Chart node from the KNIME Views (Labs). To install this Labs extension, go to 'File > Install KNIME Extensions > KNIME Labs Extensions > KNIME Views (Labs)'.<br /><br />Creating a professional and well-looking Pie Chart is now easier with the Pie Chart (Labs) node. You can add a Donut Chart and control its size. Also, you can configure the Pie Graph size, the label position and much more. Try it with your own data or the given one within this example workflow. <br /><br />With the Pie Chart node from KNIME Views (Labs), you can double-click and configure your chart, then click 'save and execute' and see the results without leaving the configuration window.<br /><br />We have created a component example in the workflow with widgets. You can visualise it on your Local Machine or execute it in the KNIME Business Hub.<br />Definitely, it's a fancier and more updated visualisation node. If you include it within KNIME components, you can build professional dashboards.

Pie Chart Visualization

  • This workflow demonstrates how to create a Pie Chart using data from the WHO GLOBAL HEALTH OBSERVATORY.

  • We are using data on total cases for four Vaccine-preventable communicable diseases (Diphtheria, Measles, Mumps, and Rubella) in 2020, categorized by country, region, and World Bank Income Group

  • You can download the dataset here: WHO GLOBAL HEALTH OBSERVATORY.

  • To learn more about the workflow, click the left bar and check the description section.

Standard Configuration

  1. Double-click the node or hover over the node and click on the gear icon to open the configuration window.

  2. Save and execute to see your changes directly there.

  3. To apply and save your changes, click OK.


Enriched configuration

We manually selected Granularity as the Category dimension from the dataset.

As the Frequency dimension, we chose the column #Reported cases.

Plot
  • Added Title and axis labels

  • Pie Chart size and Donut (with custom size)

  • Label position outside

Interactivity
  • Show tooltip

  • Enable Animation

  • Enable download

  • Publish and subscribe selection


Flow Variable Version

Right-click > Configure Flow Variables...
In the example, we control some plot and interactivity
options with boolean flow variables (enable: true or false).


Data App

  • To open the view, hover over the component and click the lens icon.

  • To access the component, right-click and select "Component", then choose "Open Component".

  • With a Single Selection and a Nominal Value filter Widget, we are dynamically visualizing diseases distribution by Geo Granularity and disease type.

Workflow Data Area Connector
WHO vaccine preventable diseases dataset
Table Reader
Enriched configuration
Pie Chart
Calculating the domain range of all the string columns
Domain Calculator
Pie Chart in a Data App
Boolean variables to configure Pie Chart
Variable Creator
Standard Configuration
Pie Chart
Enriched configuraiton overwritten by Flow variables
Pie Chart
Filtering by Granularity: Country
Nominal Value Row Filter

Nodes

Extensions

Links