diff --git a/docs/radar.js b/docs/radar.js index 4abd4c10..eea9c252 100644 --- a/docs/radar.js +++ b/docs/radar.js @@ -309,13 +309,15 @@ function radar_visualization(config) { .style("font-size", "14") .style("fill", "#999") - // footer - radar.append("text") - .attr("transform", translate(config.footer_offset.x, config.footer_offset.y)) - .text("▲ moved up ▼ moved down ★ new ⬤ no change") - .attr("xml:space", "preserve") - .style("font-family", config.font_family) - .style("font-size", "12px"); + if (config.show_footer !== false) { + // footer + radar.append("text") + .attr("transform", translate(config.footer_offset.x, config.footer_offset.y)) + .text("▲ moved up ▼ moved down ★ new ⬤ no change") + .attr("xml:space", "preserve") + .style("font-family", config.font_family) + .style("font-size", "12px"); + } // legend const legend = radar.append("g");