Issue
Currently the tooltip is limited to only show key value pairs of the values you are hovering.
The component exposes a displayValue ( https://microsoft.github.io/SandDance/docs/sanddance/v3/interfaces/types.tooltipoptions.html ) option for the tooltip, however, that only gives you the ability to change the display value.
Furthermore, it does not support React components. If you pass a react component as the display value, it will render [object Object].
It would be ideal, if there was the ability to pass a custom component to the component. For instance:
<SandDanceReact
data={data}
viewerOptions={{
tooltipOptions: {
tooltip: (values) => {
return <MyFancyTooltip {...values} />;
}
}
}
/>
I realize the React component is only an abstraction over the vega and deck libraries which are not react specific either so this would need a little bit of magic to make it work.
Issue
Currently the tooltip is limited to only show key value pairs of the values you are hovering.
The component exposes a
displayValue( https://microsoft.github.io/SandDance/docs/sanddance/v3/interfaces/types.tooltipoptions.html ) option for the tooltip, however, that only gives you the ability to change the display value.Furthermore, it does not support React components. If you pass a react component as the display value, it will render
[object Object].It would be ideal, if there was the ability to pass a custom component to the component. For instance:
I realize the React component is only an abstraction over the vega and deck libraries which are not react specific either so this would need a little bit of magic to make it work.