Custom tooltip text and keeping stroke colour

channels: {
 year: {
   value: {
     transform: (data) => data.map((d) => d.year),
     label: "My custom year label"
   }
 }

shorter, but maybe more arcane:

channels: {year: Object.assign((d) => d.year, {label: "My custom year label"})}

Note that it would be tempting to have the following—but it doesn’t work currently, since the label must be on the “value”:

channels: {year: {value: "year", label: "My custom year label"}}
1 Like