Given this data:
data: [
{fn: 'x'},
{fn: 'x'},
]
Is making the following join:
|
.data( |
|
(d: FunctionPlotOptions) => { |
|
return d.data |
|
}, |
|
(d: any) => { |
|
// The key is the function set or other value that uniquely identifies the datum. |
|
return d.fn || d.r || d.x || d.text |
|
} |
|
) |
Return the key x for both values even though there are two different functions.
Evaluate changing the key to be a unique id that identifies each datum instead.