diff --git a/ts/routes/graphs/buttons.ts b/ts/routes/graphs/buttons.ts index 98b80e4ce..be7cb87dd 100644 --- a/ts/routes/graphs/buttons.ts +++ b/ts/routes/graphs/buttons.ts @@ -159,7 +159,7 @@ export function renderButtons( // Add a timeout to ensure that the text elements are populated setTimeout(() => { - svg.selectAll("text") + svg.select(".x-ticks").selectAll("text") .each(function(d) { const current_text_element = this; const current_text_element_content = current_text_element.textContent;