This repository was archived by the owner on Sep 2, 2026. It is now read-only.
nestedPieChart 문제 #790
testdrive-profiling-master
started this conversation in
General
Replies: 1 comment
|
It's move to issue. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
const el = document.getElementById('chart_memory'); let data = { categories: ['Total', 'Read & Write'], series: [ { name: 'main', data: [ { name: 'IMEM', data: 0.0001, }, { name: 'WMEM', data: 0.0001, }, { name: 'CLMEM', data: 0.0001, }, { name: 'DLMEM', data: 0.0001, }, ], }, { name: 'partial', data: [ { name: 'IMEM read', parentName: 'IMEM', data: 0.0001, }, { name: 'IMEM write', parentName: 'IMEM', data: 0.0001, }, { name: 'WMEM read', parentName: 'WMEM', data: 0.0001, }, { name: 'WMEM write', parentName: 'WMEM', data: 0.0001, }, { name: 'CLMEM read', parentName: 'CLMEM', data: 0.0001, }, { name: 'CLMEM write', parentName: 'CLMEM', data: 0.0001, }, { name: 'DLMEM read', parentName: 'DLMEM', data: 0.0001, }, { name: 'DLMEM write', parentName: 'DLMEM', data: 0.0001, }, ], }, ], }; const options = { chart: { title: 'Usage of internal memory', width: 550, height: 400}, series: { main: { dataLabels: {visible: true}, radiusRange: { inner: '20%', outer: '50%', }, }, partial: { dataLabels: {visible: true, pieSeriesName: { visible: true, anchor: 'outer' } }, radiusRange: { inner: '55%', outer: '85%', }, }, }, tooltip: {formatter: (value) => `${value}MB`}, theme: { series: { main: { dataLabels: { fontSize: 10, }, }, partial: { dataLabels: { fontSize: 10, }, }, }, } }; chart_memory = toastui.Chart.nestedPieChart({ el, data, options }); // normal chart_memory.setData(data); // abnormal??chart = toastui.Chart.nestedPieChart(~)is ok for run,but when I use
setDatafunction with same data, label in pie chart is not visible.All reactions