Skip to content
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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

jszuminski
Copy link
Collaborator

Created first version of the solution.

@jszuminski jszuminski self-assigned this Dec 22, 2022
@jszuminski jszuminski changed the title highcharts/15-heatmap hsv highcharts/15-heatmap-hsv Dec 23, 2022
Copy link

@pawellysy pawellysy left a 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) {

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

Copy link
Collaborator Author

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),

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.

Copy link
Collaborator Author

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]).

@jszuminski jszuminski requested a review from pawellysy December 23, 2022 08:56
Copy link

@pawellysy pawellysy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants