format_pct(self, x, display_range)
If self.decimals
is :None:None:`None`
, the number of digits after the decimal point is set based on the display_range of the axis as follows:
+---------------+----------+------------------------+ | display_range | decimals | sample | +---------------+----------+------------------------+ | >50 | 0 | x = 34.5
=> 35% | +---------------+----------+------------------------+ | >5 | 1 | x = 34.5
=> 34.5% | +---------------+----------+------------------------+ | >0.5 | 2 | x = 34.5
=> 34.50% | +---------------+----------+------------------------+ | ... | ... | ... | +---------------+----------+------------------------+
This method will not be very good for tiny axis ranges or extremely large ones. It assumes that the values on the chart are percentages displayed on a reasonable scale.
Format the number as a percentage number with the correct number of decimals and adds the percent symbol, if any.
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them