티스토리 뷰

반응형

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

위 링크를 들어가면 사용자 이벤트를 활용하는 여러 예제를 볼 수 있다.

반응형
댓글
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/04   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
글 보관함