Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 1.22 KB

README.md

File metadata and controls

42 lines (32 loc) · 1.22 KB

react-mutation-plot

A light weight adaptation React based mutation lollipop plot from cBioPortal frontend.

NPM JavaScript Style Guide build status

schermafbeelding 2019-02-19 om 17 56 14

Install

npm install --save react-mutation-plot

Usage

Check the /example folder for a complete usage.

import React, { Component } from 'react'

import Lollipop from 'react-mutation-plot'

class Example extends Component {
  render () {
    return (
      <LollipopPlot
        domains={domains}
        lollipops={lollipops}
        vizWidth={vizWidth}
        vizHeight={vizHeight}
        hugoGeneSymbol={hugoGeneSymbol}
        xMax={xMax}
        yMax={yMax}
        onLollipopClick={onLollipopClickHandler}
      />
    )
  }
}