How to use the c3/c3.js.generate function in c3

To help you get started, we’ve selected a few c3 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github CenterForOpenScience / osf.io / admin / static / js / sales_analytics / dashboard.js View on Github external
self.getUserPercentage = function(userCount) {
        var chart = c3.generate({
            bindto: '#db-chart-user-percent',
            data: {
                columns: [['Percentage'].concat(userCount.percent)],
                type: 'bar',
                colors: {
                    Count: '#ff8083',
                }
            },
            axis: {
                x: {
                    type: 'category',
                    categories: userCount.tags,
                },
                rotated: true
            },
            bar: {

c3

D3-based reusable chart library

MIT
Latest version published 4 years ago

Package Health Score

66 / 100
Full package analysis