Home forums Chart Support React .map unique mouseover event Reply To: React .map unique mouseover event

#31190

Here is a code snippit


{roc.map( data =>{
                    return(
                        <React.Fragment>

                            <Col md={6} xl={6} key={data["name"].toString()}>
                                <Card >
                                    <Card.Header >
                                
                                    </Card.Header>
                                    <Card.Body >
                                        <LineChart  linechart={
                                            [data["fpr"],data["tpr"],<code>ROC curve ${data[&quot;name&quot;]}</code>,'False Postive Rate','True Postive Rate',data["tpr"].length,data["name"]]
                                        }/>
                                    </Card.Body>
                                </Card>

                            </Col>
                            < Col   md={6} xl={6} >
                                <Card>
                                    <Card.Header>
                                    </Card.Header>
                                    <Card.Body>
                                        <App label={[data['name']]}/>
                                    </Card.Body>
                                </Card>
                            </Col>

                        </React.Fragment>
                    );