From 90563f216c760a7985d11eceacf0eea3de85f926 Mon Sep 17 00:00:00 2001 From: Adam Bertrand Date: Fri, 17 Jul 2020 16:47:33 +0200 Subject: [PATCH] Fix font issues with firefox --- docs/radar.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/radar.js b/docs/radar.js index 9efeb614..12dbacc9 100644 --- a/docs/radar.js +++ b/docs/radar.js @@ -247,7 +247,7 @@ function radar_visualization(config) { .attr("text-anchor", "middle") .style("fill", "#e5e5e5") .style("font-family", "Arial, Helvetica") - .style("font-size", 42) + .style("font-size", "42px") .style("font-weight", "bold") .style("pointer-events", "none") .style("user-select", "none"); @@ -274,7 +274,7 @@ function radar_visualization(config) { .attr("transform", translate(title_offset.x, title_offset.y)) .text(config.title) .style("font-family", "Arial, Helvetica") - .style("font-size", "34"); + .style("font-size", "34px"); // footer radar.append("text") @@ -282,7 +282,7 @@ function radar_visualization(config) { .text("▲ moved up ▼ moved down") .attr("xml:space", "preserve") .style("font-family", "Arial, Helvetica") - .style("font-size", "10"); + .style("font-size", "10px"); // legend var legend = radar.append("g"); @@ -294,13 +294,13 @@ function radar_visualization(config) { )) .text(config.quadrants[quadrant].name) .style("font-family", "Arial, Helvetica") - .style("font-size", "18"); + .style("font-size", "18px"); for (var ring = 0; ring < 4; ring++) { legend.append("text") .attr("transform", legend_transform(quadrant, ring)) .text(config.rings[ring].name) .style("font-family", "Arial, Helvetica") - .style("font-size", "12") + .style("font-size", "12px") .style("font-weight", "bold"); legend.selectAll(".legend" + quadrant + ring) .data(segmented[quadrant][ring]) @@ -311,7 +311,7 @@ function radar_visualization(config) { .attr("id", function(d, i) { return "legendItem" + d.id; }) .text(function(d, i) { return d.id + ". " + d.label; }) .style("font-family", "Arial, Helvetica") - .style("font-size", "11") + .style("font-size", "11px") .on("mouseover", function(d) { showBubble(d); highlightLegendItem(d); }) .on("mouseout", function(d) { hideBubble(d); unhighlightLegendItem(d); }); } @@ -422,7 +422,7 @@ function radar_visualization(config) { .attr("text-anchor", "middle") .style("fill", "#fff") .style("font-family", "Arial, Helvetica") - .style("font-size", function(d) { return blip_text.length > 2 ? "8" : "9"; }) + .style("font-size", function(d) { return blip_text.length > 2 ? "8px" : "9px"; }) .style("pointer-events", "none") .style("user-select", "none"); }