// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved. // See License.txt for license information. import Constants from 'utils/constants.jsx'; import {Tooltip, OverlayTrigger} from 'react-bootstrap'; import React from 'react'; export default class TableChart extends React.Component { render() { return (
{this.props.title}
{ this.props.data.map((item) => { const tooltip = ( {item.tip} ); return ( ); }) }
{item.value}
); } } TableChart.propTypes = { title: React.PropTypes.node, data: React.PropTypes.array };