// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved. // See License.txt for license information. import Constants from '../../utils/constants.jsx'; const Tooltip = ReactBootstrap.Tooltip; const OverlayTrigger = ReactBootstrap.OverlayTrigger; 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 };