-
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
Feat: Make pies resizeable and remove titles #50
Conversation
src/js/pie_exploded.js
Outdated
// Plot labels | ||
let numbers_long = { M: ' million', G: ' billion', T: ' trillion' }; | ||
let unit = 'USD'; // TODO: make a parameter | ||
let comment = 'Total: '; |
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.
let comment = 'Total: '; | |
let comment = 'Exposure of Assets to PACTA Sectors: '; |
I would rather not merge the "Total" caption in, since we know that is confusing.
Let's use this for now as it is at least accurate, and then Nayra can validate all these things after a more in-depth review.
Relates to #51
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 expect that the plot will have a descriptive title in which case I am not sure if 'Total' is not enough. Also, in case of emissions I don't think we can call it 'exposure'?
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.
See comment.
Otherwise, I built and inspected this and it looks good locally
@jdhoffa I extended the annotation and made it variable. |
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.
looks great!
Closes #51
In this PR I:
NOTE: the layout of the portfolio view needs to change in another PR for the change to be fully visible and to look good.