Code Monkey home page Code Monkey logo

caliper_vis's Introduction

caliper_vis_doodles

Documenting here solely so that things can be replaced with a sane process.

  1. Extract from caliper data a subset via jq
cat  pr_extract.jsonl | jq  -s  '[.[] | select(.action=="http://purl.imsglobal.org/vocab/caliper/v1/action#Completed") |  {problem_set: .object.isPartOf.name, problem: .object.name, answerCorrect: .generated.extensions.isStudentAnswerCorrect, time: .generated.attempt.duration, actor: .actor.name, start: .generated.attempt.startedAtTime, end:  .generated.attempt.endedAtTime}]' > test.json
  1. This will create a slimmer array from the Caliper jsonl with objects such as
{
    "problem_set": "Relative motion",
    "problem": "UM Physics 135 Midterm 1 Winter 12 Problem 08",
    "answerCorrect": "true",
    "time": "PT15S",
    "actor": "<actor_name>",
    "start": "2017-05-05T04:31:33.000Z",
    "end": "2017-05-05T04:31:48.000Z"
  }
  1. Run an anonymizer throught the data and make it available to the js.
  2. The js files manipulate this anonymzed array and serve the result to an NVD3 chart

Note: need to run a web server to take care of cross origin requests.

A simple one is python -m SimpleHTTPServer 8000

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.