Optional
autosizableDO autosize once regardless of layout.autosize (use default width or height values otherwise)
Optional
classOptional
debugOptional
displaydisplay the mode bar (true, false, or 'hover')
Optional
displaylogoadd the plotly logo on the end of the mode bar
Optional
doubledouble click interaction (false, 'reset', 'autosize' or 'reset+autosize')
Optional
doublesets the delay for registering a double-click in ms
Optional
editablewe can edit titles, move annotations, etc
Optional
editsOptional
fillif we DO autosize, do we fill the container or the screen?
Optional
frameif we DO autosize, set the frame margins in percents of plot size
Optional
globalSet global transform to be applied to all traces with no specification needed
Optional
linktext appearing in the sendData link
Optional
localeWhich localization should we use? Should be a string like 'en' or 'en-US'
Optional
localesLocalization 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.
Optional
loggingTurn all console logging on or off (errors will be thrown) This should ONLY be set via Plotly.setPlotConfig
Optional
mapboxMapbox 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.
Optional
modefully 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)
Optional
modeadd mode bar button using config objects (see ./components/modebar/buttons.js for list of arguments)
Optional
moderemove mode bar button by name (see ./components/modebar/buttons.js for the list of names)
Optional
plotincrease the pixel ratio for Gl plot images
Optional
plotlyWhen 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.
Optional
queueset the length of the undo/redo queue
Optional
responsiveMake the chart responsive to window size
Optional
revisionOptional
scrollmousewheel or two-finger scroll zooms the plot
Optional
sendif we show a link, does it contain data or just link to a plotly file?
Optional
setfunction to add the background color to a different container or 'opaque' to ensure there's white behind it
Optional
showenable axis pan/zoom drag handles
Optional
showenable direct range entry at the pan/zoom drag points (drag handles must be enabled above)
Optional
showSame 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.
Optional
showlink to open this plot in plotly
Optional
showShould 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".
Optional
showfalse or function adding source(s) to linkText
Optional
shownew users see some hints about interactivity
Optional
staticno interactivity, for export or image generation
Optional
styleOptional
tooverride the defaults for the toImageButton
Optional
topojsonURLURL to topojson files used in geo charts
Optional
typesetDetermines whether math should be typeset or not, when MathJax (either v2 or v3) is present on the page.
Optional
updateOptional
updateOptional
updateOptional
useOptional
watermarkWatermark 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.