Skip to content

Commit

Permalink
reset the series of pie chart.
Browse files Browse the repository at this point in the history
  • Loading branch information
SaiVarunVaranasi committed Jun 28, 2021
1 parent f75333e commit c00ea70
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/interface/projectInterface.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import logo_3 from 'assets/dummyImages/Logo2.png';

var materialCompositionLabels;
var materialCompositionData;
let materialDataInPercent = [];
let materialDataInPercent;
var assessmentValues;
let chartDataInPercent = [];

Expand Down Expand Up @@ -46,6 +46,7 @@ export function getModels() {
*/
export function setMaterialCompositionData(compositionData) {
console.log('compositionData');
materialDataInPercent = [];
materialCompositionData = Array.from(compositionData);
console.log(materialCompositionData);
let sum = 0;
Expand Down

0 comments on commit c00ea70

Please sign in to comment.