<?xml version="1.0"?>
<t name="Survey: result statistics content" t-name="survey.survey_page_statistics_inner">
        <div t-if="survey.session_show_leaderboard" class="o_survey_session_leaderboard mb-5 mt-1">
            <h2 class="mt16 text-uppercase text-muted">Leaderboard</h2>
            <t t-call="survey.user_input_session_leaderboard"/>
        </div>
        <div t-if="question_and_page_data" class="o_survey_results_topbar rounded d-print-none mb-5">
            <t t-call="survey.survey_results_filters"/>
        </div>
        <div t-if="survey.scoring_type in ['scoring_with_answers', 'scoring_without_answers']">
            <h2 class="mt16 text-uppercase text-muted">Results Overview</h2>
            <div>Success rate: <span class="fw-bold"><t t-call="survey.survey_remove_unnecessary_decimals">
                <t t-set="value_to_format" t-value="survey_data['global_success_rate']"/></t>%</span></div>
            <div class="survey_graph" data-graph-type="pie" t-att-data-graph-data="survey_data['global_success_graph']">
                <!-- canvas element for drawing pie chart -->
                <canvas/>
            </div>
            <hr/>
        </div>

        <div t-foreach="question_and_page_data" t-as="question_data">
            <t t-set="question" t-value="question_data['question']"/>
            <t t-if="question_data['is_page']">
                <h2 class="mt16 text-uppercase text-muted" t-field="question.title"/>
                <div t-field="question.description" class="oe_no_empty"/>
                <hr class="mt-2 mb-2"/>
            </t>
            <div t-else="" class="ms-4 mt-5">
                <t t-call="survey.survey_page_statistics_question"/>
            </div>
        </div>
    </t>

    