# Apache Echart error

**URL:** <https://community.grafana.com/t/apache-echart-error/114967>\
**Category:** Dashboards\
**Created:** [February 20, 2024, 6:26pm UTC](https://community.grafana.com/t/apache-echart-error/114967 "2024-02-20T18:26:04Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaviivak94](https://avatars.discourse-cdn.com/v4/letter/k/cdc98d/32.png) [@kaviivak94](https://community.grafana.com/u/kaviivak94)\
**Post date:** [February 20, 2024, 6:26pm UTC](https://community.grafana.com/t/apache-echart-error/114967/1 "2024-02-20T18:26:04Z")

</div>

![image](https://us1.discourse-cdn.com/grafana/original/3X/f/8/f88993f4eb4d92e3f0776f41c329fb94eccdd724.png)

Hi,  
Someone help me with this error

my sql query : SELECT invoice\_month\_name, SUM(amount) as amount FROM data GROUP BY invoice\_month\_name  
let names = ;  
let amounts = ;  
data.series.map((s) =\> {  
names = s.fields.find((f) =\> f.name === ‘invoice\_month\_name’).values.buffer;  
amounts = s.fields.find((f) =\> f.name === ‘amount’).values;  
});

return {  
grid: {  
bottom: “3%”,  
containLabel: true,  
left: “3%”,  
right: “4%”,  
top: “4%”,  
},  
tooltip: {},  
legend: {  
data: [replaceVariables(‘$var’)]  
},  
xAxis: {  
data: names  
},  
yAxis: {},  
toolbox: { feature: { restore: {} } },  
series: [  
{  
name: replaceVariables(‘$var’),  
type: ‘bar’,  
data: amounts  
}  
]  
};

---

<div class="post-metadata">

**Author:** ![yosiasz](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/yosiasz/32/45847_2.png) [@yosiasz](https://community.grafana.com/u/yosiasz)\
**Post date:** [February 20, 2024, 6:28pm UTC](https://community.grafana.com/t/apache-echart-error/114967/2 "2024-02-20T18:28:29Z")

</div>

Might want to post on the github repo for that plugin

> **[GitHub - VolkovLabs/volkovlabs-echarts-panel: Apache ECharts Panel for @grafana.](https://github.com/VolkovLabs/volkovlabs-echarts-panel)**
>
> Apache ECharts Panel for @grafana. Contribute to VolkovLabs/volkovlabs-echarts-panel development by creating an account on GitHub.

Also what error is it

---

<div class="post-metadata">

**Author:** ![kaviivak94](https://avatars.discourse-cdn.com/v4/letter/k/cdc98d/32.png) [@kaviivak94](https://community.grafana.com/u/kaviivak94)\
**Post date:** [February 20, 2024, 6:41pm UTC](https://community.grafana.com/t/apache-echart-error/114967/3 "2024-02-20T18:41:23Z")

</div>

@yosiasz

I dont understand. What is the solution for this?

---

<div class="post-metadata">

**Author:** ![yosiasz](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/yosiasz/32/45847_2.png) [@yosiasz](https://community.grafana.com/u/yosiasz)\
**Post date:** [February 20, 2024, 7:02pm UTC](https://community.grafana.com/t/apache-echart-error/114967/4 "2024-02-20T19:02:23Z")

</div>

it is not a grafana issue, the issue is in your code when using the plugin yso best to probably post your question in that plugin’s github repo

Also did you follow this tutorial?

> **[Apache ECharts Panel | Volkov Labs](https://volkovlabs.io/plugins/volkovlabs-echarts-panel/)**
>
> The Apache ECharts Panel plugin is a data visualization extension for Grafana that allows you to integrate charts and graphs from the popular Apache ECharts library into your Grafana dashboard.

---

<div class="post-metadata">

**Author:** ![kaviivak94](https://avatars.discourse-cdn.com/v4/letter/k/cdc98d/32.png) [@kaviivak94](https://community.grafana.com/u/kaviivak94)\
**Post date:** [February 20, 2024, 7:21pm UTC](https://community.grafana.com/t/apache-echart-error/114967/5 "2024-02-20T19:21:37Z")

</div>

Hi @yosiasz

Sorry i post the wrong way.

I followed this link

[![](https://img.youtube.com/vi/DxqCrBEmrQw/maxresdefault.jpg "Apache ECharts panel for Grafana | How to create modern dashboards in Grafana | ECharts Tutorial") ](https://www.youtube.com/watch?v=DxqCrBEmrQw)

I dont understand what i am missing

Can you please point out for me ?

---

<div class="post-metadata">

**Author:** ![mikhailvolkov](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/mikhailvolkov/32/41625_2.png) [@mikhailvolkov](https://community.grafana.com/u/mikhailvolkov)\
**Post date:** [February 20, 2024, 8:09pm UTC](https://community.grafana.com/t/apache-echart-error/114967/6 "2024-02-20T20:09:16Z")

</div>

@kaviivak94 Are you using new Visual mode introduced in the latest release?

In the visual mode data parsed automatically or available using `context`.  
We will describe in the changes in the upcoming release blog post at

> **[Blog | Volkov Labs](https://volkovlabs.io/blog/)**
>
> Blog

---

<div class="post-metadata">

**Author:** ![kaviivak94](https://avatars.discourse-cdn.com/v4/letter/k/cdc98d/32.png) [@kaviivak94](https://community.grafana.com/u/kaviivak94)\
**Post date:** [February 20, 2024, 8:33pm UTC](https://community.grafana.com/t/apache-echart-error/114967/7 "2024-02-20T20:33:27Z")

</div>

Hi @mikhailvolkov ,

I am using 5.2.0 version, Dependencies  
Grafana \>=9.2.0

write now I need the solution for my visual , do you have any suggestions ?

---

<div class="post-metadata">

**Author:** ![mikhailvolkov](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/mikhailvolkov/32/41625_2.png) [@mikhailvolkov](https://community.grafana.com/u/mikhailvolkov)\
**Post date:** [February 20, 2024, 9:19pm UTC](https://community.grafana.com/t/apache-echart-error/114967/8 "2024-02-20T21:19:36Z")

</div>

@kaviivak94 Take a look at our ECharts Demo server for Visual Editor examples:

[https://echarts.volkovlabs.io/d/pL5iH7FVk/home?orgId=1&editPanel=23](https://echarts.volkovlabs.io/d/pL5iH7FVk/home?orgId=1&editPanel=23)
