OHDSI/Visualizations

Name: Visualizations

Owner: Observational Health Data Sciences and Informatics

Description: [Under development] Visualizations is a collection of JavaScript modules to support D3 visualizations in web-based applications

Created: 2014-12-03 20:43:51.0

Updated: 2017-12-15 17:07:16.0

Pushed: 2017-12-05 16:16:57.0

Homepage: null

Size: 145

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Visualizations

[Under development] Visualizations is a collection of JavaScript modules to support D3 visualizations in web-based applications

Getting Started

Clone a copy of the main repo by running:

clone git://github.com/ohdsi/vizualizations

Point a local HTTP server to the root of the repository (IIS, Node Express, etc)

Open a browser to the examples under the /examples folder.

Developing and Debugging

The examples are configured using RequireJS and reference CDN hosted libraries for D3, jQuery and others. To run the examples, just open one of the examples, set braekpoints and edit-reload to see changes.

There are no development dependencies required for updating code, although npm is used to version and publish the package.

Running the Optimizer and Publishing to NPM Registry
Build Steps

In order to minify/optimize the javascript libarry, you will need to perform an npm install:

install

The package.json file contans scripts to build the files. To run the build scripts, execute:

run build

This will build and minify the library. To files will be generated in dist: atlascharts.js and atlascharts.min.js. The min.js file is the concatinated libary that has been run throguh the google closure compiler.

Publishing

After new commits are added to master, and the libary is ready for a new version to be published to the NPM registry, the following commands will increment the version and publish to the NPM registry:

version [{verson number} | major | minor | patch] # use major or minor based on the type of change for this relase.
publish --access public # this is a scoped package to @ohdsi and therefore must specify that this should publish public.
Libary Contents
Modules

The following plots are supported by the visualization library:


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.