Skip to content
Snippets Groups Projects
Select Git revision
  • 99dd0408d7b61a40b355f02f4fa67bc26e2bb19d
  • develop default
  • master protected
  • inventoryProvider-functional
  • inventoryProvider-morework2
  • circuit-service-details-fix
  • lookup-SPECTRUM-SCHF-ports
  • inventoryProvider-1267-cleanup
  • inventoryProvider-moreWork
  • feature/DBOARD3-958
  • release/0.110
  • fix-uuid-validation-error
  • docker-poc
  • 0.160
  • 0.159
  • 0.158
  • 0.157
  • 0.156
  • 0.155
  • 0.154
  • 0.153
  • 0.152
  • 0.151
  • 0.150
  • 0.149
  • 0.148
  • 0.147
  • 0.146
  • 0.145
  • 0.144
  • 0.143
  • 0.142
  • 0.141
33 results

test_neteng_routes.py

Blame
  • LineGraph.tsx 801 B
    import React, { ReactElement } from 'react';
    import { Line } from 'react-chartjs-2';
    
    
    import {
      Chart as ChartJS,
      CategoryScale,
      LinearScale,
      PointElement,
      LineElement,
      Title,
      Tooltip,
      Legend,
    } from 'chart.js';
    import {BasicDataset} from "../../Schema";
    
    
    ChartJS.register(
      CategoryScale,
      LinearScale,
      PointElement,
      LineElement,
      Title,
      Tooltip,
      Legend
    );
    
    const options = {
      responsive: true,
      plugins: {
        legend: {
          position: 'top' as const,
          onClick: () => { /* intentionally empty */ },
        },
        title: {
          display: true,
          text: '',
        },
      },
    };
    
    interface inputProps {
        data: BasicDataset
    }
    
    function LineGraph({data}: inputProps): ReactElement {
      return (
        <Line data={data} options={options} />
      );
    }
    
    export default LineGraph;