This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import {Line} from 'react-chartjs-2' | |
function LineChart(props){ | |
const count = props.chartData.map( data => data.count) | |
const labels = props.chartData.map( data => data.year+'/'+data.quarter) | |
const chartData = { | |
labels:labels, | |
datasets:[ | |
{ | |
label:'Population', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { | |
XYPlot, | |
XAxis, | |
YAxis, | |
VerticalGridLines, | |
HorizontalGridLines, | |
LineSeries | |
} from "react-vis"; | |
function LineChart(props) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { AgGridReact } from "ag-grid-react"; | |
import "ag-grid-community/dist/styles/ag-grid.css"; | |
import "ag-grid-community/dist/styles/ag-theme-balham.css"; | |
function DataGrid(props) { | |
function getSelectedRows() { | |
console.log("getSelected"); | |
} | |
return ( | |
<React.Fragment> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from "react"; | |
import DataGrid from "./dataGrid"; | |
import LineChart from "./charts/LineChart"; | |
class MainContent extends Component { | |
constructor() { | |
super(); | |
this.state = { | |
columnDefs: [ | |
{ | |
headerName: "Name", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
function Header(props) { | |
return ( | |
<React.Fragment> | |
<h1> | |
Statistics with amounts of pull-requests per programming language on | |
Github | |
</h1> | |
</React.Fragment> | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.main-container { | |
display: flex; | |
} | |
.main-container > .data-grid { | |
flex: 1; | |
} | |
.main-container > .data-chart { | |
flex: 2; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import ReactDOM from "react-dom"; | |
import "./index.css"; | |
import App from "./App"; | |
import * as serviceWorker from "./serviceWorker"; | |
ReactDOM.render(<App />, document.getElementById("root")); | |
serviceWorker.unregister(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from "react"; | |
import "./App.css"; | |
import Header from "./components/header"; | |
import MainContent from "./components/mainContent"; | |
import Footer from "./components/footer"; | |
class App extends Component { | |
render() { | |
return ( | |
<React.Fragment> | |
<Header /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<utility> | |
#include<vector> | |
#include<algorithm> | |
using namespace std; | |
bool myfun(pair<int,int> a ,pair<int,int> b) | |
{ | |
return a.second < b.second; | |
} | |
void getActivities(vector< pair<int,int> > a) |
NewerOlder