palantir-foundryfoundry-slate

How can I create a tooltip to show a chart series in Slate?


I built a chart and it turned out chaotic because it had too many series in the legend. Therefore, I want to use the tooltips to show the series title, so that it looks tidy. But I am not sure what is the best way to achieve that.

The goal is that when you hover over a color band on the bar chart the correct title shows up. Below is an example of what it currently looks like, with too many series in the legend. confusing stacked bar chart


Solution

  • You can turn on tooltips using the miscellaneous tab of your chart menu. Then, input the value of {{w_chart.hover.series}}.

    Input area in slate