-
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
highcharts/15-heatmap-hsv #15
base: main
Are you sure you want to change the base?
Conversation
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.
Few minor comments :)
return `#${f(0)}${f(8)}${f(4)}`; | ||
} | ||
|
||
function createHeatmapData(choice = 'none', sliderValue) { |
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.
Regular parameters should not come after optional parameters
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.
You're right, I changed it.
const arr = []; | ||
|
||
const createColor = { | ||
'none': (x, y) => hslToHex(x, y, 0.5), |
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.
instead of handling the additional case with none
selection, you can assume that the first option selected is Saturation
because this is what you assume nevertheless.
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 deleted the 'none' option, but I think the default case is 'value' (by default, in the beginning, saturation is on the y-axis so a number needs to be set for the value parameter [I set it to 0.5]).
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 good! 👍
Created first version of the solution.