File tree Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 28
28
add basic variable interpolation based on keys from ` dataPoint ` .
29
29
- Introduce the regular Grafana templating mechanism for interpolating variables
30
30
into clickthrough links. As we are now interpolating dashboard ** and** ` dataPoint `
31
- variables, the latter one will get prefixed with ` point_ ` to avoid collisions.
31
+ variables, the latter one will get prefixed with ` __field_ ` to avoid collisions.
32
32
- Apply Grafana-style variable interpolation to ** all** panel settings.
33
33
- Add query parameters into the interpolation dictionary, prefixed by ` request_ ` .
34
34
- Use request parameters prefixed with "panel-" to optionally override the
47
47
- Add ` hideTimepickerNavigation ` option.
48
48
- Add ` circleOptions.strokeEnabled ` and ` circleOptions.strokeWeight ` .
49
49
- Add options ` customAttribution ` and ` customAttributionText ` .
50
+ - Rename ` point_ ` prefix to ` __field_ ` when interpolating datapoint field values
50
51
51
52
## v0.2.0
52
53
Original file line number Diff line number Diff line change @@ -363,10 +363,10 @@ export default class DataFormatter {
363
363
link : link ,
364
364
} ;
365
365
366
- // Add all values from the original datapoint as attributes prefixed with `point_ `.
366
+ // Add all values from the original datapoint as attributes prefixed with `__field_ `.
367
367
for ( let key in datapoint ) {
368
368
const value = datapoint [ key ] ;
369
- key = 'point_ ' + key ;
369
+ key = '__field_ ' + key ;
370
370
dataValue [ key ] = value ;
371
371
}
372
372
Original file line number Diff line number Diff line change @@ -446,8 +446,11 @@ <h5>Popup labels</h5>
446
446
< div class ="gf-form-group ">
447
447
< h5 > Clickthrough links</ h5 >
448
448
< div class ="gf-form ">
449
- < label class ="gf-form-label width-10 "> Clickthrough URL</ label >
450
- < input type ="text " class ="input-small gf-form-input width-20 " ng-model ="ctrl.panel.clickthroughUrl " ng-change ="ctrl.refresh() " ng-model-onblur />
449
+ < label class ="gf-form-label width-10 ">
450
+ Clickthrough URL
451
+ < i class ="grafana-tip fa fa-question-circle " bs-tooltip ="'Address field values by prefixing $__field, e.g. $__field_geohash' "> </ i >
452
+ </ label >
453
+ < input type ="text " class ="input-small gf-form-input width-20 " ng-model ="ctrl.panel.clickthroughUrl " ng-change ="ctrl.refresh() " ng-model-onblur />
451
454
</ div >
452
455
< div class ="gf-form ">
453
456
< label class ="gf-form-label width-10 "> Clickthrough Window</ label >
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ export default class PluginSettings {
78
78
// When given, use request variable "panel-*", making things like these possible.
79
79
// - ?panel-mapCenterLatitude=62.2
80
80
// - ?panel-showZoomControl=false
81
- // - ?panel-clickthroughUrl=/path/to/?geohash=$point_geohash
81
+ // - ?panel-clickthroughUrl=/path/to/?geohash=$__field_geohash
82
82
// - https://daq.example.org/d/D1Fx12kWk/magic-dashboard?panel-clickthroughUrl=/path/to/?foobar=$request_foobar&foobar=hello
83
83
const panel_query_name = 'panel-' + name ;
84
84
const panel_query_value = this . _request [ panel_query_name ] ;
You can’t perform that action at this time.
0 commit comments