Skip to content

Commit 1a2f9bb

Browse files
committed
fix formatting error preventing page from being rendered
1 parent b05aadd commit 1a2f9bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_posts/plotly_js/chart-events/events/2018-08-06-order6_legendclick_event.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
markdown_content: |
1010
`plotly_legendclick` and `plotly_legenddoubleclick` allow customization of the plotly legend. The default behaviour of `plotly_legendclick` is to hide a trace and the default behavior of `plotly_legenddoubleclick` is to select one trace and hide all the others.
1111
We can add to the default behaviour by creating a new `plotly_legendclick` event with a function of our choice. We can also disable the default behaviour by creating a function that returns `false`. In the example below, we do both in order to create a `plotly_legendclick` event which changes the marker color back to black instead of erasing the trace.
12-
--
12+
---
1313

1414
var myPlot = document.getElementById('myDiv'),
1515
x = [1, 2, 3, 4, 5, 6],

0 commit comments

Comments
 (0)