marineenergy / www

Marine hydrokinetic energy & environmental compliance, website
https://marineenergy.app
MIT License
1 stars 1 forks source link

add hierarchical tag viewer #29

Open bbest opened 2 years ago

bbest commented 2 years ago

Since the database uses a hierarchical data type ltree, we can show this in a viewer, like the listviewer R package.

# using the data from the jsoneditor simple example
#  in R list form

library(listviewer)

jsonedit(
  list(
    array = c(1,2,3)
    ,boolean = TRUE
    ,null = NULL
    ,number = 123
    ,object = list( a="b", c="d" )
    ,string = "Hello World"
  )
)

image

Neil-Swanson commented 2 years ago

@bbest @geocoug - started working through the tag heirarchy visualization. Not super pretty yet, but wanted to share the progress thus far.

Refer to the www_dev project splash branch: tag_viewer.Rmd