Skip to content
Snippets Groups Projects
Select Git revision
  • 16b8babcbbb8287395fe9cfaf3e866b52d956cfa
  • develop default
  • master protected
  • feature/frontend-tests
  • 0.110
  • 0.109
  • 0.108
  • 0.107
  • 0.106
  • 0.105
  • 0.104
  • 0.103
  • 0.102
  • 0.101
  • 0.100
  • 0.99
  • 0.98
  • 0.97
  • 0.96
  • 0.95
  • 0.94
  • 0.93
  • 0.92
  • 0.91
24 results

SurveyContainerComponent.tsx

Blame
  • BarGraph.tsx 516 B
    import React, {ReactElement} from 'react';
    import {Bar} from 'react-chartjs-2';
    import {DataSetProps} from './types';
    
    
    import {
        Chart as ChartJS,
        CategoryScale,
        LinearScale,
        BarElement,
        Title,
        Tooltip,
        Legend,
    } from 'chart.js';
    
    
    ChartJS.register(
        CategoryScale,
        LinearScale,
        BarElement,
        Title,
        Tooltip,
        Legend
    );
    
    function BarGraph(data: DataSetProps): ReactElement {
        return (
            <Bar data={data.data} options={{}}/>
        );
    }
    
    export default BarGraph;