# Barchart with Labels

**URL:** <https://forum.knime.com/t/barchart-with-labels/75558>\
**Category:** KNIME Analytics Platform\
**Tags:** visualization\
**Created:** [November 24, 2023, 10:02am UTC](https://forum.knime.com/t/barchart-with-labels/75558 "2023-11-24T10:02:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![masgo](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/m/ee59a6/32.png) [@masgo](https://forum.knime.com/u/masgo)\
**Post date:** [November 24, 2023, 10:02am UTC](https://forum.knime.com/t/barchart-with-labels/75558/1 "2023-11-24T10:02:08Z")

</div>

I am using Knime to generate some Barcharts and would like to add some labels. Here is an Example.

I want to compare two years and also show the difference in percent (I added them manually in the png in the example).

 ![grafik](https://forum-cdn.knime.com/uploads/default/original/3X/a/e/aec30f7e563b1d6a33ce20cfcccff366e2148a6c.png)

---

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [November 24, 2023, 12:15pm UTC](https://forum.knime.com/t/barchart-with-labels/75558/2 "2023-11-24T12:15:49Z")

</div>

@masgo I do not think there is a KNIME node you can use out of the box. But since the KNIME [Python extension](https://www.knime.com/blog/how-to-setup-the-python-extension) has matplotlib (and seaborn) integrated you can easily employ [ChatGPT](https://medium.com/p/c05709dd3bf5) to let it write a suitable code. You could also [warp that with a data app](https://medium.com/low-code-for-advanced-data-science/create-an-interactive-dashboard-with-knime-components-and-python-41ef794b1467) in order to make it interactive.

It will require a little bit back an forth with the code but in the end it should work:

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

> **[Python graphics: Annual Comparative Analysis: Visualizing Year-over-Year...](https://hub.knime.com/mlauber71/spaces/Public/kn_example_python_graphic_bar_chart_percentage_change~5p9nmbbCra6rosnJ/current-state)**
>
> Summary: This script is designed to perform a comparative analysis of yearly data, visualizing the changes in various values across consecutive years. It start…

[kn\_example\_python\_graphic\_bar\_chart\_percentage\_change.knwf](https://forum.knime.com/uploads/short-url/5SQucphts1ry5DH0lKrA05JJYh6.knwf) (131.4 KB)

---

<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:** [February 22, 2024, 12:16pm UTC](https://forum.knime.com/t/barchart-with-labels/75558/3 "2024-02-22T12:16:41Z")

</div>

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