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
better API support for parallel coordinates (parcoords) lines styles #2573
On related note, is it possible to apply a color function to selectively color lines, e.g., based on a categorical attribute. A feature that the parcoords API might support. Thanks.
changed the title [-]Feature request: Better API support for parallel coordinates (parcoords) lines and axis[/-][+]Feature request: Better API support for parallel coordinates (parcoords) lines styles[/+]on May 31, 2019
the ticklabels are displayed as if the font were set to be bold:
Is this the intended behaviour?
It's so difficult to style this trace type!!!! The font for ticks doesn't appear to be from the Balto family, like that for labels.
We've solved this and the fix will come out soon :) And yes, parcoords was built rather differently from the rest of this library, so it doesn't automatically inherit many of our fixes and improvements and its API is a bit inconsistent :(
Cool, I started looking into it. @archmoj I saw that you wrote the code for the line width in lines.js under src/traces/parcoords. Do you think this feature is relevant / it would be a good first contribution? (I'm new to open-source contributions)
changed the title [-]Feature request: Better API support for parallel coordinates (parcoords) lines styles[/-][+]better API support for parallel coordinates (parcoords) lines styles[/+]on Aug 8, 2024
Basically, when I want to highlight a line, I temporarily set a constraintRange on all dimensions matching the line's value +/- 2%
This has a double effect :
all the other lines become greyed out with an opacity at 30%
on each axis there's a pink highlight around the lines value which helps making the line stand out
on top of that I set the color for all lines to red (but it affects only my selected line as the others are greyed out)
I found this was enough for my need, but to make the line wider it would also be possible to create some additional lines with values slightly lower and higher than the actual values. I they are inside the 4% range around the actual value they wouldnt be filtered and would stand out as well.
a bit on the hacky side, but I prefer this over using hiplot (a library that supports this feature very well, but comes with its own bag of issues)
My apologies @AhmedThahir - we have been focused on getting the next full plotly.js release out the door. Realistically, we are unlikely to get to this one any time soon, but if someone from the community wants to submit a PR, I will prioritize review. Thanks - @gvwilson
apologies @DanielWigh but we don't have anyone to put against this any time soon - as noted on Jan 20, we'd be happy to prioritize review and merge of a community PR. Thanks - @gvwilson
Activity
idea-launch-lab commentedon Jun 27, 2018
On related note, is it possible to apply a color function to selectively color lines, e.g., based on a categorical attribute. A feature that the parcoords API might support. Thanks.
etpinard commentedon May 31, 2019
Merging the "axis" part of this request in #2292
[-]Feature request: Better API support for parallel coordinates (parcoords) lines and axis[/-][+]Feature request: Better API support for parallel coordinates (parcoords) lines styles[/+]bhvbhushan commentedon Jul 17, 2019
Is there any update on this issue ?? or some alternative probably ??? Thanks
bthorsted commentedon Jan 30, 2020
Not sure if this is relevant, but adding support for exporting parcoords to vector graphics would also be greatly appreciated.
ped59430 commentedon Jun 30, 2020
+1
Buiboni commentedon Jul 14, 2020
+1 for line style manipulation.
nicolaskruchten commentedon Jul 14, 2020
This is a good idea, and we would happily work with someone from the community to get these changes implemented :)
KaleabTessera commentedon Oct 30, 2020
+1
ag-ayush commentedon Mar 15, 2021
+1
Di-o-go commentedon Apr 14, 2021
+1
empet commentedon Apr 20, 2021
I answered a question on Julia discourse related to setting font color and font family for both ticks and labels in a parcoords chart.
With this code:
the ticklabels are displayed as if the font were set to be bold:

Is this the intended behaviour?
It's so difficult to style this trace type!!!! The font for ticks doesn't appear to be from the Balto family, like that for labels.
nicolaskruchten commentedon Apr 20, 2021
We've solved this and the fix will come out soon :) And yes,
parcoordswas built rather differently from the rest of this library, so it doesn't automatically inherit many of our fixes and improvements and its API is a bit inconsistent :(8 remaining items
kamibrumi commentedon May 10, 2024
Has anyone started working on this? I'm willing to start a PR.
sroener commentedon May 10, 2024
I would also agree that this is an important feature! Especially line width and opacity would be great!
An additional point on the wishlist would be an option to get spline lines/bundling of lines.
Maybe as some form of Inspiration: https://facebookresearch.github.io/hiplot/
They made a great visualization tool, but one could never export the plot as static data and it is a public archive by now.
kamibrumi commentedon May 12, 2024
Cool, I started looking into it. @archmoj I saw that you wrote the code for the line width in lines.js under src/traces/parcoords. Do you think this feature is relevant / it would be a good first contribution? (I'm new to open-source contributions)
[-]Feature request: Better API support for parallel coordinates (parcoords) lines styles[/-][+]better API support for parallel coordinates (parcoords) lines styles[/+]BrannJoly commentedon Sep 2, 2024
I solved it with a hack, it works great!
Basically, when I want to highlight a line, I temporarily set a constraintRange on all dimensions matching the line's value +/- 2%
This has a double effect :
on top of that I set the color for all lines to red (but it affects only my selected line as the others are greyed out)
I found this was enough for my need, but to make the line wider it would also be possible to create some additional lines with values slightly lower and higher than the actual values. I they are inside the 4% range around the actual value they wouldnt be filtered and would stand out as well.
a bit on the hacky side, but I prefer this over using hiplot (a library that supports this feature very well, but comes with its own bag of issues)
this is what the final result looks like
varanasivenkatsai commentedon Sep 18, 2024
Hi @BrannJoly, this solution looks really great. Could you be able to provide quick sample code on how you achieved it?
AhmedThahir commentedon Jan 19, 2025
Any updates?
gvwilson commentedon Jan 20, 2025
My apologies @AhmedThahir - we have been focused on getting the next full plotly.js release out the door. Realistically, we are unlikely to get to this one any time soon, but if someone from the community wants to submit a PR, I will prioritize review. Thanks - @gvwilson
DanielWigh commentedon Jul 7, 2025
Any update on increasing the line width?
gvwilson commentedon Jul 8, 2025
apologies @DanielWigh but we don't have anyone to put against this any time soon - as noted on Jan 20, we'd be happy to prioritize review and merge of a community PR. Thanks - @gvwilson
DanielWigh commentedon Jul 8, 2025
@gvwilson Okay thanks, might try to do this in a few weeks.