Apache ECharts panel for Grafana | How to create modern dashboards in Grafana | ECharts Tutorial

Sdílet
Vložit
  • čas přidán 4. 07. 2024
  • Apache ECharts is a mighty tool. You do not need a senior Javascript developer to start displaying modern-looking animated visualizations. And if your use case is unique, Apache ECharts provides an excellent venue to develop visualizations of any complexity.
    The Apache ECharts panel for Grafana is a bridge that has been missing and finally arrived. You can use the benefits of two great open-source products - Grafana and Apache ECharts in one solution tailored to your needs. This video has all the details, along with the easy-to-follow tutorial.
    Become a member of our fan club / @volkovlabs and earn loyalty badges!
    CHAPTERS
    0:00 Intro
    0:31 Where does Grafana come from
    0:45 Three major Grafana components
    1:08 The excellent Grafana feature
    2:07 Introducing Apache ECharts
    2:42 Apache ECharts demo
    4:45 How to Use Apache ECharts in Grafana - introducing ECharts Panel
    4:51 Step 1
    5:15 Step 2
    05:21 Step 3
    05:33 Step 4
    05:55 Step 5
    06:10 Step 6
    06:41 First redo - Grafana bar chart into Apache ECharts bar
    08:38 Second redo - Grafana clock into Apache ECharts clock
    08:54 How to use an SVG picture
    DISCOVER
    👉 Documentation: docs.volkovlabs.io
    👉 Blog: blog.volkovlabs.io
    👉 GitHub: github.com/VolkovLabs
    GET IN TOUCH
    👉 Issues and questions: github.com/VolkovLabs
    👉 GitHub Sponsor: github.com/sponsors/VolkovLabs
    👉 LinkedIn: / volkovlabs
    #Grafana #GrafanaPlugins #Visualization #ApacheECharts #ECharts #visualización #cuadro
  • Věda a technologie

