Skip to content
This repository

Home 

otsuarez edited this page · 2 revisions

Pages 2

Clone this wiki locally
  1. interfaz Tiene un input de un URL de un google doc Se lo pasa al que trae
  2. Traer los datos get_data(url)
  3. recibe un URL
  4. devuelve: [ { order: “2009-10-10”, character: “frodo”, group: “rivendel”, [...] }, [...] ]
  5. preprocess(points) recibe lo de arriba y devuelve { eventList: [ { // Gandalf name: ‘Gandalf’, position: [ {orderBox: 20.3, group: ‘shire’}, {orderBox: 30, group: ‘isengard’}, {orderBox: 50, group: ‘mordor’}, … ] }, { // Frodo name: ‘Frodo’ position: [ {orderBox: 10, group: ‘shirel’}, {orderBox: 40, group: ‘mordor’}, ... ], }, ... ], groups: [‘shire’, ‘mordor’, ‘isengard’, … ] }

{ ‘isengard’: 23, ‘mordor’: 0, ‘shire’: 100, } 1. optimizar las posiciones optimize(points) 1. recibe el array de arriba 2. devuelve un array de lineas [ // Gandalf [ { // segmento1 start: [0,0], end: [100,100] attributes: {} }, { // segmento2 ... } ], ]

  1. graficar los datos graph(segments)
  2. recibe lo de arriba, dibuja
  3. profit.
Something went wrong with that request. Please try again.