How to use the c3/c3.min.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 j-chimienti / pollofeed / src / OrderGraph.jsx View on Github external
getGraph() {


        const {orders}  = this.props
        const completed_at = orders.map(o => new Date(o.paid_at * 1000))
        const pay_index = orders.map(o => o.pay_index)

        this.chart = c3.generate({
            zoom: {
                enabled: true
            },
            subchart: {
                size: 30,
                show: true
            },
            bindto: '#order_graph',
            data: {
                type: 'spline',
                colors: {
                    'pay index': 'orange'
                },
                x: 'x',
                columns: [
                    ['x', ...completed_at],

c3

D3-based reusable chart library

MIT
Latest version published 4 years ago

Package Health Score

66 / 100
Full package analysis