Skip to content

Commit

Permalink
Preserve chart legends in reports (opensearch-project#81) (opensearch…
Browse files Browse the repository at this point in the history
…-project#84)

Signed-off-by: Joshua Li <joshuali925@gmail.com>
(cherry picked from commit 7b51bd9c433cc28ff3f79d4e5f9a1708a322ef97)

Co-authored-by: Joshua Li <joshuali925@gmail.com>
  • Loading branch information
opensearch-trigger-bot[bot] and joshuali925 authored Mar 27, 2023
1 parent 78a6112 commit dd7221e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/components/visual_report/generate_report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const removeNonReportElements = (
reportSource: VISUAL_REPORT_TYPE
) => {
// remove buttons
doc.querySelectorAll("[class^='euiButton']").forEach((e) => e.remove());
doc.querySelectorAll("button[class^='euiButton']:not(.visLegend__button)").forEach((e) => e.remove());
// remove top navBar
doc.querySelectorAll("[class^='euiHeader']").forEach((e) => e.remove());
// remove visualization editor
Expand Down

0 comments on commit dd7221e

Please sign in to comment.