Hariharan V.
Hariharan V.

Reputation: 191

c3 bar chart label not showing

I have a c3 chart script as follows

            data: {
            x : 'x',
            columns: [
                ['Operations',51,6],
                ['x','Local','Local & Overseas'],
            ],
            type: 'bar'

My output is not showing as desired it trims word "Local &" Please refer following screenshot:

enter image description here

Can anyone help me to customise the c3 chart code to make "Local & Overseas" to show correctly. Many thanks!

Upvotes: 0

Views: 254

Answers (1)

mgraham
mgraham

Reputation: 6207

You need to set a suitable value in your c3 configuration for 'padding' -->

https://c3js.org/samples/options_padding.html

Upvotes: 1

Related Questions