Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
remove deprecated 'bardir' attribute (replaced by 'orientation')
  • Loading branch information
emilykl committed Oct 7, 2024
commit 1acf90d8bc4b2ecfb36bc80c9975b60ee045aaef
11 changes: 0 additions & 11 deletions src/plot_api/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,17 +295,6 @@ exports.cleanData = function(data) {
delete trace.error_y.opacity;
}

// convert bardir to orientation, and put the data into
// the axes it's eventually going to be used with
if('bardir' in trace) {
if(trace.bardir === 'h' && (traceIs(trace, 'bar') ||
trace.type.substr(0, 9) === 'histogram')) {
trace.orientation = 'h';
exports.swapXYData(trace);
}
delete trace.bardir;
}

// now we have only one 1D histogram type, and whether
// it uses x or y data depends on trace.orientation
if(trace.type === 'histogramy') exports.swapXYData(trace);
Expand Down
9 changes: 0 additions & 9 deletions src/traces/bar/attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,13 +227,4 @@ module.exports = {
editType: 'style'
},
zorder: scatterAttrs.zorder,

_deprecated: {
bardir: {
valType: 'enumerated',
editType: 'calc',
values: ['v', 'h'],
description: 'Renamed to `orientation`.'
}
}
};
4 changes: 0 additions & 4 deletions src/traces/histogram/attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,5 @@ module.exports = {
selected: barAttrs.selected,
unselected: barAttrs.unselected,

_deprecated: {
bardir: barAttrs._deprecated.bardir
},

zorder: barAttrs.zorder
};