VolkovLabs / business-charts

The Business Charts panel allows you to integrate charts and graphs created by the Apache ECharts library into your Grafana dashboard.
https://docs.volkovlabs.io
Apache License 2.0
139 stars 17 forks source link

where is this doc file located at #140

Closed yosiasz closed 1 year ago

yosiasz commented 1 year ago

Greetings

In the following page: image

it references : docs/volkovlabs-echarts-panel/maps/geojson.js

would be nice if this was a link. No idea where to find this file, tried all kinds of locations

mikhail-vl commented 1 year ago

@yosiasz We had a link before to the original file, but there is nothing else in the file. Why do you want to see it?

Here is the location: https://github.com/VolkovLabs/volkovlabs.io/tree/main/docs/volkovlabs-echarts-panel/maps

yosiasz commented 1 year ago

just wanted to see how to map geojson data. And does not seem that is what I am looking for and I see the example code when I scroll further down on my phone.

yosiasz commented 1 year ago

with this type of geojson data with geometry etc

"geometry": {
                "type": "MultiPolygon",
                "coordinates": [
                    [
                        [
                            [
                                -119.876152,
                                46.567575,
                                0
                            ],
                            [
mikhail-vl commented 1 year ago

@yosiasz So, you want to display polygons on the GeoJSON Map or Google Maps? you lost me.

yosiasz commented 1 year ago

@mikhail-vl never mind found what I needed. Uses a geojson map.

https://echarts.apache.org/examples/en/editor.html?c=map-bar-morph

mikhail-vl commented 1 year ago

@yosiasz Great! We actually explained how to work with GeoJSON and LogQL in the latest video: https://www.youtube.com/watch?v=0EyFmMlIXPo

Let me know if there is anything else.

yosiasz commented 1 year ago

I may be missing something from that video and I perused everywhere but I am not seeing a solid example on how to use geometry data from geojson to create boundaries within a apache echart map. The video does show how to use data from geojson but not the geometry part. Good homework for me.

for example this code

$.get(ROOT_PATH + '/data/asset/geo/USA.json', function (usaJson) {
  myChart.hideLoading();
  echarts.registerMap('USA', usaJson, {

uses the USA.json geojson data (https://echarts.apache.org/examples/data/asset/geo/USA.json)

but how would one go about doing the above code in grafana apache eChart plugin to map things out, boundaries, states, counties etc. Is that possible?

I don't want hand holding, code examples, just point me in the right direction and I will dig in.