-
Notifications
You must be signed in to change notification settings - Fork 0
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
Exposure statistics: bold out the asset class name for sector exposure #90
Comments
I think if you add this .style('font-weight', (d, i) => i == 2 ? 'bold' : 'normal') to the end of this block pacta-dashboard-svelte/src/js/exposure_stats.js Lines 104 to 115 in ed95a2b
with the logic that the 2nd element of the data, note that, I'm not 100% sure what is the intent of this issue... |
Can I ask why we need both |
Implemented and it seems to work in #106 |
The first argument passed to the arrow function will be the element/item, and second will be the iterator/index. You don't really have a choice with that (that's what D3's .style('font-weight', (elem, idx) => idx == 2 ? 'bold' : 'normal') |
Making 'Corporate bonds' bold in this case would draw attention of the user more to the fact that the percentage is of the asset class portion of the portfolio and not the entire portfolio.
AB#12275
The text was updated successfully, but these errors were encountered: