Skip to content

Commit

Permalink
add readme, add assets, tweak plots
Browse files Browse the repository at this point in the history
  • Loading branch information
gadenbuie committed Oct 31, 2023
1 parent b67f571 commit 49ba620
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 4 deletions.
8 changes: 7 additions & 1 deletion R/plotly_by_hour.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ plotly_by_hour <- function(data) {
type = "histogram"
) |>
plotly::layout(
xaxis = list(title = "Hour", range = c(0, 24)),
xaxis = list(
title = "",
range = c(0, 24),
dtick = 3,
tickvals = seq(0, 24, 3),
ticktext = c("12am", paste0(seq(3, 9, 3), "am"), paste0(seq(12, 21, 3), "pm"))
),
yaxis = list(title = "", overlaying = "y", side = "left"),
barmode = "stack",
legend = list(orientation = "h", y = -0.2)
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

<h1 align="center">MyNorfolk Dashboard (A Quarto Dash Demo)</h1>

<a href="https://grrrck.quarto.pub/mynorfolk-dash/"><img src="assets/dash-preview.png" align="center" height="400" alt="A preview of the dashboard." /></a>
Binary file added assets/dash-preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.
8 changes: 5 additions & 3 deletions index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ format: dashboard

theme:
- cosmo
- styles/custom.scss
- styles/quarto.scss
- assets/styles/custom.scss
- assets/styles/quarto.scss

execute:
echo: false
Expand Down Expand Up @@ -193,7 +193,9 @@ About this dashboard
:::
::: card-body
This dashboard is built with [Quarto Dashboards](https://quarto.org/docs/dashboards/),
a new output format to be
a new output format to be released in [Quarto 1.4](https://quarto.org/docs/download/prerelease.html).
The dashboard is updated regularly and published on [Quarto Pubs](https://quartopub.com/).

[<i class="bi bi-github"></i> Source code](https://github.com/gadenbuie/mynorfolk-dash)
:::
:::

0 comments on commit 49ba620

Please sign in to comment.