Chart at home screen
This commit is contained in:
1 parent
7a1463dbcf
commit
1a362a94f6
6 files changed
+245
-1
No files matched your search
@@ -1,5 +1,9 @@
|
||||
import React, { Component } from 'react'
|
||||
|
||||
// Components
|
||||
|
||||
//import ChartUsers from './home/ChartUsers'
|
||||
|
||||
// Images
|
||||
|
||||
import PortraitImage from '../img/portrait.jpg'
|
||||
@@ -8,12 +12,30 @@ import NatureImage from '../img/nature.jpg'
|
||||
import StreetImage from '../img/street.jpg'
|
||||
import StarsImage from '../img/stars.jpg'
|
||||
|
||||
import {XYPlot, LineSeries} from 'react-vis';
|
||||
|
||||
class Home extends Component {
|
||||
|
||||
render(){
|
||||
|
||||
const data = [
|
||||
{x: 0, y: 8},
|
||||
{x: 1, y: 5},
|
||||
{x: 2, y: 4},
|
||||
{x: 3, y: 9},
|
||||
{x: 4, y: 1},
|
||||
{x: 5, y: 7},
|
||||
{x: 6, y: 6},
|
||||
{x: 7, y: 3},
|
||||
{x: 8, y: 2},
|
||||
{x: 9, y: 0}
|
||||
];
|
||||
|
||||
return (
|
||||
<div>
|
||||
<XYPlot height={300} width={300}>
|
||||
<LineSeries data={data} />
|
||||
</XYPlot>
|
||||
|
||||
<section className="container section scrollspy" id="photos">
|
||||
<div className="row">
|
||||
|
||||
Reference in new issue
Block a user