# Facing issue in Bar Graph Creation

**URL:** <https://discuss.elastic.co/t/facing-issue-in-bar-graph-creation/368523>\
**Category:** Kibana\
**Tags:** kibana-plugin-development\
**Created:** [October 9, 2024, 12:27pm UTC](https://discuss.elastic.co/t/facing-issue-in-bar-graph-creation/368523 "2024-10-09T12:27:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sandeep\_Thakur](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sandeep_thakur/32/95737_2.png) [@Sandeep\_Thakur](https://discuss.elastic.co/u/Sandeep_Thakur)\
**Post date:** [October 9, 2024, 12:27pm UTC](https://discuss.elastic.co/t/facing-issue-in-bar-graph-creation/368523/1 "2024-10-09T12:27:15Z")

</div>

I am using EKL 8.15.2 where we are unable to create horizontal and vertical Bar graph visualisation other all graph working but when we try to create bar graph its showing " kbn-ui-shared-deps-npm.dll.js:365 Uncaught TypeError: e.toSorted is not a function" , I have done installation using elasticsearch-8.15.2-amd64.deb and kibana-8.15.2-amd64.deb on ubuntu 24.04 and 22.04.

---

<div class="post-metadata">

**Author:** ![LinruoT](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/linruot/32/138851_2.png) [@LinruoT](https://discuss.elastic.co/u/LinruoT)\
**Post date:** [October 30, 2024, 10:07am UTC](https://discuss.elastic.co/t/facing-issue-in-bar-graph-creation/368523/2 "2024-10-30T10:07:48Z")

</div>

I found the reason:

---

<div class="post-metadata">

**Author:** ![Natalie](https://avatars.discourse-cdn.com/v4/letter/n/e9c0ed/32.png) [@Natalie](https://discuss.elastic.co/u/Natalie)\
**Post date:** [November 12, 2024, 9:20am UTC](https://discuss.elastic.co/t/facing-issue-in-bar-graph-creation/368523/3 "2024-11-12T09:20:15Z")

</div>

I'm having the same problem, can anyone share the solution?

---

<div class="post-metadata">

**Author:** ![Marco\_Liberati](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marco_liberati/32/82953_2.png) [@Marco\_Liberati](https://discuss.elastic.co/u/Marco_Liberati)\
**Post date:** [February 25, 2025, 2:01pm UTC](https://discuss.elastic.co/t/facing-issue-in-bar-graph-creation/368523/4 "2025-02-25T14:01:49Z")

</div>

Hi @Sandeep_Thakur , @Natalie

the charting library is using a recent API `toSorted` and the browser in use should be updated.  
Here's the list of supported browser for this API: ["toSorted" | Can I use... Support tables for HTML5, CSS3, etc](https://caniuse.com/?search=toSorted) (in general any browser updated within 2023 should work with it)
