Hi,
I've just started using the d3-mitch-tree library for displaying our data, but I've hit a snag with the text formatting and I'd be very grateful if anyone here could help. The issue is that all whitespace is stripped out from within the text of a textbox, so for example, the following node:
var data = {
"id":1,
"name": "AN19CUK051836",
"type": "Root",
"status": "Dead",
"description": "Implanted: 16/08/2020; Culled: 17/08/2020",
"children": []
};
would have all white space before "Culled" removed. HTML tags are also stripped, and I can't find anywhere in the library's documentation how to override this behavior. This is making text formatting impossible, but since it's such a core necessity then I must be missing something. I've been through the library's code and found how to force the text to be left justified (rather than the default centred), but even this seems a crude approach since it should be possible to do this via a (undocumented?) API call. Any help with the white space and/or HTML issues would be really appreciated.