-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jw grid font #1191
Jw grid font #1191
Changes from 2 commits
eb76aca
e916054
f1ca974
96ddf21
2fb5971
a8d1eb3
612461f
cf723e7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export API_KEY="get your key at https://api.data.gov/signup/" | ||
export API_KEY="get your key at https://api.data.gov/signup" | ||
export CDE_API="https://api.usa.gov/crime/fbi/ucr" | ||
export PORT=6005 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ const YAxis = ({ tickCt, scale, width }) => { | |
return ( | ||
<g key={i} transform={`translate(0, ${pos})`} className="tick"> | ||
<line x2={width} y2="0" strokeOpacity={i === 0 ? '1' : '.25'} /> | ||
<text fill="#000" x="-32" y="0" dy=".32em">{fmt(v)}</text> | ||
<text className="fs-14" fill="#000" x="-32" y="0" dy=".32em">{fmt(v)}</text> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a totally fine approach, but we currently set the font size of the To my mind, the tradeoff is that this style of css leads to a lot more stuff in the HTML attributes and so for SVG it might be nice to keep the styling in component style classes (like On the other hand, it makes a ton of sense to keep things as consistent as possible across the code base which is a compelling argument for refactoring out the aspects of @jpwentz which approach do you prefer? |
||
</g> | ||
) | ||
}) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think 14px might be a bit big given the rest of the surrounding content's font sizes:
10px
12px
14px
I'd vote upping the font size to 12px for now.
BTW, @brendansudol great work on that alternating X axis label hiding! It looks just as good at 10px as 14px: