Skip to content

Commit

Permalink
Fix font size on axis labels
Browse files Browse the repository at this point in the history
  • Loading branch information
sulkaharo committed Oct 20, 2019
1 parent cf63611 commit bec4bc6
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions lib/client/chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ function init (client, d3, $) {

chart.xAxis = d3.axisBottom(xScale)
.tickFormat(tickFormat)
.ticks(4);
.ticks(6);

chart.yAxis = d3.axisLeft(yScale)
.tickFormat(d3.format('d'))
Expand Down Expand Up @@ -201,22 +201,26 @@ function init (client, d3, $) {

// create the x axis container
chart.focus.append('g')
.attr('class', 'x axis');

.attr('class', 'x axis')
.style("font-size", "16px");

// create the y axis container
chart.focus.append('g')
.attr('class', 'y axis');
.attr('class', 'y axis')
.style("font-size", "16px");

chart.context = chart.charts.append('g')
.attr('class', 'chart-context');

// create the x axis container
chart.context.append('g')
.attr('class', 'x axis');
.attr('class', 'x axis')
.style("font-size", "16px");

// create the y axis container
chart.context.append('g')
.attr('class', 'y axis');
.attr('class', 'y axis')
.style("font-size", "16px");

chart.createBrushedRange = function () {
var brushedRange = chart.theBrush && d3.brushSelection(chart.theBrush.node()) || null;
Expand Down

0 comments on commit bec4bc6

Please sign in to comment.