code: public void setChartState(final List<Long> groupTargetCounts, final Long totalTargetsCount) {
          getState().setGroupTargetCounts(groupTargetCounts);
          getState().setTotalTargetCount(totalTargetsCount);
          markAsDirty();
      }
docs: Updates the state of the chart
  
  @param groupTargetCounts
  list of target counts
  @param totalTargetsCount
  total count of targets that are represented by the pie