c3js / c3js/c3

Add custom javascript objects to chart?

Open
#793 2 comments 0 reactions 0 assignees View on GitHub
C-feature-request
Dominant language
JavaScript
Stars
9.3k
Forks
1.4k
Avg merge
6d 16h
Merged PRs (30d)
1

Description

Hii, I want to add some javascript object in all my chart. for instance I want to add `{"primary_key": "123A"}` . My plan is displaying the details from selected chart, execute some sql query and the parameter is come from the custom object that I need to add. Currently in the onclick callback I only got `onclick Object {id: "Proses", value: 81, ratio: 0.051071878940731355, index: 1, name: "Proses"}` and I need the callback returns `onclick Object {id: "Proses", value: 81, ratio: 0.051071878940731355, index: 1, name: "Proses", primary_key: "123A"}`

Thanks

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.