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

Added "bar.space" parameter to set space between bars in bar charts #2146

Merged
merged 1 commit into from
Aug 19, 2017

Conversation

kt3k
Copy link
Member

@kt3k kt3k commented Aug 17, 2017

This PR supercedes #1815.

#1815 was originally sent to dev branch. I cherry-picked f3fd649 to master branch and it seems working as well.

samples/chart_bar_space.html
2017-08-17 19 09 11

c3.generate({
  data: {
    columns: [
      ['data1', 30, 200, 100],
      ['data2', 50, 20, 10],
      ['data3', 150, 120, 110]
    ],
    type: 'bar'
  },
  bar: {
    space: 0.25
  }
});

close #1815
close #1328
close #1327

@codecov-io
Copy link

codecov-io commented Aug 17, 2017

Codecov Report

Merging #2146 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2146      +/-   ##
==========================================
+ Coverage   73.63%   73.64%   +<.01%     
==========================================
  Files          52       52              
  Lines        4131     4132       +1     
==========================================
+ Hits         3042     3043       +1     
  Misses       1089     1089
Impacted Files Coverage Δ
src/config.js 95.83% <ø> (ø) ⬆️
src/shape.bar.js 90.27% <100%> (+0.13%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 49306eb...9f309fe. Read the comment docs.

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

Successfully merging this pull request may close these issues.

An option to set space between bars in bar chart
3 participants