Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

Dict Line Marker for Javascript?

Here is an example of a python chart in Plotly that has a marker line as a hover effect.

Is there something similar to

marker = dict(
color = ‘FFBAD2’,
line = dict(width = 1)

in javascript or JSON to add a line hover effect on a line chart?


Can you please share the code snippet for line hover ?

In general, you can figure out what the correct javascript would be by using the {} format rather than dict. For instance:

var marker = 
    color: 'FFBAD2',
        width: 1

But without knowing more about your explicit case, can’t be of much help. Could you supply a bit more code?