Skip to content
Advertisement

To highlight one point in Violin chart PlotlyJS

I am using Violin chart of PlotylyJS library, and it takes an array of elements and plots it on the chart. Is possible if I want to highlight one point with a different color from that array?

Like if my array is

JavaScript

I want to plot this on the graph but I want the point 65 to be highlighted with a different color.

Advertisement

Answer

I hope this could be Insight of your issue.

You can use selectedpoints with selected for highlighting.

JavaScript

Here is Demo.

Also, please remind boxplot support feature outlier(see Here).

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement