# Color Histogram JavaScript Color

**URL:** <https://forum.knime.com/t/color-histogram-javascript-color/28877>\
**Category:** KNIME Analytics Platform\
**Created:** [November 20, 2020, 3:23am UTC](https://forum.knime.com/t/color-histogram-javascript-color/28877 "2020-11-20T03:23:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mauuuuu5](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mauuuuu5/32/351_2.png) [@mauuuuu5](https://forum.knime.com/u/mauuuuu5)\
**Post date:** [November 20, 2020, 3:23am UTC](https://forum.knime.com/t/color-histogram-javascript-color/28877/1 "2020-11-20T03:23:12Z")

</div>

Hi everyone, I am trying to add color categories to the JavaScript Histogram but I am unable to do so. The node “Interactive Histogram Local” can add the colors based on a nominal column but due to the “real” data characteristics I need to bin based on Sample quantiles.

 ![Imagen1](https://forum-cdn.knime.com/uploads/default/original/3X/8/3/8343acea6190ef7965b477787984c0acfd49fe7f.png)

Thank you

Mau

---

<div class="post-metadata">

**Author:** ![ipazin](https://forum-cdn.knime.com/user_avatar/forum.knime.com/ipazin/32/806_2.png) [@ipazin](https://forum.knime.com/u/ipazin)\
**Post date:** [November 25, 2020, 1:56pm UTC](https://forum.knime.com/t/color-histogram-javascript-color/28877/2 "2020-11-25T13:56:02Z")

</div>

Hello @mauuuuu5,

don’t think this is done automatically as in Interactive Histogram Local node. However workaround using [Bar Chart](https://kni.me/n/YBKMPCD4vbS-J-CQ) node with logic outlined in this topic will hopefully be good enough:

> [@How to Create Stacked Bar Chart](https://forum.knime.com/t/how-to-create-stacked-bar-chart/24863):
>
> I have the following data. [image] How do I create a stacked bar chart, and customise the colour so that it looks like this? (Tried using Bar Chart node, but couldn’t figure out how.) Attached data. Thanks. [data.xlsx](https://forum.knime.com/uploads/short-url/nf1ZSWWkdx33tFHAhkjxFaLmA8v.xlsx) (10.5 KB)

Additional action for you to take is to use [Auto-Binner](https://kni.me/n/HfjocjSO8N6kdv5m) node to get your bins based on sample quantiles as desired. This column will then be Category column in Bar Chart node’s configuration. Take a look, give it a try and if you’ll need workflow example drop me a message.

Br,  
Ivan

---

<div class="post-metadata">

**Author:** ![mauuuuu5](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mauuuuu5/32/351_2.png) [@mauuuuu5](https://forum.knime.com/u/mauuuuu5)\
**Post date:** [November 28, 2020, 10:42pm UTC](https://forum.knime.com/t/color-histogram-javascript-color/28877/3 "2020-11-28T22:42:53Z")

</div>

Hi Ivan thank you for your help, I managed to make a some kind of group chart not an histogram, but still I want to share the workflow

Thank you

Mau

[Quantile Histogram.knwf](https://forum.knime.com/uploads/short-url/2n7cg36Frr6axUAsIcbGFRlhR9F.knwf) (108.8 KB)

---

<div class="post-metadata">

**Author:** ![ipazin](https://forum-cdn.knime.com/user_avatar/forum.knime.com/ipazin/32/806_2.png) [@ipazin](https://forum.knime.com/u/ipazin)\
**Post date:** [November 30, 2020, 10:50am UTC](https://forum.knime.com/t/color-histogram-javascript-color/28877/4 "2020-11-30T10:50:55Z")

</div>

Hello @mauuuuu5,

great! You can also share/upload workflows to [KNIME Hub](https://hub.knime.com/site/about) if you think others might benefit from it as then there are easier to find and more accessible.

Br,  
Ivan

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [May 31, 2021, 10:51pm UTC](https://forum.knime.com/t/color-histogram-javascript-color/28877/5 "2021-05-31T22:51:00Z")

</div>

Closed on May 31, 2021, 10:51pm UTC

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
