Skip to content

Commit 4cddc3f

Browse files
committed
Merge branch 'master' of github.com:com-480-data-visualization/scion-babylon
2 parents 5b23056 + 617688e commit 4cddc3f

3 files changed

Lines changed: 18 additions & 3 deletions

File tree

website/config/_default/languages.en.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ languageName = "English (Australia)"
33
languageDirection = "ltr"
44
weight = 1
55

6-
title = "Book visualization"
6+
title = "Homepage"
77
copyright = "© 2024 Congo contributors"
88

99
[params]

website/content/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Welcome to the publishing industry! :tada:"
2+
title: "Welcome to the book publishing industry :tada:"
33
date: 2026-04-13
44
description: "This is a website to host our book visualizations."
55
tags: ["d3", "sample", "graph", "shortcodes"]

website/content/visualizations/publishers/index.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ As we can see, few publishers are close to gender equality.
1111

1212
One factor that seem to impact the ratio quite strongly is the most published book genres, as all publishers with a majority of books published by women have either Romance, Young Adult or both in their top 3.
1313

14-
On the other hand, publishers focusing on Classics/Literature, Science Fiction and Fantasy seem to be publishing men's books overwhelmingly.
1514
{{< rawhtml >}}
1615
<style>
1716
#publisher-chart {
@@ -131,6 +130,14 @@ document.addEventListener('DOMContentLoaded', () => {
131130
.text('Number of books')
132131
.style('font-size', '12px').style('fill', '#444').style('font-weight', '600');
133132

133+
// Genre column header
134+
svg.append('text')
135+
.attr('x', genreStartX - 50)
136+
.attr('y', -10)
137+
.attr('text-anchor', 'start')
138+
.text('Top 3 most published genres')
139+
.style('font-size', '12px').style('fill', '#444').style('font-weight', '600');
140+
134141
// Number of books column
135142
rows.append('text')
136143
.attr('x', countX - 50)
@@ -173,6 +180,14 @@ document.addEventListener('DOMContentLoaded', () => {
173180

174181

175182
// Publisher labels
183+
// Publisher column header
184+
svg.append('text')
185+
.attr('x', -8)
186+
.attr('y', -10)
187+
.attr('text-anchor', 'end')
188+
.text('Publishers')
189+
.style('font-size', '12px').style('fill', '#444').style('font-weight', '600');
190+
176191
svg.append('g')
177192
.call(d3.axisLeft(y).tickSize(0).tickFormat(p => p))
178193
.call(ax => ax.select('.domain').remove())

0 commit comments

Comments
 (0)