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

Exercise/highcharts gantt 1 #14

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

Conversation

KamilKubik
Copy link
Collaborator

No description provided.

@KamilKubik KamilKubik changed the title Applied gantt exercise 1 finished version Exercise/highcharts gantt 1 Oct 20, 2022
@@ -1,23 +1,35 @@
Highcharts.ganttChart('container', {

Choose a reason for hiding this comment

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

This is not exactly what asked for. As you can read in the description Instead of two x-axes show only one with formatted labels. HINT: The only code you need to change/add is on the xAxis and it can be done with one API option.

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 refactored the code to the one xAxis, also changing the way of formatting to the dateTimeLabelFormats option 😄

Choose a reason for hiding this comment

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

Great! There is one other requirement that I missed previously: Group y-axis categories to show both points with the same name in the same category. - so you need one additional API option ;)

Copy link

@magdalena-gut magdalena-gut left a comment

Choose a reason for hiding this comment

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

That’s it! 👌

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