<div
  class="visualizer-course-instructor-session-type {{unless @isIcon "not-icon"}}"
  data-test-visualizer-course-instructor-session-type
  ...attributes
>
  {{#if (or @isIcon this.data.length)}}
    <SimpleChart
      @name="donut"
      @isIcon={{@isIcon}}
      @data={{this.data}}
      @hover={{perform this.donutHover}}
      @leave={{perform this.donutHover}} as |chart|
    >
      {{#if this.tooltipContent}}
        <chart.tooltip @title={{this.tooltipTitle}}>
          {{this.tooltipContent}}
        </chart.tooltip>
      {{/if}}
    </SimpleChart>
  {{/if}}
</div>
