Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Suggestion to improve setup-plot.js  #3

@chintanp

Description

@chintanp

I have two issues, very small ones,

  1. setup-plot.js - If we try to run the file as it is, by just making changes to the config.json, and updating our values of username, apikey and tokens, then it give the "Aw-snap ....not registered on plotly error". On debugging, I found that I was getting the response, and user and apikey (someplaces, its apiKey, might consider standardising that) were populated correctly, but the call to Plotly.plot() was giving this erroneous response.

So, as it stands out, one possible solution to the problem is updating the call while initialising Plotly, which is currently being called without arguments. This needs to be changed to

 Plotly = require('plotly')(username, apiKey);

and then its " All streams go!!!" :)

  1. I feel there is repetition with other js file, when my setup-plot.js already streams the data, and I can see it, what is the utility of the other file.

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