From d64ac551cee8c3d5a0f5ec03562f5cf75b40bf20 Mon Sep 17 00:00:00 2001 From: Yunuuuu Date: Fri, 3 Oct 2025 02:40:44 +0800 Subject: [PATCH 1/2] feat: use Quarto listing to create gallery (distribution) --- GraphGallery.qmd | 46 +++++++++++++--------------------------------- 1 file changed, 13 insertions(+), 33 deletions(-) diff --git a/GraphGallery.qmd b/GraphGallery.qmd index eb039b728..610117490 100644 --- a/GraphGallery.qmd +++ b/GraphGallery.qmd @@ -1,5 +1,16 @@ --- title: Graph Gallery +comments: false +title-block-style: none +listing: + - id: distribution + type: grid + image-height: 100% + contents: Distribution/*!(.zh).qmd + sort-ui: true + filter-ui: true + categories: true + fields: [title, date, image, categories] --- 👋 **Bizard** is a comprehensive repository of advanced visualization codes tailored for biomedical research. @@ -28,39 +39,8 @@ data <- read.csv("files/gallery_data.csv") ### Distribution Gallery -```{r} -#| echo: false -data_Distribution <- data[data$Level2=="Distribution",] - -tbl <- reactable( - data_Distribution, - defaultColDef = colDef(vAlign = "center", headerClass = "header"), - columns = list( - Id = colDef( - name = "Id", align = "center", minWidth = 70, maxWidth = 90 - ), - Name = colDef( - name = "Graph", cell = JS("renderGraph"), html = TRUE, minWidth = 250 - ), - Image_url = colDef(show = FALSE), - Tutorial_url = colDef(show = FALSE), - Description =colDef(show = FALSE), - Type = colDef(name = "Type"), - Level1 =colDef(show = FALSE), - Level2 =colDef(show = FALSE) - ), - searchable = TRUE -) - -div( - class = "movies", - tbl, - div(id = "modal", class="modal", onclick="hideModal()", - img( - id="modal-image", class="modal-image" - )) -) -``` +:::{#distribution} +::: ### Correlation Gallery From d8e56c84d6fa51795167f2b70a278fcbe0024d54 Mon Sep 17 00:00:00 2001 From: Yunuuuu Date: Fri, 3 Oct 2025 02:47:40 +0800 Subject: [PATCH 2/2] feat: use Quarto listing to create gallery (correlation) --- GraphGallery.qmd | 43 ++++++++++--------------------------------- 1 file changed, 10 insertions(+), 33 deletions(-) diff --git a/GraphGallery.qmd b/GraphGallery.qmd index 610117490..900b5e8db 100644 --- a/GraphGallery.qmd +++ b/GraphGallery.qmd @@ -11,6 +11,14 @@ listing: filter-ui: true categories: true fields: [title, date, image, categories] + - id: correlation + type: grid + image-height: 100% + contents: Correlation/*!(.zh).qmd + sort-ui: true + filter-ui: true + categories: true + fields: [title, date, image, categories] --- 👋 **Bizard** is a comprehensive repository of advanced visualization codes tailored for biomedical research. @@ -44,39 +52,8 @@ data <- read.csv("files/gallery_data.csv") ### Correlation Gallery -```{r} -#| echo: false -data_Correlation <- data[data$Level2=="Correlation",] - -tbl <- reactable( - data_Correlation, - defaultColDef = colDef(vAlign = "center", headerClass = "header"), - columns = list( - Id = colDef( - name = "Id", align = "center", minWidth = 70, maxWidth = 90 - ), - Name = colDef( - name = "Graph", cell = JS("renderGraph"), html = TRUE, minWidth = 250 - ), - Image_url = colDef(show = FALSE), - Tutorial_url = colDef(show = FALSE), - Description =colDef(show = FALSE), - Type = colDef(name = "Type"), - Level1 =colDef(show = FALSE), - Level2 =colDef(show = FALSE) - ), - searchable = TRUE -) - -div( - class = "movies", - tbl, - div(id = "modal", class="modal", onclick="hideModal()", - img( - id="modal-image", class="modal-image" - )) -) -``` +:::{#correlation} +::: ### Ranking Gallery