BioplatformsAustralia / bpaotu

OTU database access for the Australian Microbiome
GNU Affero General Public License v3.0
5 stars 1 forks source link

Missing labels in taxonomy sunburst chart #175

Open hou098 opened 2 years ago

hou098 commented 2 years ago

Sunburst labels don't always appear. Observed with the 16S_BISSO_TEST dataset Looks similar to https://github.com/plotly/plotly.py/issues/3042

Screenshot 2022-01-17 at 10-41-29 Bioplatforms OTU Search Facility Screenshot 2022-01-17 at 10-42-23 Bioplatforms OTU Search Facility

DOM inspector shows that the text is there, just scaled to a tiny value (3.242593593257074e-15)

<g class="slice cursor-pointer">
    <path class="surface"
        style="pointer-events: all; stroke-width: 2px; fill: rgb(31, 119, 180); fill-opacity: 1; stroke: rgb(255, 255, 255); stroke-opacity: 1;"
        d="M1269.6666666666667,453A117.66666666666666,117.66666666666666 0,1,0 1034.3333333333333,453A117.66666666666666,117.66666666666666 0,1,0 1269.6666666666667,453.00000000000006ZM1387.3333333333333,453A235.33333333333331,235.33333333333331 0,1,1 916.6666666666667,452.99999999999994A235.33333333333331,235.33333333333331 0,1,1 1387.3333333333333,453.00000000000006Z">
    </path>
    <g class="slicetext"><text data-notex="1" class="slicetext" text-anchor="middle"
            style="font-family: &quot;Open Sans&quot;, verdana, arial, sans-serif; font-size: 12px; fill: rgb(255, 255, 255); fill-opacity: 1; white-space: pre;"
            data-unformatted="p__Cyanobacteria<br>phylum<br>38,175<br>100.00%" data-math="N" x="0" y="0"
            transform="translate(916.6666666666669,453.00000000000006)scale(3.242593593257074e-15)">
            <tspan class="line" dy="0em" x="0" y="0">p__Cyanobacteria</tspan>
            <tspan class="line" dy="1.3em" x="0" y="0">phylum</tspan>
            <tspan class="line" dy="2.6em" x="0" y="0">38,175</tspan>
            <tspan class="line" dy="3.9000000000000004em" x="0" y="0">100.00%</tspan>
        </text></g>
</g>