Skip to content

Instantly share code, notes, and snippets.

@shacheeswadia
Created Nov 21, 2021
Embed
What would you like to do?
// tooltip settings
chart
.tooltip()
.useHtml(true)
.titleFormat(function () {
return data.x[this.x];
})
.format(function () {
return "Year: " + this.y + "<br>" + "GDP:$ " + this.z.toFixed(2);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment