Skip to content

Pie chart not displaying when plotting big and small numbers at the same time. #6728

Open
@baptistelabat-syroco

Description

@baptistelabat-syroco

When I plot a piechart, if there is a number much larger than another one (by a factor 100 000 000), no piechart is displayed.
If I then unselect one of the value, the piechart is displayed.
If i reduce the factor between the two numbers, the piechart is displayed as well.

Here is a example:

https://jsfiddle.net/3qr50za6/

var data = [
{
"type": "pie",
"values": [
"1",
"1e-8",
],
"labels": [
"Number",
"Much smaller number",
],
}
];

var layout = {
"title": "Small and big numbers issues",
"showlegend": true,
width: 1000,
height: 400
};

Plotly.newPlot('myDiv', data, layout);

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2considered for next cyclebugsomething brokensev-2serious problem

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions