I am using split on 1 of my fields.
It is split into different lines.
If I use .label('something')
, then each line has the same name. but I want to give each line a different name.
How to label each line with different name ?
You need to use the regex functionality of .label
Try this:
.label("Ride ID: $1", "^.* > ride_id:(.+) > .*")
The $1
will be replaced by the first argument in the regex, ride_id:(.+)
so you should end up your key labels as:
Ride ID: 4
Ride ID: 54
Ride ID: 5
Ride ID: 14
Ride ID: 50
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With