Giter Site home page Giter Site logo

zhoulytwinyu / bch_dygraph_plugins Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 579 KB

Highly customized and targeted dygraphs.js plugins developed for BCH. Runs with dygraphs v1.1.1 in R Shiny

License: GNU Lesser General Public License v3.0

JavaScript 96.27% R 3.65% Shell 0.09%

bch_dygraph_plugins's Introduction

BCH_dygraph_plugins

Highly customized and targeted dygraphs.js plugins developed for BCH. Runs with dygraphs v1.1.1 in R Shiny

Moving to ES2015

We are moving away from shiny and towards node.js and React.js. For this reason, we are retiring this repo. Future updates to these modules will be available in another repo.

##Basic usage:

  1. Source the R file, e.g. source("BCH_dygraph_plugins/rstlegend.r")
  2. Apply respective function on a dygraph: dygraph_obj %>% dyRSTLegend(data)

rstlegend

  • R source: rstlegend.r
  • R function: dyRSTLegend
  • Arguments:
    • divId: id of a div to push rst legend in, format: with no '#' prepended
    • buttonDivId: id of a div to put button in, format: with no '#' prepended
    • data: a R data.frame containing RSV columns with an additional "time" column rstlegend_screenshot

timediff

  • R source: timediff.r
  • R function: dyTimediff
  • Arguments:
    • data: a R data.frame with columns: "label", "time", "abbreviation", "style", "default_selectable". timediff_screenshot

locations (banner)

  • R source: locations.r
  • R function: dyLocations
  • Arguments:
    • data: a R data.frame with columns: "label", "color", "start" and "end" locations_screenshot

ylimits

  • R source: ylimits.r
  • R function: dyYLimits
  • Arguments:
    • data: a R data.frame with columns: "LB", "UB" and "label" ylimits_screenshot

colorundercurve

  • R source: colorundercurve.r
  • R function: dyColorUnderCurve
  • Arguments:
    • data: a R data.frame with columns: "start", "end" and "color" "start", "end" need to be a number indicating seconds since Unix epoch. colorundercurve_screenshot

utildiv

  • R source: utildiv.r
  • R function: dyUtilDivs
  • Arguments:
    • upper: id to assign to upper panel, format: with no '#' prepended
    • right: id to assign to right panel, format: with no '#' prepended
    • hover: id to assign to hover panel, format: with no '#' prepended utildiv_screenshot

unzoom

  • R source: unzoom.r
  • R function: dyUnzoom
  • Arguments:
    • divId: id of div to put the unzoom button in, format: with no '#' prepended unzoom_screenshot

scrosshair (synchronized crosshair)

  • R source: scorsshair.r
  • R function: dySCrosshair
  • Arguments:
    • group, type: string. crosshair with the same group name is synced. unzoom_screenshot

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.