This repository was archived by the owner on Jan 23, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 195
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location information from JSON endpoint, even for table data. The lookup key is the value from the obtained "labelField".
- locationData: “table+json(p)” - showZoomControl - showAttribution - legendContainerSelector
This is a simple implementation of a panel option being used to navigate to a new URL on click.
…a#190 Add basic variable interpolation based on keys from `dataPoint`. Saying that, all metric values have been added to the dataPoint beforehand by prefixing them with `point_` to allow for setting things like `clickthroughURL: /url/to/$point_station_id` if there’s a field called `station_id` in the current datapoint.
into clickthrough links, thus interpolating dashboard **and** dataPoint variables now.
This enables the interpolation of dashboard variables into each of the panel control settings. An example would be to have a variable called “countrycode” which gets populated by a database query defined by an SQL statement like: SELECT country_code AS __value, country_name AS __text FROM stations ORDER BY country_code Then, assigning a value like that to the JSON endpoint URL panel control setting, the machinery would interpolate the selected value assigned to the $countrycode variable appropriately: jsonUrl=/api/json/stations.json?country=$countrycode
interpolation dictionary, prefixed by `request_`. This enables to use request variables in all panel control options. So, when invoking the dashboard with an url query parameter like `map_center_latitude=42.42`, you would be able to interpolate it to a panel control options by i.e. assigning `mapCenterLatitude: $request_map_center_latitude`.
the respective panel control options. https://daq.example.org/d/D1Fx12kWk/magic-dashboard?panel-showZoomControl=false Examples: - ?panel-clickthroughURL=/path/to/?geohash=$point_geohash - https://daq.example.org/d/D1Fx12kWk/magic-dashboard?panel-clickthroughURL=/path/to/?foobar=$request_foobar&foobar=hello
to open clickthrough target in designated window.
when hitting an empty dataset
|
|
Author
|
Hmmm...meant to submit this PR against our fork. Apologies |
|
Dear @svet-b, we will be happy to see this also as a PR against the "develop" branch at https://github.com/hiveeyes/grafana-worldmap-panel. If you don't see any intrinsic reasons against this, we would likely merge your improvements right away. Cheers, |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.