ECharts - "Execution Error: data is not defined"

Hello, I´m having this error: “ECharts Execution Error: data is not defined” when using “ECharts Basic Radar Chart” panel with grafana echarts plugin.

It seems that the data object is not being found.

let my_map = data.series.map((s) => {
gender_concept_id = s.fields.find((f) => f.name === ‘gender_concept_id’).values;
year_of_birth = s.fields.find((f) => f.name === ‘year_of_birth’).values;
month_of_birth = s.fields.find((f) => f.name === ‘month_of_birth’).values;
day_of_birth = s.fields.find((f) => f.name === ‘day_of_birth’).values;
race_concept_id = s.fields.find((f) => f.name === ‘race_concept_id’).values;
});

Query inspector:

Table view:

Thank´s. I look forward to your reply.

Álvaro

@amconde In the latest version of ECharts panel we introduced Visual editor, which provides access to the parameters using context object.

It also allows automatically parse the data source and create series in a data set format. We will explain it in the upcoming video and release blog post. You can see examples how to use it on Volkov Labs

Alternatively, you can switch to the native Code mode and it will work as expected.

Working now :slight_smile:

Thank you very much.

1 Like