Dash Plotly
6. Dash Plotly 인터랙티브 시각화(Interactive Visualization)
개발하는 크롱
2020. 11. 24. 14:31
반응형
dcc.Graph
컴포넌트는 사용자 인터랙션을 통해 변할 수 있는 네 속성이 있다.'
- hoverData: 어떤 지점 위에 마우스를 갖다 댔을 때
- clickData: 어떤 지점을 클릭했을 때
- selectedData: 어떤 구역을 선택했을 때
- relayoutData:어떤 구역을 선택했을 때
최적의 사용자 상호 작용 및 차트 로딩 성능을 위해 dash 앱 생성 시 다음과 같은 것들을 고려해야한다.
https://dash.plotly.com/interactive-graphing
Part 4. Interactive Graphing and Crossfiltering | Dash for Python Documentation | Plotly
Try clicking and dragging in any of the plots to filter different regions. On every selection, the three graph callbacks are fired with the latest selected regions of each plot. A pandas dataframe is filtered based off of the selected points and the graphs
dash.plotly.com
위 링크를 들어가면 사용자 이벤트를 활용하는 여러 예제를 볼 수 있다.
반응형