marcusolsson / grafana-gantt-panel

A panel plugin for Grafana to visualize Gantt charts.
Apache License 2.0
26 stars 12 forks source link

Each gantt Task as a time picker #52

Closed n-arakawa closed 2 years ago

n-arakawa commented 3 years ago

This is feature request.

I want to abuse each 'gantt Task' as the time picker. Add the extra data-link which set the start and end time of the 'gantt Task' to dashboard time-range!

marcusolsson commented 3 years ago

I like it! Though I think you should already be able to do this using data links. Have you tried creating a link to the dashboard where you set the from and to query parameters?

n-arakawa commented 3 years ago

Data link URL is absolute(As far as I know), Therefore

Hope to use locationsrv.

https://grafana.com/docs/grafana/latest/packages_api/runtime/locationsrv/

  getLocationSrv().update({
    query: {
      from: From_value,
      to: To_lue,
    },
    partial: true,
    replace: true
  })
n-arakawa commented 3 years ago

Another option:

https://grafana.com/docs/grafana/latest/packages_api/data/panelprops/

onChangeTimeRange({from:1000, to:2000})