Skip to content

update plotlyjs for offline #971

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 12, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,20 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [2.5.0] - UNRELEASED
## [2.5.0] - 2018-03-12
### Fixed
- `import plotly.figure_factory` does not fail if `pandas` is not installed. See https://github.com/plotly/plotly.py/pull/958
### Added
- New parameter `fill_percent` to the `.insert` method for the dashboards API. You can now insert a box into the dashboard layout and specify what proportion of the original container box it will occupy. Run `help(plotly.dashboard_objs.Dashboard.insert)` for more information on `fill_percent`.
### Updated
- Updated `plotly.min.js` to version 1.35.2.
- New features include adding an `automargin` attribute to cartesian axes and a layout `grids` attribute for easy subplot generation.
- See [the plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md#1352----2018-03-09) for additional information regarding the updates.
- `plotly.figure_factory.create_choropleth` has changed some of the default plotting options:
- 'offline_mode' param has been removed from call signature
- persistent selection api for the centroid points is automatically enabled. See https://plot.ly/python/reference/#scatter-selected and https://plot.ly/python/reference/#scatter-unselected for details
- FIPS values that appear on hover are 0-padded to ensure they are 5 digits
- for the county lines data `hover_info='none'` by default
- 'offline_mode' param has been removed from call signature.
- Persistent selection api for the centroid points is automatically enabled. See https://plot.ly/python/reference/#scatter-selected and https://plot.ly/python/reference/#scatter-unselected for details
- FIPS values that appear on hover are 0-padded to ensure they are 5 digits.
- `hover_info='none'` is now default for the county lines data.

## [2.4.1] - 2018-02-21
### Fixed
Expand Down Expand Up @@ -685,4 +688,4 @@ it does.
```

### Fixed
- The height of the graph in `iplot` respects the figure's height in layout
- The height of the graph in `iplot` respects the figure's height in layout
80 changes: 40 additions & 40 deletions plotly/graph_objs/graph_objs.py
Original file line number Diff line number Diff line change
Expand Up @@ -873,15 +873,16 @@ class Bar(PlotlyDict):
"""
Valid attributes for 'bar' at path [] under parents ():

['bardir', 'base', 'basesrc', 'constraintext', 'customdata',
'customdatasrc', 'dx', 'dy', 'error_x', 'error_y', 'hoverinfo',
'hoverinfosrc', 'hoverlabel', 'hovertext', 'hovertextsrc', 'ids',
'idssrc', 'insidetextfont', 'legendgroup', 'marker', 'name', 'offset',
'offsetsrc', 'opacity', 'orientation', 'outsidetextfont', 'r', 'rsrc',
'selected', 'selectedpoints', 'showlegend', 'stream', 't', 'text',
'textfont', 'textposition', 'textpositionsrc', 'textsrc', 'tsrc',
'type', 'uid', 'unselected', 'visible', 'width', 'widthsrc', 'x', 'x0',
'xaxis', 'xcalendar', 'xsrc', 'y', 'y0', 'yaxis', 'ycalendar', 'ysrc']
['bardir', 'base', 'basesrc', 'cliponaxis', 'constraintext',
'customdata', 'customdatasrc', 'dx', 'dy', 'error_x', 'error_y',
'hoverinfo', 'hoverinfosrc', 'hoverlabel', 'hovertext', 'hovertextsrc',
'ids', 'idssrc', 'insidetextfont', 'legendgroup', 'marker', 'name',
'offset', 'offsetsrc', 'opacity', 'orientation', 'outsidetextfont',
'r', 'rsrc', 'selected', 'selectedpoints', 'showlegend', 'stream', 't',
'text', 'textfont', 'textposition', 'textpositionsrc', 'textsrc',
'tsrc', 'type', 'uid', 'unselected', 'visible', 'width', 'widthsrc',
'x', 'x0', 'xaxis', 'xcalendar', 'xsrc', 'y', 'y0', 'yaxis',
'ycalendar', 'ysrc']

Run `<bar-object>.help('attribute')` on any of the above.
'<bar-object>' is the object at []
Expand Down Expand Up @@ -1132,9 +1133,8 @@ class ErrorY(PlotlyDict):
Valid attributes for 'error_y' at path [] under parents ():

['array', 'arrayminus', 'arrayminussrc', 'arraysrc', 'color',
'copy_ystyle', 'copy_zstyle', 'opacity', 'symmetric', 'thickness',
'traceref', 'tracerefminus', 'type', 'value', 'valueminus', 'visible',
'width']
'copy_zstyle', 'opacity', 'symmetric', 'thickness', 'traceref',
'tracerefminus', 'type', 'value', 'valueminus', 'visible', 'width']

Run `<error_y-object>.help('attribute')` on any of the above.
'<error_y-object>' is the object at []
Expand All @@ -1148,9 +1148,8 @@ class ErrorZ(PlotlyDict):
Valid attributes for 'error_z' at path [] under parents ():

['array', 'arrayminus', 'arrayminussrc', 'arraysrc', 'color',
'copy_ystyle', 'copy_zstyle', 'opacity', 'symmetric', 'thickness',
'traceref', 'tracerefminus', 'type', 'value', 'valueminus', 'visible',
'width']
'opacity', 'symmetric', 'thickness', 'traceref', 'tracerefminus',
'type', 'value', 'valueminus', 'visible', 'width']

Run `<error_z-object>.help('attribute')` on any of the above.
'<error_z-object>' is the object at []
Expand Down Expand Up @@ -1459,7 +1458,7 @@ class Layout(PlotlyDict):
['angularaxis', 'annotations', 'autosize', 'bargap', 'bargroupgap',
'barmode', 'barnorm', 'boxgap', 'boxgroupgap', 'boxmode', 'calendar',
'colorway', 'datarevision', 'direction', 'dragmode', 'font', 'geo',
'height', 'hiddenlabels', 'hiddenlabelssrc', 'hidesources',
'grid', 'height', 'hiddenlabels', 'hiddenlabelssrc', 'hidesources',
'hoverdistance', 'hoverlabel', 'hovermode', 'images', 'legend',
'mapbox', 'margin', 'orientation', 'paper_bgcolor', 'plot_bgcolor',
'polar', 'radialaxis', 'scene', 'separators', 'shapes', 'showlegend',
Expand Down Expand Up @@ -1934,18 +1933,19 @@ class XAxis(PlotlyDict):
"""
Valid attributes for 'xaxis' at path [] under parents ():

['anchor', 'autorange', 'autotick', 'backgroundcolor', 'calendar',
'categoryarray', 'categoryarraysrc', 'categoryorder', 'color',
'constrain', 'constraintoward', 'domain', 'dtick', 'exponentformat',
'fixedrange', 'gridcolor', 'gridwidth', 'hoverformat', 'layer',
'linecolor', 'linewidth', 'mirror', 'nticks', 'overlaying', 'position',
'range', 'rangemode', 'rangeselector', 'rangeslider', 'scaleanchor',
'scaleratio', 'separatethousands', 'showaxeslabels', 'showbackground',
'showexponent', 'showgrid', 'showline', 'showspikes', 'showticklabels',
'showtickprefix', 'showticksuffix', 'side', 'spikecolor', 'spikedash',
'spikemode', 'spikesides', 'spikesnap', 'spikethickness', 'tick0',
'tickangle', 'tickcolor', 'tickfont', 'tickformat', 'tickformatstops',
'ticklen', 'tickmode', 'tickprefix', 'ticks', 'ticksuffix', 'ticktext',
['anchor', 'automargin', 'autorange', 'autotick', 'backgroundcolor',
'calendar', 'categoryarray', 'categoryarraysrc', 'categoryorder',
'color', 'constrain', 'constraintoward', 'domain', 'dtick',
'exponentformat', 'fixedrange', 'gridcolor', 'gridwidth',
'hoverformat', 'layer', 'linecolor', 'linewidth', 'mirror', 'nticks',
'overlaying', 'position', 'range', 'rangemode', 'rangeselector',
'rangeslider', 'scaleanchor', 'scaleratio', 'separatethousands',
'showaxeslabels', 'showbackground', 'showexponent', 'showgrid',
'showline', 'showspikes', 'showticklabels', 'showtickprefix',
'showticksuffix', 'side', 'spikecolor', 'spikedash', 'spikemode',
'spikesides', 'spikesnap', 'spikethickness', 'tick0', 'tickangle',
'tickcolor', 'tickfont', 'tickformat', 'tickformatstops', 'ticklen',
'tickmode', 'tickprefix', 'ticks', 'ticksuffix', 'ticktext',
'ticktextsrc', 'tickvals', 'tickvalssrc', 'tickwidth', 'title',
'titlefont', 'type', 'visible', 'zeroline', 'zerolinecolor',
'zerolinewidth']
Expand Down Expand Up @@ -1974,18 +1974,18 @@ class YAxis(PlotlyDict):
"""
Valid attributes for 'yaxis' at path [] under parents ():

['anchor', 'autorange', 'autotick', 'backgroundcolor', 'calendar',
'categoryarray', 'categoryarraysrc', 'categoryorder', 'color',
'constrain', 'constraintoward', 'domain', 'dtick', 'exponentformat',
'fixedrange', 'gridcolor', 'gridwidth', 'hoverformat', 'layer',
'linecolor', 'linewidth', 'mirror', 'nticks', 'overlaying', 'position',
'range', 'rangemode', 'scaleanchor', 'scaleratio', 'separatethousands',
'showaxeslabels', 'showbackground', 'showexponent', 'showgrid',
'showline', 'showspikes', 'showticklabels', 'showtickprefix',
'showticksuffix', 'side', 'spikecolor', 'spikedash', 'spikemode',
'spikesides', 'spikesnap', 'spikethickness', 'tick0', 'tickangle',
'tickcolor', 'tickfont', 'tickformat', 'tickformatstops', 'ticklen',
'tickmode', 'tickprefix', 'ticks', 'ticksuffix', 'ticktext',
['anchor', 'automargin', 'autorange', 'autotick', 'backgroundcolor',
'calendar', 'categoryarray', 'categoryarraysrc', 'categoryorder',
'color', 'constrain', 'constraintoward', 'domain', 'dtick',
'exponentformat', 'fixedrange', 'gridcolor', 'gridwidth',
'hoverformat', 'layer', 'linecolor', 'linewidth', 'mirror', 'nticks',
'overlaying', 'position', 'range', 'rangemode', 'scaleanchor',
'scaleratio', 'separatethousands', 'showaxeslabels', 'showbackground',
'showexponent', 'showgrid', 'showline', 'showspikes', 'showticklabels',
'showtickprefix', 'showticksuffix', 'side', 'spikecolor', 'spikedash',
'spikemode', 'spikesides', 'spikesnap', 'spikethickness', 'tick0',
'tickangle', 'tickcolor', 'tickfont', 'tickformat', 'tickformatstops',
'ticklen', 'tickmode', 'tickprefix', 'ticks', 'ticksuffix', 'ticktext',
'ticktextsrc', 'tickvals', 'tickvalssrc', 'tickwidth', 'title',
'titlefont', 'type', 'visible', 'zeroline', 'zerolinecolor',
'zerolinewidth']
Expand Down
Loading