c3js / c3js/c3

The ordering of the data points in tooltip is always in descending order

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

version: 0.4.11
browser: any

The ordering of the data elements are in terms of their value.
Eg: if there are..
data1: [10, 20, 30]
data2: [15, 5, 32]

then in the 1st point the order in tooltip is data2, data1. In 2nd data1, data2. in 3rd data2, data1.

But it will be harder for the person who is analysing graphs to see the data1 in different position in the tooltip.

As far as I've checked there apis of yours, I didn't get one to fix the order of data in the tooltip.

This thing should be implemented I think

Contributor guide

Open the contributing guide

Research direction

No source file or test is named in the issue. Start by locating the tooltip data-ordering entry point and determine how series order could be exposed as an API option; done means tooltip entries can follow a stable data-series order instead of descending values, with coverage for the shown data1/data2 example.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.