|
|
|
@ -43,11 +43,23 @@ export default function BoxDoughnutBarChart({ |
|
|
|
|
<div className='doughnut-chart-content flex-1'> |
|
|
|
|
<RDoughnutChart data={dataDoughnut} /> |
|
|
|
|
</div> |
|
|
|
|
<div className='origin-vertical justify-content-center align-item-center flex-1'> |
|
|
|
|
<p style={{color: PRIMARY_COLOR, fontSize: '2.2rem', fontWeight: 800}}>{current}</p> |
|
|
|
|
<p style={{color: '#01AEF0', fontSize: '2.2rem', fontWeight: 800}}> |
|
|
|
|
{target > 0 ? target : '...'} |
|
|
|
|
</p> |
|
|
|
|
<div className='origin-vertical justify-content-center align-item-center flex-1' style={{cursor:'pointer'}}> |
|
|
|
|
<div className="tooltip"> |
|
|
|
|
<p
|
|
|
|
|
style={{color: PRIMARY_COLOR, fontSize: '2.2rem', fontWeight: 800}} |
|
|
|
|
> |
|
|
|
|
{current} |
|
|
|
|
<span className="tooltiptext" style={{color: PRIMARY_COLOR}}>Số lượng đã tham gia: {current}</span> |
|
|
|
|
</p> |
|
|
|
|
</div> |
|
|
|
|
<div className="tooltip">
|
|
|
|
|
<p
|
|
|
|
|
style={{color: '#01AEF0', fontSize: '2.2rem', fontWeight: 800}} |
|
|
|
|
> |
|
|
|
|
{target > 0 ? target : '...'} |
|
|
|
|
<span className="tooltiptext" style={{color: '#01AEF0'}}>Tổng số: {target > 0 ? target : '...'}</span> |
|
|
|
|
</p> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|