-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Labels
enhancementNew feature or requestNew feature or requesttypesTypeScript type improvementsTypeScript type improvements
Description
When using with typescript and include the type
in the plotdata, tslint throws
const trace = {x: [1, 2], y: [1, 2], type: 'bar'};
plot([trace]); // type: string not compatible with type: 'scatter' | 'lines' | ...
Current workaround: Explicitly name the type of the plotdata.
import { plot, Plot } from 'nodeplotlib';
const trace: Plot = {x: [1, 2], y: [1, 2], type: 'bar'};
plot([trace]);
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesttypesTypeScript type improvementsTypeScript type improvements