Skip to content

prepareBoxplotData function cant be found in Grafana #18431

@micha-1987

Description

@micha-1987

Version

4.2.0

Link to Minimal Reproduction

No response

Steps to Reproduce

Hello there,
I am having an issue in Grafana running in a docker container.

I copied the code from the following example into a Grafana panel and ran it:
https://echarts.apache.org/v4/examples/en/editor.html?c=boxplot-light-velocity2

But I am getting the following error message:
image

After adding the import statement (see xieziyu/ngx-echarts#138) my function looks like this:
image

Which unfortunately leads to the next error:
image

Any suggestions? Sorry but I am quite new to Javascript.
Best, Michael

Current Behavior

The copied code from https://echarts.apache.org/v4/examples/en/editor.html?c=boxplot-light-velocity2 does not run in Grafana after changing "options =" to "return". It is throwing an error that the required boxplotPreparation function cant be found.

Expected Behavior

Copying the code from https://echarts.apache.org/v4/examples/en/editor.html?c=boxplot-light-velocity2 should run in Grafana after changing "options =" to "return" following the explanations in the tutorial:
https://www.youtube.com/watch?v=DxqCrBEmrQw

Environment

- OS:Windows 
- Browser: Chrome
- running grafana in a docker environment having echarts plugin

Any additional comments?

Many thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenThis issue is in EnglishpendingWe are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.waiting-for: author

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions