c3js / c3js/c3

tooltip.format.value index variable different on Chrome vs Safari/Firefox

Open
#1,308 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

It seems I have stumbled across a bug with the tooltip.format.value behaviour. See [JSFiddle](http://jsfiddle.net/h2ud3cxy/)

I've added a tooltip to return the `index` of a datapoint on mouseover. In Safari and Firefox I get the same value for the index variable but on Chrome I get different values.

Any help in this regard will be greatly appreciated.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the linked JSFiddle in Chrome, Safari, and Firefox and compare the index passed to tooltip.format.value. The issue names no source file or test; done means the browser discrepancy is resolved or its cause and expected behavior are clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
d3js, javascript
Domain
data-visualization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.