dimanche 18 août 2019

Creating a scatter in plotly with multiple values in the same spot in JS

I have a scatter and a list of markers with an x as a date and y as text. When there're two objects with the same timestamp, the graph shows only one of them.

I would like to see both of them no hover, is that possible?

This is the configuration I currently have:

   this.tagsMarkerData = {
        x: _.map(this.sessionInfo.tags, (tag) => { return new Date(tag.timestamp); }),
        y: tagValues,
        mode: 'markers',
        type: 'scatter',
        name: 'Tags',
        marker: {
            size: 16,
            symbol: 'square',
            color: '#2b76b4'
        },
        hoverinfo:"text",
        text: _.map(this.sessionInfo.tags, (tag) => { return tag.name; }),
    };




Aucun commentaire:

Enregistrer un commentaire