cb-with-vegalite

testing adding a vegalite viewer to cb

https://github.com/ers6/cb-with-vegalite

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (8.1%) to scientific vocabulary
Last synced: 10 months ago · JSON representation ·

Repository

testing adding a vegalite viewer to cb

Basic Info
  • Host: GitHub
  • Owner: ers6
  • License: mit
  • Language: HTML
  • Default Branch: main
  • Size: 13.7 MB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • Open Issues: 0
  • Releases: 0
Created over 2 years ago · Last pushed about 2 years ago
Metadata Files
Readme Contributing License Code of conduct Citation Security

README.md

CollectionBuilder-with-Vegalite-Experiment

I'm trying to create data visualization item type for an child object in CB using vegalite , which is a javascript data visualization library. - Specifically, I have a project exploring labor conditions of book scanning workers in the internet archive. Doing data archaeology and analysis, we've found that these working conditions are far worse for book scanning workers employed at business process outsourcing firms in the global South as opposed to their counterparts at academic libraries in the global North. - I'm exploring using collection builder to create a website for the project. Each scanning center would be a parent object. It would have multiple child objects serving as data visualizations about working conditions at the scanning center (parent object).

How I've tried to do it:

I've created a data-visualization.html layout page which embeds the vegalite-reader.html block. That block turns a vegalite-compatible json file into a data visualization. Each child object has a link to the vegalite-compatible json file in the objectlocation metadata field. These are stored in a separate github repository for the project (https://github.com/ers6/iascanninglabordata).

At the moment, each center has 2 child object visualizations associated with it. The first is a bar chart visualizing of the number of books scanned per month over time. The second is a scatter plot showing the ratio of workers working to pages scanned for each month of a center's operation.


What Went Wrong?

Both the bar chart and scatter plot visualizations are not rendering properly in different ways.

The bar chart only shows up after I readjust the size of my browser window (doesn't matter if it's bigger or smaller- it just need to be readjusted to show up at all). The scatter plot doesn't show up at all, but when I copy the json file into vegalite's online editor, it works properly.

This has led me to believe there's a problem with the sizing of the windows of the vegalite-maker template and the pop-up child window. that's causing the bar chart to not render until the window is readjusted and the scatter plot to fail to render at all.

Owner

  • Login: ers6
  • Kind: user

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
title: "CollectionBuilder-CSV"
type: software
authors:
  - family-names: Williamson
    given-names: Evan Peter
    orcid: https://orcid.org/0000-0002-7990-9924
  - family-names: Becker
    given-names: Devin
    orcid: https://orcid.org/0000-0002-0974-9064
  - family-names: Wikle
    given-names: Olivia
    orcid: https://orcid.org/0000-0001-8122-4169
repository-code: 'https://github.com/CollectionBuilder/collectionbuilder-csv'
url: 'https://collectionbuilder.github.io/'
license: MIT
version: 1+
date-released: '2021-04-25'
abstract: >-
  CollectionBuilder is an open source tool for
  creating digital collection and exhibit websites
  that are driven by metadata and powered by modern
  static web technology.
license: MIT

GitHub Events

Total
Last Year

Dependencies

Gemfile rubygems
  • image_optim >= 0
  • image_optim_pack >= 0
  • jekyll >= 0
  • mini_magick >= 0
  • rake >= 0
  • webrick ~> 1.7