-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename plugin to "panodata-map-panel" #324
Closed
Closed
Conversation
This file contains 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.
Both options provide a more convenient way to determine the dimensions of the map section/frame. Both features are using Leaflet’s `getBounds()` method. `mapFitData` will choose an optimal center and zoom level for covering the displayed data while `mapZoomByRadius` will use the bounding box of a respective circle with the designated radius around the chosen center.
Helped find/remove extra close div
This allows the format/mapping to be wider and avoid truncation.
Add image overlay feature, with tests and documentation.
This allows us to inspect the `__field_` info and display it if we have data beyond what's used in creating the circle size/color. This is elasticsearch-centric for the moment. We can add support for other data sources once we have them available.
This reverts commit 5e7ae9f.
Apparently, this service component will have to be addressed differently on Grafana 8. By now, this update will just ignore / skip anything related to that, so we only lack a minor feature about disabling any keyboard navigation.
|
This PR has been completely misguided, the correct one is grafana-toolbox#113. Apologies! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Hi there,
this patch renames the plugin to
panodata-map-panel
in order to support grafana-toolbox#112.With kind regards,
Andreas.