c3js / c3js/c3

Customize Multi Series Tooltips

Open
#2,073 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
9.3k
Forks
1.4k
Avg merge
6d 16h
Merged PRs (30d)
1

Description

I am using this code to customize a tooltip on a multiline xy scatter chart. How would I modify the tooltip so each series would have its own unique label, nameArr, nameArr1, nameArr2...?

tooltip: {
format: {
title: function(x) {
var indOfVal = engagmentArr.indexOf(x);
return nameArr[indOfVal - 1]
},
name:function(){
return engagmentArr[0];
}
},
},

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.