DefinitelyTyped/plotly.js/plotly.js.d.ts
2016-06-29 13:31:25 -04:00

34 lines
939 B
TypeScript

// Type definitions for plotly.js
// Project: https://plot.ly/javascript/
// Definitions by: Martin Duparc <https://github.com/martinduparc>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface PlotlyConfig {
staticPlot?: boolean,
editable?: boolean,
autosizable?: boolean,
fillFrame?: boolean,
frameMargins?: number,
scrollZoom?: boolean,
doubleClick?: string,
showTips?: boolean,
showLink?: boolean,
sendData?: boolean,
linkText?: string,
showSources?: boolean,
displayModeBar?: string|boolean,
modeBarButtonsToRemove?: any[],
modeBarButtonsToAdd?: any[],
modeBarButtons?: boolean,
displaylogo?: boolean,
plotGlPixelRatio?: number,
setBackground?: any,
topojsonURL?: string,
mapboxAccessToken?: string,
logging?: boolean
}
declare var Plotly: {
newPlot(divid:string, data:any[], layout?:any, config?:PlotlyConfig):void
};