如何向radviz添加轮廓

时间:2018-11-26 07:07:37

标签: python pandas data-visualization

当可视化虹膜数据集时,我尝试了radviz:

const Book = (props) => {
  console.log(">>>>>>>>>>>");
  console.log(props.onAnswerSelected);
  return (
    <div className="answer" text={props.title} onClick={props.onAnswerSelected}>
      <h4>{props.title}</h4>
    </div>
  )
}

function onAnswerSelected(event) {
    console.log("On Answer Selected called ... ", answer);
    console.log("Logging the event >>> ", event.currentTarget.getAttribute('text'));
    const answer = event.currentTarget.getAttribute('text')
    const isCorrect = state.allBooks.some((book) => {
        return book === answer;
    });
    state.highlight = isCorrect? "correct" : "wrong";
    // render();
}

,结果是: My figure

但是,我还找到了另一个版本: Figure with contour

我试图调整函数中的参数,但是它不起作用。 那么,有什么好的解决方法吗?

0 个答案:

没有答案