row chart title label needs dy offset
See original GitHub issuerowChart with renderTitleLabel(true) has vertically misaligned title labels:
Both labels and titles have the same y
, but labels have also dy
.
Adding dy
to titles fixes the problem.
diff --git a/src/row-chart.js b/src/row-chart.js
index d7a16de..347ae7a 100644
--- a/src/row-chart.js
+++ b/src/row-chart.js
@@ -241,6 +241,7 @@ dc.rowChart = function (parent, chartGroup) {
var titlelab = rows.select('.' + _titleRowCssClass)
.attr('x', _chart.effectiveWidth() - _titleLabelOffsetX)
.attr('y', _labelOffsetY)
+ .attr('dy', _dyOffset)
.attr('text-anchor', 'end')
.on('click', onClick)
.attr('class', function (d, i) {
Issue Analytics
- State:
- Created 8 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
OFFSET function to change Source Data for a Dynamic Chart
Since our Defined name is controlled by a Drop List, Changing our selection from the Drop List automatically changes our Chart.
Read more >Excel Charts: Dynamic Label positioning of line series - XelPlus
Right mouse click on the data label displayed on the chart. Select Format Data Labels. Under the Label Options, show the Series Name...
Read more >Move and Align Chart Titles, Labels, Legends with ...
The chart titles, labels, and legends can be moved using the arrow ... of points that will offset the chart element from the...
Read more >Dynamically Label Excel Chart Series Lines
One option is to add the series name labels to the very last point in each line and then set the label position...
Read more >Creating Dynamic Charts Using the OFFSET Function and ...
Next, we need to repeat the above process, this time using Label for the Name and the formula below in the Refers to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Fixed in 2.0 beta 28. Thanks @adrm!
Yes, please do. There is a lot to keep track of in this project, and all pull requests help, even small ones. Thanks!