jimmybow / visdcc

Dash Core Components for Visualization.
MIT License
144 stars 18 forks source link

hover information #4

Closed dcoley13 closed 5 years ago

dcoley13 commented 5 years ago

Hey jimmybow, thanks for porting vis.js to dash. I'm a big fan. I did have a quick question for you: I'm not not able to get the hover information when I hover over any of the nodes. Have you been able to get the tooltips when you use it? I've looked through their docs and believe I'm doing things correctly (even though I have very little experience with js in general). If that wasn't something you were interested in capturing when you ported then I might take a swing at it and let you know how it goes.

Thanks,

Doug

aparna-k commented 5 years ago

You have to add the VIS css explicitly.

#external CSS stylesheets
external_stylesheets = [
    'https://cdnjs.cloudflare.com/ajax/libs/vis/4.20.1/vis.min.css',
]

app = dash.Dash(__name__, external_stylesheets=external_stylesheets)
dcoley13 commented 5 years ago

Awesome, worked like a charm. Missed that step previously.

Thanks