You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- add functions to get parents info above entry node
- use computed d.value everywhere
- add more jasmine tests to test percentgaes and current path at root and desired level
['%{percentRoot} of %{root}',['100% of Eve','33% of Eve','17% of Eve','17% of Eve','17% of Eve','17% of Eve','17% of Eve','17% of Eve','17% of Eve']],
1346
1347
['%{percentEntry} of %{entry}',['100% of Eve','33% of Eve','17% of Eve','17% of Eve','17% of Eve','17% of Eve','17% of Eve','17% of Eve','17% of Eve']],
1347
-
['%{percentParent} of %{parent}',['100% of Eve','100% of Seth','33% of Eve','17% of Eve','17% of Eve','17% of Eve','17% of Eve','50% of Seth','100% of Awan']],
1348
+
['%{percentParent} of %{parent}',['%{percentParent} of %{parent}','100% of Seth','33% of Eve','17% of Eve','17% of Eve','17% of Eve','17% of Eve','50% of Seth','100% of Awan']],
1348
1349
[
1349
1350
[
1350
1351
'label: %{label}',
@@ -1372,7 +1373,7 @@ describe('Test sunburst texttemplate without `values` should work:', function()
1372
1373
]);
1373
1374
});
1374
1375
1375
-
describe('Test sunburst texttemplate with *total* `values` should work:',function(){
1376
+
describe('Test sunburst texttemplate with *total* `values` should work at root level:',function(){
1376
1377
checkTextTemplate([{
1377
1378
type: 'sunburst',
1378
1379
branchvalues: 'total',
@@ -1385,9 +1386,10 @@ describe('Test sunburst texttemplate with *total* `values` should work:', functi
['%{percentRoot} of %{root}',['100% of Eve','22% of Eve','18% of Eve','9% of Eve','9% of Eve','6% of Eve','15% of Eve','3% of Eve','2% of Eve']],
1389
1391
['%{percentEntry} of %{entry}',['100% of Eve','22% of Eve','18% of Eve','9% of Eve','9% of Eve','6% of Eve','15% of Eve','3% of Eve','2% of Eve']],
1390
-
['%{percentParent} of %{parent}',['100% of Eve','22% of Eve','18% of Eve','9% of Eve','9% of Eve','6% of Eve','83% of Seth','17% of Seth','17% of Awan']],
1392
+
['%{percentParent} of %{parent}',['%{percentParent} of %{parent}','22% of Eve','18% of Eve','9% of Eve','9% of Eve','6% of Eve','83% of Seth','17% of Seth','17% of Awan']],
1391
1393
[
1392
1394
[
1393
1395
'label: %{label}',
@@ -1415,7 +1417,7 @@ describe('Test sunburst texttemplate with *total* `values` should work:', functi
1415
1417
]);
1416
1418
});
1417
1419
1418
-
describe('Test sunburst texttemplate with *remainder* `values` should work:',function(){
1420
+
describe('Test sunburst texttemplate with *remainder* `values` should work at root level:',function(){
1419
1421
checkTextTemplate([{
1420
1422
type: 'sunburst',
1421
1423
branchvalues: 'remainder',
@@ -1428,9 +1430,10 @@ describe('Test sunburst texttemplate with *remainder* `values` should work:', fu
['%{percentRoot} of %{root}',['54% of Eve','10% of Eve','12% of Eve','5% of Eve','5% of Eve','3% of Eve','8% of Eve','2% of Eve','1% of Eve']],
1432
-
['%{percentEntry} of %{entry}',['54% of Eve','10% of Eve','12% of Eve','5% of Eve','5% of Eve','3% of Eve','8% of Eve','2% of Eve','1% of Eve']],
1433
-
['%{percentParent} of %{parent}',['54% of Eve','10% of Eve','12% of Eve','5% of Eve','5% of Eve','3% of Eve','42% of Seth','8% of Seth','14% of Awan']],
['%{percentRoot} of %{root}',['100% of Eve','20% of Eve','12% of Eve','6% of Eve','5% of Eve','3% of Eve','8% of Eve','2% of Eve','1% of Eve']],
1435
+
['%{percentEntry} of %{entry}',['100% of Eve','20% of Eve','12% of Eve','6% of Eve','5% of Eve','3% of Eve','8% of Eve','2% of Eve','1% of Eve']],
1436
+
['%{percentParent} of %{parent}',['%{percentParent} of %{parent}','20% of Eve','12% of Eve','6% of Eve','5% of Eve','3% of Eve','42% of Seth','8% of Seth','14% of Awan']],
1434
1437
[
1435
1438
[
1436
1439
'label: %{label}',
@@ -1447,7 +1450,7 @@ describe('Test sunburst texttemplate with *remainder* `values` should work:', fu
1447
1450
'label: Eve',
1448
1451
'text: fourteen',
1449
1452
'value: 12',
1450
-
'5% of Eve',
1453
+
'6% of Eve',
1451
1454
'5% of Eve',
1452
1455
'8% of Eve',
1453
1456
'2% of Eve',
@@ -1457,3 +1460,61 @@ describe('Test sunburst texttemplate with *remainder* `values` should work:', fu
1457
1460
]
1458
1461
]);
1459
1462
});
1463
+
1464
+
describe('Test sunburst texttemplate without `values` should work when *level* is set:',function(){
0 commit comments