Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

clinical-timelines

Package Overview
Dependencies
Maintainers
4
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clinical-timelines

A general purpose graphical timeline library

  • 1.5.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
4
Weekly downloads
 
Created
Source

Clinical Timelines

alt tag

Overview

Clinical Timelines is a JavaScript library that visualizes events over time via a faceted, interactive timeline chart. While initially designed for use in clinical trial research, the library works with any longitudinal data of one record per event.

Clinical Timelines presents all timepoints and time intervals for each facet, e.g. for each participant in a clinical trial. Users can drill down to individual timelines which pulls up a set of small multiples, each representing a single event type, and a detailed listing of that individual's data.

alt tag

Click here to see a demo with clinical trial data as the input.

Usage

With a dataset that meets the default variable requirements, the renderer can be initialized with the following code:

d3.csv(
    'https://raw.githubusercontent.com/RhoInc/viz-library/master/data/safetyData/ADTIMELINES.csv',
    function(data) {
        clinicalTimelines('body', settings).init(data);
    }
);

Download the latest release, which supports anonymous AMD, CommonJS, and vanilla environments. You can also load the library directly from jsDelivr: Import into a webpage like so:

<script type = 'text/javascript' src = 'https://d3js.org/d3.v3.js'></script>
<script type = 'text/javascript' src = 'https://cdn.jsdelivr.net/npm/webcharts/build/webcharts.js'></script>
<script type = 'text/javascript' src = 'https://cdn.jsdelivr.net/npm/clinical-timelines/build/clinicalTimelines.js'></script>

Clinical Timelines is a modular library written with ECMAScript 2015 syntax (ES2015). To import Clinical Timelines into an ES2015 application, import its only module (here, clinicalTimelines):

import clinicalTimelines from "clinical-timelines";

And in Node:

var clinicalTimelines = require("clinical-timelines");

More information is available in the project's wiki:

Keywords

FAQs

Package last updated on 01 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc