Add c3_chart_fn.width() and c3_chart_fn.height() methods to chart API
- Dominant language
- JavaScript
- Stars
- 9.3k
- Forks
- 1.4k
- Avg merge
- 6d 16h
- Merged PRs (30d)
- 1
Description
I have to display a set of horisontal stacked bar charts on a single page. The requirement is that bars should have fixed width and the distance between bars also should be fixed. But the chart height should be automatically based on a number of categories.
bar.width.ratio bar.width does not help because cannot be used together and anyway the height is fixed.
Is there any way to automatically cahnge chart height based on the number of categories and keep bars and distance between them fixed?
Thnanks!
Contributor guide
Research direction
Start at the chart API and inspect the existing bar.width and bar.width.ratio options, then reproduce a horizontal stacked-bar chart with multiple categories. Done means chart.width and chart.height methods exist and the chart height can follow the category count while bar width and spacing remain fixed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- d3, javascript
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100