OptionalautosizableDO autosize once regardless of layout.autosize (use default width or height values otherwise)
OptionalclassOptionaldebugOptionaldisplaylogoadd the plotly logo on the end of the mode bar
Optionaldisplaydisplay the mode bar (true, false, or 'hover')
Optionaldoubledouble click interaction (false, 'reset', 'autosize' or 'reset+autosize')
Optionaldoublesets the delay for registering a double-click in ms
Optionaleditablewe can edit titles, move annotations, etc
OptionaleditsOptionalfillif we DO autosize, do we fill the container or the screen?
Optionalframeif we DO autosize, set the frame margins in percents of plot size
Optionallinktext appearing in the sendData link
OptionallocaleWhich localization should we use? Should be a string like 'en' or 'en-US'
OptionallocalesLocalization definitions
Locales can be provided either here (specific to one chart) or globally
by registering them as modules.
Should be an object of objects {locale: {dictionary: {...}, format: {...}}}
{
da: {
dictionary: {'Reset axes': 'Nulstil aksler', ...},
format: {months: [...], shortMonths: [...]}
},
...
}
All parts are optional. When looking for translation or format fields, we
look first for an exact match in a config locale, then in a registered
module. If those fail, we strip off any regionalization ('en-US' -> 'en')
and try each (config, registry) again. The final fallback for translation
is untranslated (which is US English) and for formats is the base English
(the only consequence being the last fallback date format %x is DD/MM/YYYY
instead of MM/DD/YYYY). Currently grouping and currency are ignored
for our automatic number formatting, but can be used in custom formats.
OptionalloggingTurn all console logging on or off (errors will be thrown) This should ONLY be set via Plotly.setPlotConfig
OptionalmapboxMapbox access token (required to plot mapbox trace types) If using an Mapbox Atlas server, set this option to '', so that plotly.js won't attempt to authenticate to the public Mapbox server.
Optionalmodefully custom mode bar buttons as nested array, where the outer arrays represents button groups, and the inner arrays have buttons config objects or names of default buttons (see ./components/modebar/buttons.js for more info)
Optionalmodeadd mode bar button using config objects (see ./components/modebar/buttons.js for list of arguments)
Optionalmoderemove mode bar button by name (see ./components/modebar/buttons.js for the list of names)
Optionalplotincrease the pixel ratio for Gl plot images
OptionalplotlyWhen set it determines base URL for the 'Edit in Chart Studio' showEditInChartStudio/showSendToCloud mode bar button and the showLink/sendData on-graph link.
To enable sending your data to Chart Studio Cloud, you need to set both plotlyServerURL to 'https://chart-studio.plotly.com' and also set showSendToCloud to true.
Optionalqueueset the length of the undo/redo queue
OptionalresponsiveMake the chart responsive to window size
OptionalrevisionOptionalscrollmousewheel or two-finger scroll zooms the plot
Optionalsendif we show a link, does it contain data or just link to a plotly file?
Optionalsetfunction to add the background color to a different container or 'opaque' to ensure there's white behind it
Optionalshowenable axis pan/zoom drag handles
Optionalshowenable direct range entry at the pan/zoom drag points (drag handles must be enabled above)
OptionalshowSame as showSendToCloud, but use a pencil icon instead of a floppy-disk.
Note that if both showSendToCloud and showEditInChartStudio are turned, only showEditInChartStudio will be honored.
Optionalshowlink to open this plot in plotly
OptionalshowShould we include a ModeBar button, labeled "Edit in Chart Studio",
that sends this chart to chart-studio.plotly.com (formerly plot.ly)
or another plotly server as specified by plotlyServerURL for editing, export, etc?
Prior to version 1.43.0 this button was included by default, now it is opt-in using this flag.
Note that this button can (depending on plotlyServerURL being set) send your data to an external server.
However that server does not persist your data until you arrive at the Chart Studio and explicitly click "Save".
Optionalshowfalse or function adding source(s) to linkText
Optionalshownew users see some hints about interactivity
Optionalstaticno interactivity, for export or image generation
OptionalstyleOptionaltooverride the defaults for the toImageButton
OptionaltopojsonURLURL to topojson files used in geo charts
OptionaltypesetDetermines whether math should be typeset or not, when MathJax (either v2 or v3) is present on the page.
OptionalupdateOptionalupdateOptionalupdateOptionaluseOptionalwatermarkWatermark the images with the company's logo
The plot config.
See https://github.com/plotly/angular-plotly.js#basic-props for added properties to Plotly config.