import React, { Component } from 'react' import ReactSpeedometer from "react-d3-speedometer" import { Paper, Typography } from '@material-ui/core' import Images from '../../assets/Images' import LineChart from 'react-linechart'; export default class ExceutiveScoreboard extends Component { constructor(props) { super(props) this.state = { listDummy: [ { judul: "Overall", kpi: 0, rank: 'BS', value: 3.67, status: 'up' }, { judul: "Financial", kpi: 5, rank: 'BS', value: 3.67, status: 'up' }, { judul: "Customer Perspective", kpi: 2, rank: 'B', value: 3.05, status: 'down' }, { judul: "Internal Perspective", kpi: 5, rank: 'C', value: 2.61, status: 'down' }, { judul: "Financial", kpi: 5, rank: 'B+', value: 3.52, status: 'up' }, ], selectIndex: null } } render() { let { selectIndex } = this.state const data = [ { color: "steelblue", points: [ { x: 1, y: 2 }, { x: 2, y: 1 }, { x: 3, y: 3 }, { x: 4, y: 2 }, { x: 5, y: 4 }, { x: 6, y: 5 }, { x: 7, y: 4 }, ] } ]; return (
{this.state.listDummy.map((item, index) => { return (
this.setState({ selectIndex: index })}> {item.judul}
{index != 0 ?
{item.kpi} KPIs
: null}
{item.rank}
{item.status === "up" ? : } vs Last Month
) })}
YTD Revenue 1,016,489.78 In IDR mn
) } }