Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pie/donut support for negative values #2646

Open
rudzikdawid opened this issue Jul 19, 2019 · 0 comments
Open

pie/donut support for negative values #2646

rudzikdawid opened this issue Jul 19, 2019 · 0 comments

Comments

@rudzikdawid
Copy link

rudzikdawid commented Jul 19, 2019

C3 version: 0.7.2
D3 version: ^5.8.0
Browser: Chrome 75
OS: Fedora 30

var chart = c3.generate({
    data: {
        columns: [
            ['data1', -30],
            ['data2', 120],
        ],
        type : 'pie',
        onclick: function (d, i) { console.log("onclick", d, i); },
        onmouseover: function (d, i) { console.log("onmouseover", d, i); },
        onmouseout: function (d, i) { console.log("onmouseout", d, i); }
    }
});

c3 renders:

expected effect, something like:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant