Git Product home page Git Product logo

cap-workflow-vis's Introduction

cap-workflow-vis

CERN Analysis Preservation Workflow Visualization

Usage

To use the workflow vis, you need a JSON document describing your workflow similar to those available in the Data directory. There are two different visualizations supported, one is the template (all the steps, inputs etc.) The other is the instance, which is the executed workflow. This also encodes the status of the execution.

While the code involved in rendering workflows is exactly the same, the code involved in processing the JSON files is rather different.

Therefore, if you only want to visualize the instance, you will need to include the cap-workflow-vis-instance.js file.

<script src="assets/js/cap-workflow-vis-instance.js" type="text/javascript"></script>
<script src="assets/js/cap-workflow-vis.js" type="text/javascript"></script>

If you only want to visualize the template, you will need to include the cap-workflow-vis-template.js file.

<script src="assets/js/cap-workflow-vis-template.js" type="text/javascript"></script>
<script src="assets/js/cap-workflow-vis.js" type="text/javascript"></script>

For both, template and instance visualization, you will need to include all three JS files.. The cap-workflow-vis.js file must always be loaded last since it depends on the processing logic in the instance and template files.

<script src="assets/js/cap-workflow-vis-template.js" type="text/javascript"></script>
<script src="assets/js/cap-workflow-vis-instance.js" type="text/javascript"></script>
<script src="assets/js/cap-workflow-vis.js" type="text/javascript"></script>

Then, with your JSON, you can load the workflow visualization directly.

var data = myjson;
// #workflow1 represents the ID of the DIV in your HTML where you want to render the workflow.
cap_workflow_vis.render('#workflow1', data, {width: 600, height: 800});

or, from a URL

d3.json('data/basic.json', function (data) {
  cap_workflow_vis.render('#workflow1', data, {width: 600, height: 800})
});

Libraries

We are grateful to Webcola and D3.js for their nice layout algorithms:

cap-workflow-vis's People

Contributors

eamonnmag avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

lukasheinrich

cap-workflow-vis's Issues

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.