Skip to content

Custom hover label issue [scatter3d] #2884

@YaroslavTrubanov

Description

@YaroslavTrubanov

If i set custom hover text on point then PointName is duplicated from this text and seems incorrect. I want be able to set both custom name and custom hover.

For example:
image
I want to see only "FirstPrice" as name of point

Code of trace with incorrect display:

                var overbookingShowsPointsX = overbookingShowsPoints.map(point => point.x);
                var overbookingShowsPointsY = overbookingShowsPoints.map(point => point.y);
                var overbookingShowsPointsZ = overbookingShowsPoints.map(point => point.z);
                var overbookingShowsPointsText = overbookingShowsPoints.map(point =>
                    "Days = " + point.x + "<br>" +
                    "Cap = " + point.y + "<br>" +
                    data.currency + " = " + point.z + "<br>" + 
                    point.text);
                var overbookingShowsPointsTrace = {
                    name: "Overbooking & No shows",
                    type: 'scatter3d',
                    mode: 'markers+text',
                    x: overbookingShowsPointsX,
                    y: overbookingShowsPointsY,
                    z: overbookingShowsPointsZ,
                    text: overbookingShowsPointsText,
                    textposition: 'top',
                    hoverinfo: "text",
                    marker: {
                        size: markerRadius,
                        color: 'rgb(11, 31, 255)',
                    },
                    namelength: 0
                };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions