Are data links supported? #219
-
And would it be possible to outline how to add them if they are? I've found many references to dashboard links and panel links but cannot find anything in relation to data links. I see that in the old |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
https://grafana.github.io/grafonnet/API/panel/timeSeries/index.html#fn-standardoptionswithlinks should give you that. The items in the array doesn't seem to be defined in the schema, so we don't have a jsonnet counterpart for it. I had a quick look at a local instance and it seems very simple: panel
+ standardOptions.withLinks([
{
title: 'my title',
url: 'http://site.com',
targetBlank: true,
},
]) |
Beta Was this translation helpful? Give feedback.
https://grafana.github.io/grafonnet/API/panel/timeSeries/index.html#fn-standardoptionswithlinks should give you that.
The items in the array doesn't seem to be defined in the schema, so we don't have a jsonnet counterpart for it. I had a quick look at a local instance and it seems very simple: