c3js / c3js/c3

Enable accessing input json data from callbacks

Open
#1,809 0 comments 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

The issue is that my json contains plenty of metadata I need to access in various callbacks (tooltip, point size, color, etc.).

ATM, there is no way to do that. It would be awesome if targets contained some ID which could be used to access `config.data_json`, e.g.:

``` javascript
function get_tooltip(d, defaultTitleFormat, defaultValueFormat, color) {
var json_item = this.config.data_json[d.input_index];
...
```

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.