# Solutions to "Just KNIME It!" Challenge 22

**URL:** <https://forum.knime.com/t/solutions-to-just-knime-it-challenge-22/44454>\
**Category:** Just KNIME It!\
**Tags:** justknimeit\
**Created:** [June 22, 2022, 1:25pm UTC](https://forum.knime.com/t/solutions-to-just-knime-it-challenge-22/44454 "2022-06-22T13:25:34Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![alinebessa](https://forum-cdn.knime.com/user_avatar/forum.knime.com/alinebessa/32/33306_2.png) [@alinebessa](https://forum.knime.com/u/alinebessa)\
**Post date:** [June 22, 2022, 1:25pm UTC](https://forum.knime.com/t/solutions-to-just-knime-it-challenge-22/44454/1 "2022-06-22T13:25:34Z")

</div>

🏳️‍🌈 🌈 This thread is for posting solutions to “Just KNIME It!” Challenge 22, which touches on a very important topic: sexual orientation rights around the world. 🏳️‍🌈 🌈

Here is the challenge: [Just KNIME It! | KNIME](https://www.knime.com/just-knime-it)

Feel free to link your solution from [KNIME Hub](https://hub.knime.com/)as well!

Have an idea for a challenge? We’d love to hear it! 😍 Tell us all about it [here](https://forum.knime.com/t/community-just-knime-it-challenges/40506/5).

---

<div class="post-metadata">

**Author:** ![morpheusTM](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/m/f07891/32.png) [@morpheusTM](https://forum.knime.com/u/morpheusTM)\
**Post date:** [June 22, 2022, 3:23pm UTC](https://forum.knime.com/t/solutions-to-just-knime-it-challenge-22/44454/2 "2022-06-22T15:23:10Z")

</div>

Hi, here is my solution:

> **[justknimeit-22 – morpheustm](https://hub.knime.com/morpheustm/spaces/Public/latest/justknimeit-22~H9_m4WpwGu0puVWU)**
>
> Solution to the justknimeit-22 challenge

---

<div class="post-metadata">

**Author:** ![martinmunch](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/m/8dc957/32.png) [@martinmunch](https://forum.knime.com/u/martinmunch)\
**Post date:** [June 23, 2022, 9:16am UTC](https://forum.knime.com/t/solutions-to-just-knime-it-challenge-22/44454/3 "2022-06-23T09:16:52Z")

</div>

hi

here’s my solution.  
Fun challenge, where you get to work with the viz nodes. The challenge brought me back to challenge 7 both in theme and that I got to work with the cool opensource rest API [restcountries.com](https://restcountries.com/) to enrich dataset with continent/region. I didn’t want to clean the country-column too much, so I lose a few countries in the API call.

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/0/4/04fdc949c32781b0ffba53b5322b7b6f3b8ff05e.png)

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/e/2/e2bfff403da00bf3b410b37c7ebb1a43a2652f9c.png)

> **[KNIME\_challenge22\_solution – martinmunch](https://hub.knime.com/martinmunch/spaces/Public/latest/KNIME_challenge22_solution~-YkVKeHgjm4fI4EF)**
>
> Challenge 22: Pride

cheers

---

<div class="post-metadata">

**Author:** ![lelloba](https://forum-cdn.knime.com/user_avatar/forum.knime.com/lelloba/32/43992_2.png) [@lelloba](https://forum.knime.com/u/lelloba)\
**Post date:** [June 23, 2022, 1:20pm UTC](https://forum.knime.com/t/solutions-to-just-knime-it-challenge-22/44454/4 "2022-06-23T13:20:06Z")

</div>

Hello,

here is my solution to this challenge:

> **[justknimeit - 22 - Raffaello Barri – lelloba](https://hub.knime.com/lelloba/spaces/Public/latest/Just%20Knime%20it!/justknimeit%20-%2022%20-%20Raffaello%20Barri~KVVqI_x1hEeinskL)**
>
> Solutions for data science: find workflows, nodes and components, and collaborate in spaces.

I imported an Excel file containing the continent to which each country belongs. It comes from Wikipedia ([Countries and continents](https://en.wikipedia.org/wiki/List_of_countries_and_dependencies_by_population)).  
With a Joiner node I then imported the continent.  
Since some country names slightly differ (few rows, fortunately), I decided to use a Table Editor to manually insert the remaining continent names. This is not the most robust solution but I didn’t want to make API calls.

I am not quite satisfied with the sunburst charts. I am struggling to change the colours in the way I want (colour assigned for both continent and marriage legalisation). Can someone provide an example of how to do it? I tried to use a Color Manager node, but only one category can be modified, the other one becomes black. Also using two Color Manager nodes does not work, because colour is assigned for each row according to only one dimension.

Have a nice day,

RB

---

<div class="post-metadata">

**Author:** ![kwatari](https://forum-cdn.knime.com/user_avatar/forum.knime.com/kwatari/32/41003_2.png) [@kwatari](https://forum.knime.com/u/kwatari)\
**Post date:** [June 23, 2022, 2:44pm UTC](https://forum.knime.com/t/solutions-to-just-knime-it-challenge-22/44454/5 "2022-06-23T14:44:04Z")

</div>

Hi, here is my solution. It was a good and tough challenge for a beginner like me and I enjoyed it. Thanks.

> **[Challenge 22 Pride – kwatari](https://hub.knime.com/kwatari/spaces/Public/latest/Challenge%2022%20Pride~9y278rW2CqWykZwe)**
>
> Solutions for data science: find workflows, nodes and components, and collaborate in spaces.

---

<div class="post-metadata">

**Author:** ![victor\_palacios](https://forum-cdn.knime.com/user_avatar/forum.knime.com/victor_palacios/32/37922_2.png) [@victor\_palacios](https://forum.knime.com/u/victor_palacios)\
**Post date:** [June 23, 2022, 6:49pm UTC](https://forum.knime.com/t/solutions-to-just-knime-it-challenge-22/44454/6 "2022-06-23T18:49:52Z")

</div>

Hi, first I want to give a sneak peak at one of our visualizations.

 ![Screen Shot 2022-06-23 at 11.40.01 AM](https://forum-cdn.knime.com/uploads/default/original/3X/0/0/00b5c23424f692453a9ea280287cba63eac18e8c.png)

Then I wanted to address your question. I believe you are trying to color 2 dimensional data which is also what we did~

Here are the key points to do so:

1. We need to have one column per value.
2. Therefore, we make a copy of the column we want to color.
3. Then we pivot the data (mimicking 3D data in a sense).

![Screen Shot 2022-06-23 at 11.45.58 AM](https://forum-cdn.knime.com/uploads/default/original/3X/5/c/5c81496df08bdff88e9ab180949300f18e1c8563.png)

 ![Screen Shot 2022-06-23 at 11.42.52 AM](https://forum-cdn.knime.com/uploads/default/original/3X/e/c/ec7047a9d7b9c459332959dfb3d9305b70f2791b.png)

 ![Screen Shot 2022-06-23 at 11.43.26 AM](https://forum-cdn.knime.com/uploads/default/original/3X/5/3/53d62ba693a785180a582fdb6d34f9f96a0be76d.png)

Here’s the workflow as well:

> **[Coloring Bar Charts with only 2 columns of data – victor\_palacios](https://hub.knime.com/victor_palacios/spaces/Public/latest/Coloring%20Bar%20Charts%20with%20only%202%20columns%20of%20data~mKDRjtvpK3GXPZ_5)**
>
> Solutions for data science: find workflows, nodes and components, and collaborate in spaces.

Since this is a visual challenge everyone please feel free to post your visuals here as well~ Thanks!

---

<div class="post-metadata">

**Author:** ![AnilKS](https://forum-cdn.knime.com/user_avatar/forum.knime.com/anilks/32/52258_2.png) [@AnilKS](https://forum.knime.com/u/AnilKS)\
**Post date:** [June 23, 2022, 7:09pm UTC](https://forum.knime.com/t/solutions-to-just-knime-it-challenge-22/44454/7 "2022-06-23T19:09:51Z")

</div>

My Take on the Challenge 22- Pride

> **[Just Knime it- 22 – anilks](https://hub.knime.com/anilks/spaces/Public/latest/Just%20Knime%20It%20Challenge/Just%20Knime%20it-%2022~sD33Dl-576gclGuo)**
>
> Just Knime it-22

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/b/0/b0181fd2cc264d59b95b58eca4ebbf3973cc5e00.jpeg)  
I have used the country continent group from the reference site which has exhaustive table .Not used too much of color and editing.Used Latest Knime View labs Nodes as well .

---

<div class="post-metadata">

**Author:** ![walkergv77](https://forum-cdn.knime.com/user_avatar/forum.knime.com/walkergv77/32/39486_2.png) [@walkergv77](https://forum.knime.com/u/walkergv77)\
**Post date:** [June 23, 2022, 9:55pm UTC](https://forum.knime.com/t/solutions-to-just-knime-it-challenge-22/44454/8 "2022-06-23T21:55:58Z")

</div>

Little strapped for time this week. Lots of people seemed to be able to get the bar charts and the restcountries API @martinmunch found is a great resource.

I had created a choropleth map a few weeks ago for a marketing project thought it would be good to contribute this piece. The KNIME Example of a choropleth is out of date using an out of date Google js library this is using the current google charts api/library. It’s not too different just a few tweaks

The Country names likely would need some massaging to get a fully colored map. 👍

![image](https://forum-cdn.knime.com/uploads/default/original/3X/6/3/63e8c960d71dbb2fef2453a039583e66d7693b9c.png)

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/1/b/1b09eb13700a0513be094f1e32e270ddd1e991fe.png)

> **[Just KNIME It - 22 – walkergv77](https://hub.knime.com/walkergv77/spaces/Public/latest/Just%20KNIME%20It%20-%2022~DjL7tJT-0PySsfJh)**
>
> In this challenge you will create visualizations to inspect different sexual orientation laws around the world, as reported by the State-Sponsored Homophobia r…

---

<div class="post-metadata">

**Author:** ![arddashti](https://forum-cdn.knime.com/user_avatar/forum.knime.com/arddashti/32/34545_2.png) [@arddashti](https://forum.knime.com/u/arddashti)\
**Post date:** [June 24, 2022, 7:41am UTC](https://forum.knime.com/t/solutions-to-just-knime-it-challenge-22/44454/10 "2022-06-24T07:41:48Z")

</div>

very very professional

---

<div class="post-metadata">

**Author:** ![lelloba](https://forum-cdn.knime.com/user_avatar/forum.knime.com/lelloba/32/43992_2.png) [@lelloba](https://forum.knime.com/u/lelloba)\
**Post date:** [June 24, 2022, 7:45am UTC](https://forum.knime.com/t/solutions-to-just-knime-it-challenge-22/44454/11 "2022-06-24T07:45:45Z")

</div>

Hi Victor,

thank you for your reply. Unfortunately I was not able to solve my problem.  
I will create a post on the forum, maybe this is not the right place to solve this problem.

Thank you again,  
RB

---

<div class="post-metadata">

**Author:** ![arddashti](https://forum-cdn.knime.com/user_avatar/forum.knime.com/arddashti/32/34545_2.png) [@arddashti](https://forum.knime.com/u/arddashti)\
**Post date:** [June 24, 2022, 8:19am UTC](https://forum.knime.com/t/solutions-to-just-knime-it-challenge-22/44454/12 "2022-06-24T08:19:17Z")

</div>

Hello KNIMErs, Here is my solution for Challenge 22

> **[justknimeit-22 – arddashti](https://hub.knime.com/arddashti/spaces/Public/latest/justknimeit-22~AK4rYFqa8P8Q_7tT)**
>
> Solutions for data science: find workflows, nodes and components, and collaborate in spaces.

 ![Untitled](https://forum-cdn.knime.com/uploads/default/original/3X/2/c/2cec5932a6d8226751eba3febc8f2b0995501040.png)

---

<div class="post-metadata">

**Author:** ![gonhaddock](https://forum-cdn.knime.com/user_avatar/forum.knime.com/gonhaddock/32/35425_2.png) [@gonhaddock](https://forum.knime.com/u/gonhaddock)\
**Post date:** [June 24, 2022, 2:10pm UTC](https://forum.knime.com/t/solutions-to-just-knime-it-challenge-22/44454/13 "2022-06-24T14:10:30Z")

</div>

Hello KNIMErs,

Here is my solution to #justknimeit-22 :

KNIME Hub \> gonhaddock \> Spaces \> Just\_KNIME\_It \> [Just KNIME It \_ Challenge 022](https://kni.me/w/1KOiz6p-0NE-pbzU)

I could reuse some resources from previous challenges ( [Challenge07](https://forum.knime.com/t/solutions-to-just-knime-it-challenge-7/40541/13) == R heat map, ISO 3166 … ) to make it easier.

Related to the first 2 questions, the charts talk by themselves:

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/e/d/ed39cfafc44703032c0b43f890e0f2a47e1fe6ef.png)  
As the data is one year old, the 2020’s decade represents only 1 year (decades start with years finished in 1 in my analysis)

Recycled R heat-map (choropleth) for the question 3, highlighting SSM geographic distribution:

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/1/1/110099b5a16d99156dfdaa292594f17ea1e24763.jpeg).

And answering Question 4, country with legal SSM and Civil Unions. I’ve represented the percentage of countries (where it’s legal) by continent.

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/d/7/d7e66482b0a6f9d9ffd688a39a9a0019fb481d25.png)

BR

---

<div class="post-metadata">

**Author:** ![si\_daniel\_a](https://forum-cdn.knime.com/user_avatar/forum.knime.com/si_daniel_a/32/41923_2.png) [@si\_daniel\_a](https://forum.knime.com/u/si_daniel_a)\
**Post date:** [June 24, 2022, 5:28pm UTC](https://forum.knime.com/t/solutions-to-just-knime-it-challenge-22/44454/14 "2022-06-24T17:28:01Z")

</div>

Here is my solution for challenge 22

 ![Untitled-1](https://forum-cdn.knime.com/uploads/default/original/3X/8/e/8e2be1431f101c6c88251c95fd403259409ab2ac.png)

> **[justknimeit-22 – si\_daniel\_a](https://hub.knime.com/si_daniel_a/spaces/Public/latest/justknimeit-22~CnR-sQ5rmVJk09OZ)**
>
> Solutions for data science: find workflows, nodes and components, and collaborate in spaces.

---

<div class="post-metadata">

**Author:** ![ersy](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/e/71c47a/32.png) [@ersy](https://forum.knime.com/u/ersy)\
**Post date:** [June 24, 2022, 9:41pm UTC](https://forum.knime.com/t/solutions-to-just-knime-it-challenge-22/44454/15 "2022-06-24T21:41:15Z")

</div>

Hi everyone,  
here is my solution.  
not to shabby. Table views and line plot.

> **[justKnimeit-22 – ersy](https://hub.knime.com/ersy/spaces/Public/latest/justKnimeit-22~q4U4wDOu7oWOOnPG)**
>
> Challenge 22: Pride

---

<div class="post-metadata">

**Author:** ![Rubendg](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/r/22d042/32.png) [@Rubendg](https://forum.knime.com/u/Rubendg)\
**Post date:** [June 27, 2022, 9:24am UTC](https://forum.knime.com/t/solutions-to-just-knime-it-challenge-22/44454/16 "2022-06-27T09:24:22Z")

</div>

Hi,

Here is my solution, for the just knime it 22 challange.

 ![afbeelding](https://forum-cdn.knime.com/uploads/default/original/3X/f/e/fe151df62a0adb621de4f6ca48be2ba3764e1ab2.png)

> **[Challange 22 – rubendg](https://hub.knime.com/rubendg/spaces/Just%20KNIME%20IT/latest/Challange%2022~hKaZACXyG8Ep5LAE)**
>
> Here is a solution for the "Just KNIME it" challange 21.

---

<div class="post-metadata">

**Author:** ![alinebessa](https://forum-cdn.knime.com/user_avatar/forum.knime.com/alinebessa/32/33306_2.png) [@alinebessa](https://forum.knime.com/u/alinebessa)\
**Post date:** [June 27, 2022, 9:47am UTC](https://forum.knime.com/t/solutions-to-just-knime-it-challenge-22/44454/17 "2022-06-27T09:47:16Z")

</div>

Thanks for the heads up about the outdated Google JS library! Will talk to our team about it.

---

<div class="post-metadata">

**Author:** ![rfeigel](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/r/7ea924/32.png) [@rfeigel](https://forum.knime.com/u/rfeigel)\
**Post date:** [June 28, 2022, 1:01am UTC](https://forum.knime.com/t/solutions-to-just-knime-it-challenge-22/44454/18 "2022-06-28T01:01:53Z")

</div>

Here’s my solution. Its missing some countries/territories. I couldn’t find a continent/country table which included non-UN countries and don’t have the time to manually create one. Regardless, the structure of the workflow seems to work.

 ![REF Challenge 22a](https://forum-cdn.knime.com/uploads/default/original/3X/9/d/9d678966aa85aef5dbbbe8109df0a5aef61ba98a.jpeg)  
[REF Challenge 22.knwf](https://forum.knime.com/uploads/short-url/3x25YrfhVLXl94hSSsFe8yi25VX.knwf) (722.2 KB)

---

<div class="post-metadata">

**Author:** ![MEPivnenko](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mepivnenko/32/36596_2.png) [@MEPivnenko](https://forum.knime.com/u/MEPivnenko)\
**Post date:** [June 28, 2022, 7:18am UTC](https://forum.knime.com/t/solutions-to-just-knime-it-challenge-22/44454/19 "2022-06-28T07:18:39Z")

</div>

My solution with the worst visualization according to the surveys - Pie Charts!

> **[KnimeIT\_22 – mepivnenko](https://hub.knime.com/mepivnenko/spaces/Public/latest/KnimeIT_22~7PAskSPB2bvw1ZPU)**
>
> Solutions for data science: find workflows, nodes and components, and collaborate in spaces.

 ![KnimeIT_22_1](https://forum-cdn.knime.com/uploads/default/original/3X/f/2/f290aeb4f091c3d9d77bc60fe335af32c89f5502.png)  
 ![KnimeIT_22_2](https://forum-cdn.knime.com/uploads/default/original/3X/1/4/1493fc8ab6295d6d09133a02cc5aa4cd0ea2812c.png)  
 ![KnimeIT_22_3](https://forum-cdn.knime.com/uploads/default/original/3X/0/e/0eff4eabf9a91acf1287cdf21e188a1a356ea80e.png) ![KnimeIT_22_4](https://forum-cdn.knime.com/uploads/default/original/3X/a/f/af827d7a47b006ef0d3a38211191a87e2d4ac9bf.png)

---

<div class="post-metadata">

**Author:** ![alinebessa](https://forum-cdn.knime.com/user_avatar/forum.knime.com/alinebessa/32/33306_2.png) [@alinebessa](https://forum.knime.com/u/alinebessa)\
**Post date:** [June 28, 2022, 2:35pm UTC](https://forum.knime.com/t/solutions-to-just-knime-it-challenge-22/44454/20 "2022-06-28T14:35:37Z")

</div>

Hahaha at least it’s relatively easy to understand the message!

---

<div class="post-metadata">

**Author:** ![alinebessa](https://forum-cdn.knime.com/user_avatar/forum.knime.com/alinebessa/32/33306_2.png) [@alinebessa](https://forum.knime.com/u/alinebessa)\
**Post date:** [June 28, 2022, 2:37pm UTC](https://forum.knime.com/t/solutions-to-just-knime-it-challenge-22/44454/21 "2022-06-28T14:37:43Z")

</div>

As always on Tuesdays, here’s our solution to #justknimeit challenge 22! 🏳️‍🌈

> **[Challenge 22 - The Pride Challenge - Solution – alinebessa](https://hub.knime.com/knime/spaces/Just%20KNIME%20It!/latest/Challenge%2022%20-%20Pride%20-%20Solution~yVdXivHF6pPIVyBT)**
>
> In this challenge you will create visualizations to inspect different sexual orientation laws around the world, as reported by the State-Sponsored Homophobia r…

@victor_palacios and I worked together on this challenge to acknowledge #pridemonth. We hope you enjoyed it, learned more about how to #dataviz with KNIME, and also learned about sexual orientation laws about the world.

See you tomorrow for challenge 23!

[Next page](https://forum.knime.com/t/solutions-to-just-knime-it-challenge-22/44454.md?page=2)
