Skip to content

Commit 5a4afd2

Browse files
committed
improve publishers viz
1 parent 2fc00df commit 5a4afd2

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

  • website/content/visualizations/publishers

website/content/visualizations/publishers/index.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ This charts explores the relationship betwen publishers and authors' gender.
99

1010
As we can see, few publishers are close to gender equality.
1111

12-
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.
12+
The most published book genres for a publisher seem to have a considerable impact on the gender ratio. Indeed, all publishers with a majority of books published by women have either Romance, Young Adult or both in their top 3 most frequent genres, whereas publishers focusing on Classics/Literature, Science Fiction and Fantasy seem to be publishing men's books overwhelmingly.
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)