Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

getImage for dates returns blank graph #63

Open
@PinnacleBot

Description

@PinnacleBot
var dates = ['2020-05-09T17:48:49.000+00:00', '2020-05-06T17:48:49.000+00:00']
var members = [16, 9]

var trace = {
                x: [dates],
                y: [members],
                type: "scatter"
            };
        var figure = {'data': [trace]};

        var imgOpts = {
            format: 'jpeg',
            width: 700,
            height: 500
        };
        plotly.getImage(figure, imgOpts, function (error, imageStream) {
            if (error) return console.log (error);
        
            var fileStream = fs.createWriteStream('../../Bots/Pinnacle/graphs/1.jpeg');
            imageStream.pipe(fileStream);
            fileStream.on('error', err => console.log(err))
        })

This code returns a jpeg file that is a blank graph. If any more info is needed just say so

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