Dash와 Plotly로 대시보드 만들기
Alex Scriven
Data Scientist
'박스 모델'은 각 HTML 요소를 여러 층의 상자로 봅니다:
height, width 속성)
border CSS 인자는 세 부분을 가집니다:
'border':'A B C'solid, dotted)red)
dcc.Graph(figure=ecom_bar,
style={'width':'500px',
'height':'450px',
'border':'5px dotted red'}
)

HTML 요소의 간격 설정:
예: 'padding':'10px 5px 5px 15px'
$$

패딩 없음:

'padding':'100px' 추가:

마진 없음:

margin: 100px auto 추가:

'margin':'100px' 사용:

'margin':'100px auto' 사용:

정렬이 안 맞나요? HTML 요소는 'inline' 또는 'block'입니다.
$$
<div style='width:50px;height:50px;
background-color:blue'></div>
<div style='width:50px;height:50px;
background-color:red
;display:inline-block'></div>
<div style='width:50px;height:50px;
background-color:green;
display:inline-block'></div>
$$

Dash와 Plotly로 대시보드 만들기