Skip to content
Snippets Groups Projects
Unverified Commit fa9ca0e5 authored by colemanw's avatar colemanw Committed by GitHub
Browse files

Merge pull request #32587 from ufundo/chartkit-renderlet-names

ChartKit - names for renderlet listeners
parents cef5f202 79c53ff7
Branches
No related tags found
No related merge requests found
......@@ -101,7 +101,8 @@
const barCount = yAxisBars.length;
if (barCount > 1) {
displayCtrl.chart.on('renderlet', (chart) => {
displayCtrl.chart.on('renderlet.groupedBars', () => {
const chart = displayCtrl.chart;
const tickCount = chart.xUnitCount();
const xAxisLength = chart.xAxisLength();
......
......@@ -328,7 +328,7 @@
this.chart
.width(() => (this.settings.format.width))
.height(() => (this.settings.format.height))
.on('pretransition', () => {
.on('pretransition.canvasColors', () => {
this.chart.selectAll('text').style('fill', this.settings.format.labelColor);
// we need to add the background here as well as to the containing div
// in order for inclusion in exports
......@@ -414,8 +414,8 @@
// Correct vertical alignment of legend labels on Chrome
// Should be fixed upstream and therefore unnecessary in DCv5
this.chart.on('pretransition', (chart) =>
chart.selectAll('.dc-legend-item text')
this.chart.on('pretransition.legendTextCorrect', () =>
this.chart.selectAll('.dc-legend-item text')
.attr('y', legend.itemHeight() - 2)
);
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment