Graph to Represent How Influences Impact Fixed Related Factors in a Measure

What is the best way to represent the following formula as a graph?

Overall Score = 70% × [ 50% × Sub-factor A + 20% × Sub-factor B + 5% × Sub-factor C + 25% × Sub-factor D ] + 30% × [ 15% × Sub-factor A + 50% × Sub-factor B + 10% × Sub-factor C + 25% × Sub-factor D ]

For example, if: Overall Score = 70% × [ 50% × 44% + 20% × 3.75% + 5% × 14.4% + 25% × 20.5% ] + 30% × [ 15% × 10% + 50% × 10% + 10% × 16.67% + 25% × 25% ]

Then, one way of possibly representing the data would be this way:

A pie chart with three layers; outer later is labelled "Overall Score" and represents the evaluated value of the formula previously mentioned; the 2nd inner layer shows the two fixed factors A and B with their fixed influences, 70% and 30%, respectively; and under each arch of the previously mentioned inner layers are sub-layers, representing the sub-factors, broken down to either completely fit or fit partially within the arches of the parent layer.

(Note that if all sub-factors were 100% then the graph would be completely filled with no grey areas under factor A and factor B.)

However, is it a good graph? What are the pros and cons of this approach? And it is the best graph to use for the formula provided? Could a different graph work? Or is a graph even necessary?

Thanks for your feedback.

MORPH TARGET INFLUENCES continuously keeps giving me UNDEFINED when animating object in three.js

So I exported this simple 2d animation (circle that morphs into a triangle) as a gltf file into my three.js project. But when i run it, I get this error: “Uncaught TypeError: Cannot set property ‘0’ of undefined at render“. This error come this line of code: “mesh.morphTargetInfluences[ 0 ] = Math.sin(delta) * 20.0;

By looking at my code, i made sure my scene is my mesh. I also log the mesh geometry to see that is not undefined. I get no errors when i set my Morph Targets to TRUE either. But When i do console(console.log(mesh.morphTargetInfluences) i do get UNDEFINED which i don’t know why since all the mesh geometry is there.

<html> <head>     <title>threejs - models</title>     <style>         body{             margin: 0;             overflow: hidden;         }     </style> </head> <body> <canvas id="myCanvas"></canvas>  <script src="js/three.js"></script> <script src="js/GLTFLoader.js"></script>  <script>  var renderer,     scene,     camera,     myCanvas = document.getElementById('myCanvas'); var mesh;   //RENDERER renderer = new THREE.WebGLRenderer({   canvas: myCanvas,    antialias: true }); renderer.setClearColor(0xffffff); renderer.setPixelRatio(window.devicePixelRatio); renderer.setSize(window.innerWidth, window.innerHeight);  //CAMERA camera = new THREE.PerspectiveCamera(35, window.innerWidth / window.innerHeight, 0.1, 1000 );  //SCENE scene = new THREE.Scene();  //LIGHTS var light = new THREE.AmbientLight(0xffffff, 0.5); scene.add(light);  var light2 = new THREE.PointLight(0xffffff, 0.5); scene.add(light2);  var loader = new THREE.GLTFLoader();  loader.load('morphObj.gltf', function ( gltf ) {          gltf.scene.traverse( function ( node ) {              if ( node.isMesh ) {                 mesh = node;                 mesh.material.morphTargets = true;               console.log(mesh.geometry);         }          } );          //mesh.material.morphTargets = true;         console.log(mesh.morphTargetInfluences);          //console.log(mesh.material.morphTargets);      //mesh.material = new THREE.MeshLambertMaterial();     scene.add( mesh );     mesh.position.z = -10; });    //RENDER LOOP render();  var delta = 0; var prevTime = Date.now();  function render() {      delta += 0.1;      if ( mesh !== undefined ) {         console.log("mesh is not undefined!");           mesh.rotation.y += 0.01;          //animation mesh          mesh.morphTargetInfluences[ 0 ] = Math.sin(delta) * 20.0;     }      renderer.render(scene, camera);      requestAnimationFrame(render); }      </script>> </body> </html> 

I’m very new to three.js so fusure I’m forgetting something in my program, but i don’t know what that is. I will really appreciate your help guys

Crontab influences bash script if condition?

I am a bit baffled here, and not really sure how to debug this. I have a self-written bash script, that checks if a samba share is active, and if not, sends me an email.

Script is in /root/SKRIPTS/, permission looks like this:

-rwxr-xr-x   1 root  wheel   281 Nov  8 08:54 test_samba_shares.sh -rwx------   1 root  wheel    39 Nov  7 13:56 smbclient.cred 

Content of the .sh script is this:

smbclient -L 10.0.0.1 -A /root/SKRIPTS/smbclient.cred | grep -q Backup  if [ $  ? -eq 0 ] then     echo "Backup_* mounted, nothing to do" else     echo "Subject: Samba has failed" | /usr/sbin/sendmail -v mail@localmail.server fi  return 1; 

/etc/crontab looks like this (entry only)

10 1 * * * root /root/SKRIPTS/test_samba_shares.sh 

The thing is, if I, as root, run this, it works flawlessly. But every night I get an email that samba has failed, indicating that the cron script somehow trips into the else path. How can this be? Am I missing something obvious here? What would be the best way to debug this?

Thanks for your help