You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Sorting a line chart with multiple traces messes up order of traces #4711
in order to sort them. This works fine if I only have one trace, but with multiple traces it changes the order of a line chart which causes it to zigzag. See example at https://codepen.io/mtadams007/pen/LYVqQjX?editors=0010
I would expect to be able to add the transforms attribute to one trace which reorders the x axis so all the following traces follow the same order.
I saw that you recently updated the docs, but I couldn't find any documentation on transforms in them. Am I missing something?
Activity
oshikryu commentedon May 19, 2020
Here's a few references I found related to
targetwithin the transform method:interpreting
targethttps://github.com/plotly/plotly.js/blob/master/src/lib/index.js#L624-L645
getTargetArrayhttps://github.com/plotly/plotly.js/blob/master/src/transforms/sort.js#L31-L51
An example with filter and aggregate (unfortunately no sort)
https://plotly.com/javascript/multiple-transforms/#filter-and-aggregates
emilykl commentedon Aug 27, 2026
Closing this issue because
transformswas removed from the API in #7240.