From 9a03db1a1b176ca16f274af3eb3f8c4a6391935d Mon Sep 17 00:00:00 2001 From: Sebastian Proost Date: Tue, 16 Jan 2018 07:00:52 +0100 Subject: [PATCH] SVG export text in same color as graph --- conekt/static/js/planet_svg.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conekt/static/js/planet_svg.js b/conekt/static/js/planet_svg.js index ab05ae5..036ec14 100644 --- a/conekt/static/js/planet_svg.js +++ b/conekt/static/js/planet_svg.js @@ -114,10 +114,10 @@ function writeSVG(data) { text = node.data('name'); if (node.data('best_name') !== '') { text = node.data('best_name'); } - group.text({y:6, fill:"none", stroke:'#888888'}).content(text) + group.text({y:6, fill:"none", stroke:'#ffffff'}).content(text) .attr('text-anchor', 'middle') .attr('font-family', 'sans-serif'); - group.text({y:6, fill:"white"}).content(text) + group.text({y:6, fill:"black"}).content(text) .attr('text-anchor', 'middle') .attr('font-family', 'sans-serif'); }