//차트 시리즈 생성
var pieSeries = chart.series.push(new am4charts.PieSeries());

//바인딩할 데이터 이름
pieSeries.dataFields.value = "litres";

//데이터 분류(category) 이름
pieSeries.dataFields.category = "country";

//파이 부분별 구분선 색
pieSeries.slices.template.stroke = am4core.color("#fff");

//파이에 마우스오버 시 표시할 툴팁 설정
pieSeries.slices.template.tooltipText="툴팁";

//파이 부분별 라벨 이름
pieSeries.labels.template.text = "{country}국가";

//데이터 꼬랑지 라벨선을 삭제할 때 
pieSeries.ticks.template.disabled = true;

//라벨 자체를 싹 다 없애고 싶을 때
pieSeries.labels.template.disabled = true;

'amCharts4' 카테고리의 다른 글

[amCharts4] hiddenState  (0) 2023.04.05
[amCharts4] Legend  (0) 2023.04.05
[amCharts4]ExportMenu  (0) 2023.04.05
[amCharts4] Axes(Value Axis) y축 정리  (0) 2021.11.03

+ Recent posts