Komentáře • 71

  • @volkovlabs
    @volkovlabs  Před rokem +3

    Please share your experience using the Apache ECharts panel.
    Check out documentation to get started: volkovlabs.io/plugins/volkovlabs-echarts-panel/

  • @LearningWithNisa
    @LearningWithNisa Před 3 měsíci +1

    Thank you so much for detailed explanation. I love the way you explain everything in detail.

    • @volkovlabs
      @volkovlabs  Před 3 měsíci

      You are welcome! It is great you liked the video.

  • @generalchris90
    @generalchris90 Před 2 lety

    Fantastic videos! Thank you!

  • @Bigman74066
    @Bigman74066 Před rokem +1

    Excellent presentation! Very helpful 👍

  • @rubinwong1879
    @rubinwong1879 Před 2 lety

    OMG... This is just what i need. Thank you! This video is very helpflu

  • @felipegutierrezortiz5391
    @felipegutierrezortiz5391 Před měsícem +1

    thank you so much for the explanation and for the plugin, i am using it. God bless you.

    • @volkovlabs
      @volkovlabs  Před měsícem

      You are welcome! We just published a new video called Business Charts, which explains all the latest features of this plugin which we renamed recently.

  • @th30z-code
    @th30z-code Před rokem +2

    Thank you! we have a lots of charts written using echarts and we are using Grafana more and more. this allows us to reuse what we have. the video is simple and easy to follow. Very helpful!

    • @volkovlabs
      @volkovlabs  Před rokem

      Appreciate the feedback. We love to hear what community is doing with ECharts in Grafana! Let us know if you interested to share your use case, tips&tricks on our blog.
      --
      Mikhail

  • @mmatthieu5346
    @mmatthieu5346 Před rokem +2

    What a professional and well-made video and tool. Astonishing.

    • @volkovlabs
      @volkovlabs  Před rokem

      Thank you! Appreciate the feedback.

  • @nicolaerosia
    @nicolaerosia Před rokem +1

    🎉 thank you!

  • @aparfeno
    @aparfeno Před rokem +1

    Спасибо!

    • @volkovlabs
      @volkovlabs  Před rokem

      Glad it helps! We are working on a new video for Apache ECharts. It should be ready end of next week.

  • @kavipriya1406
    @kavipriya1406 Před 4 měsíci +1

    @volkovlabs I have some troubleshooting erros ECharts Execution Error
    data is not defined I am following exactly this video. Don't know whats going wrong

    • @volkovlabs
      @volkovlabs  Před 4 měsíci

      If you are using Grafana 10, `values.buffer` needs to be updated to `values`. Everything else should work as expected.
      Check our documentation for the latest examples: volkovlabs.io/plugins/volkovlabs-echarts-panel/

  • @namtruong7516
    @namtruong7516 Před rokem

    Thank you very much. My grafana cannot load the unsigned plugin. What variable do i need to declare in the configuration file?

    • @mikhail-vl
      @mikhail-vl Před rokem

      Our plugins are signed for the default Root URL localhost:3000. If you are using a different URL:
      1) You can allow unsigned plugins and delete MANIFEST.txt file. Take a look at github.com/grafana/grafana/issues/31125. Unfortunately, official Grafana documentation is broken at the moment.
      2) Another option is to use NGINX reverse proxy and keep the default root URL for which the plugin was signed.
      3) We can sign the plugin for your domain and help you install and configure it by sponsoring our open-source plugins: github.com/sponsors/VolkovLabs.
      Please let us know if you have any issues in the repository github.com/VolkovLabs/volkovlabs-echarts-panel/issues

    • @namtruong7516
      @namtruong7516 Před rokem

      Deleted manifest file. It works.
      Thanks !!!

    • @mikhail-vl
      @mikhail-vl Před rokem

      @@namtruong7516 Great! Let us know if there is anything else.

  • @user-oc3gy1uj5e
    @user-oc3gy1uj5e Před rokem +1

    In the Apache ECharts code (function)
    I want to use ${__to} and ${__from} of grafana Variable, but it doesn't seem to work.
    Is there a way to use them?

    • @volkovlabs
      @volkovlabs  Před rokem +1

      You need to use replaceVariable function as described in the documentation: volkovlabs.io/plugins/volkovlabs-echarts-panel/variables/

    • @user-oc3gy1uj5e
      @user-oc3gy1uj5e Před rokem +1

      @@volkovlabs oh!thanks!!

  • @user-op2gv8bw3i
    @user-op2gv8bw3i Před 8 měsíci +1

    @volkovlabs
    This is awesome stuff. I have use echarts for multiple panels now. Is there a way we can show "No Data" when the result of the query is NULL with this plugin?

    • @volkovlabs
      @volkovlabs  Před 8 měsíci

      You can return this graphic if results are empty:
      ```
      option = {
      graphic: {
      elements: [
      {
      type: 'text',
      left: 'center',
      top: 'center',
      style: {
      text: 'No Data',
      fontSize: 80,
      fontWeight: 'bold',
      lineDash: [0, 200],
      lineDashOffset: 0,
      stroke: '#000',
      lineWidth: 1
      },
      }
      ]
      }
      };
      ```

    • @user-op2gv8bw3i
      @user-op2gv8bw3i Před 8 měsíci +1

      Awesome! Thats great. Thanks@@volkovlabs

  • @tamil-akilanamudhan154
    @tamil-akilanamudhan154 Před rokem +1

    Thank you, I am Using Grafana9.0, And the databse is influxdb, I can't able to differentiate the Data for for each refId( Queries A,B,C) , as my requirment is to compare the Value of each refId and then Need to chnage the Colour automaticaly.
    const series = data.series.map((s) => {
    const sData = s.fields.find((f) => f.type === 'number').values.buffer;
    const sTime = s.fields.find((f) => f.type === 'time').values.buffer;

    • @volkovlabs
      @volkovlabs  Před rokem

      Take a look at the blog post volkovlabs.io/blog/stacked-bar-graph-20221004/ and documentation volkovlabs.io/plugins/volkovlabs-echarts-panel/datasources/
      --
      Mikhail

  • @AhmadFirdausIdris_AFNAN
    @AhmadFirdausIdris_AFNAN Před rokem +1

    Hi. I have been using your Echart Panel for almost a year for my Grafana Cloud, thank you very much. However, Grafana has upgraded my version to the latest stable version last week, and since then the Echart Panel is no longer working, giving this error message "ECharts Execution Error
    Cannot read properties of undefined (reading '0')". Appreciate it if you could share some input on the error.

    • @volkovlabs
      @volkovlabs  Před rokem +1

      Grafana updated the structure of the data frames in Grafana 10. If you use `values.buffer` just update to `values`: github.com/VolkovLabs/volkovlabs-echarts-panel/issues/174
      Let me know if it helps.
      --
      Mikhail.

    • @AhmadFirdausIdris_AFNAN
      @AhmadFirdausIdris_AFNAN Před rokem +1

      @@volkovlabs Hi, it does not work.

    • @AhmadFirdausIdris_AFNAN
      @AhmadFirdausIdris_AFNAN Před rokem +1

      @@volkovlabs Now I don't have the error message anymore, but still graph is not showing, only the tooltip showing with no data.

    • @volkovlabs
      @volkovlabs  Před rokem +1

      @@AhmadFirdausIdris_AFNAN Try to save and refresh? Sometimes chart not updating automatically. Please open an issue in GitHub repository with your code snippet if you still have an issue.

  • @nolimit2343
    @nolimit2343 Před rokem +1

    how can i use this plugin in Grafana 7.5? Please suggest. Since Grafana has changed their licence to APGLv3 in later version after 7.5

    • @volkovlabs
      @volkovlabs  Před rokem

      You can download the plugin and update the minimum requirements to 7.5 to try it out in the `plugin.json` file ` "grafanaDependency": ">=7.5.0" `. Let me know if it works.

    • @nolimit2343
      @nolimit2343 Před rokem

      @@volkovlabs it says ''ERROR LOADING"

    • @nolimit2343
      @nolimit2343 Před rokem +1

      @@volkovlabs PFA Screenshot drive.google.com/file/d/11zHxv5KkFFmfUGRC5I0zdMUWp8Q8vH7j/view?usp=sharing

    • @volkovlabs
      @volkovlabs  Před rokem

      @@nolimit2343 Take a look at volkovlabs.io/plugins/grafana/allow-unsigned/

  • @arcanisarcanis2080
    @arcanisarcanis2080 Před 3 měsíci +1

    Дарья, здравствуйте!
    Использую apache echarts в работе для построения дашбордов.
    Столкнулся с проблемой, что если я разрабатываю дашборды на большом мониторе, то человек с маленьким монитором видит другую картинку... Не происходит пропорционального уменьшения размеров дашбордов, вместо этого легенда может наехать на график. Т.е. я не могу быть уверен, что пользователь будет видеть мои дашборды такими же красивыми, какими их вижу я на своём мониторе. Хотелось бы, чтобы графики и текст на графиках и легенде уменьшались(или увеличивались) пропорционально размеру экрана. Возможно ли это как сделать?

    • @volkovlabs
      @volkovlabs  Před 3 měsíci

      We are using grid in percentage to positioning and avoid collisions.
      ```
      grid: {
      left: '3%',
      right: '4%',
      bottom: '3%',
      containLabel: true
      },
      ```
      You can check various ECharts examples on echarts.volkovlabs.io

    • @arcanisarcanis2080
      @arcanisarcanis2080 Před 3 měsíci +1

      @@volkovlabs возможно ли как-то сделать пропорциональное уменьшение графиков? Например, на маленьком экране 14 шрифт уже не нужен, пусть там будет 10. А сейчас сохраняется размер шрифта и получает пересечение и обрезка слов на маленьком экране.

    • @volkovlabs
      @volkovlabs  Před 3 měsíci

      @@arcanisarcanis2080 Check out the documentation: localhost:3100/plugins/volkovlabs-echarts-panel/instance/#scale-when-resizing

  • @teohkelvin9751
    @teohkelvin9751 Před rokem +1

    after i copy the format then i paste on grafana but, my data is from InfluxDB so the query is like yours different then i can't get any own data dont know why ? is it because not support for influxDB?

    • @volkovlabs
      @volkovlabs  Před rokem +1

      Apache ECharts Panel supports any data source. You can find InfluxDb example in the guest blog: volkovlabs.io/blog/stacked-bar-graph-20221004. Take a look at this video explaining how to work with Data Sources: czcams.com/video/K5YNMSIm9AM/video.html

    • @teohkelvin9751
      @teohkelvin9751 Před rokem +1

      @@volkovlabs thanks a lot

    • @volkovlabs
      @volkovlabs  Před rokem

      @@teohkelvin9751 You got it working?

    • @teohkelvin9751
      @teohkelvin9751 Před rokem +1

      @@volkovlabs still got some confusing

    • @volkovlabs
      @volkovlabs  Před rokem

      @@teohkelvin9751 You can open an issue in the GitHub repo with the question and we can take a look.

  • @lawhoisun
    @lawhoisun Před rokem +1

    Hi I can’t seem to get the panel to work when there are Grafana transformations applied. Is there a special way to make it work? It doesn’t seem to read data values after transformations are applied. When taking directly from queries, it is fine.
    Thanks in advance!

    • @volkovlabs
      @volkovlabs  Před rokem

      When using transformations, Grafana updates the structure of the data frames. There is a community post with a solution: community.grafana.com/t/sort-the-bar-values-in-a-bar-chart-of-echarts-panel-from-max-to-min-numbers/86765/3. I will update documentation now.
      Let me know if it helps.
      --
      Mikhail

    • @volkovlabs
      @volkovlabs  Před rokem +2

      Documentation updated: volkovlabs.io/plugins/volkovlabs-echarts-panel/transformations/

    • @lawhoisun
      @lawhoisun Před rokem +1

      Thank you so much! I’ll give it another shot

    • @volkovlabs
      @volkovlabs  Před rokem

      Let us know if it works for you.

    • @volkovlabs
      @volkovlabs  Před rokem

      @@lawhoisun I just realised I posted dev URL. Here is the correct one: volkovlabs.io/plugins/volkovlabs-echarts-panel/transformations/

  • @arthurcortesrezende2669
    @arthurcortesrezende2669 Před 7 měsíci +1

    omg, grafana is fucking impossible

    • @volkovlabs
      @volkovlabs  Před 7 měsíci

      We make a lot of things possible with our plugins. Apache ECharts, Dynamic Text and others are good examples what is possible with Grafana.

  • @kk77781
    @kk77781 Před 7 měsíci +1

    Table output is possible in echarts ?

    • @volkovlabs
      @volkovlabs  Před 7 měsíci +1

      What do you mean table output? Legend or Table view of data? There is a table view in the toolbar.

    • @kk77781
      @kk77781 Před 7 měsíci +1

      @@volkovlabs I want to display my output in table format which is row and column format. Reason is I want to download that as png format

    • @volkovlabs
      @volkovlabs  Před 7 měsíci +1

      @@kk77781 Unfortunately, it's not supported: github.com/apache/echarts/issues/6058