Skip to content

Commit 20150a2

Browse files
committed
Remove automatic key suffix for popover texts
1 parent 6e1d234 commit 20150a2

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
- Add `circleOptions.strokeEnabled` and `circleOptions.strokeWeight`.
4949
- Add options `customAttribution` and `customAttributionText`.
5050
- Rename `point_` prefix to `__field_` when interpolating datapoint field values
51+
- Remove automatic key suffix for popover texts
5152

5253
## v0.2.0
5354

src/data_formatter.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -338,15 +338,6 @@ export default class DataFormatter {
338338
let locationNameFromJson = location ? location.name : undefined;
339339
let locationNameEffective = locationNameFromJson || locationNameFromTable || key;
340340

341-
// Add regular label as suffix when label is coming from JSON through "table+json" or "table+jsonp".
342-
// This is effectively the key value.
343-
// This is required to attach station identifiers to the effective name.
344-
// Todo: Better control this through appropriate editor option, e.g.
345-
// "Add location key to label" (`addLocationKey`).
346-
if (labelJsonKey) {
347-
locationNameEffective += ` (${labelJsonKey})`;
348-
}
349-
350341
const dataValue = {
351342

352343
// Add location information.

0 commit comments

Comments
 (0)