<odoo>
    <div t-name="spreadsheet.FigureComponent" t-inherit="o-spreadsheet-FigureComponent" t-inherit-mode="extension">
        <xpath expr="//div[hasclass('o-figure-menu-item')]" position="before">
            <div
                t-if="hasOdooLink and !env.isDashboard()"
                class="o-figure-menu-item o-chart-external-link"
                t-custom-click="(ev, isMiddleClick) => this.navigateToOdooLink(isMiddleClick)">
                <span class="fa fa-external-link" />
            </div>
        </xpath>
    </div>
        <div t-name="spreadsheet.ScorecardChart" t-inherit="o-spreadsheet-ScorecardChart" t-inherit-mode="extension">
            <xpath expr="//canvas[1]" position="attributes">
                <attribute name="t-on-click">() => this.onClick()</attribute>
                <attribute name="t-att-role">env.isDashboard() and hasOdooLink ? "button" : ""</attribute>
            </xpath>
    </div>
    <div t-name="spreadsheet.GaugeChartComponent" t-inherit="o-spreadsheet-GaugeChartComponent" t-inherit-mode="extension">
        <xpath expr="//canvas[1]" position="attributes">
            <attribute name="t-on-click">() => this.onClick()</attribute>
            <attribute name="t-att-role">env.isDashboard() and hasOdooLink ? "button" : ""</attribute>
        </xpath>
    </div>
</odoo>
