-
Notifications
You must be signed in to change notification settings - Fork 11
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
Add lillipop-h chart #136
base: main
Are you sure you want to change the base?
Add lillipop-h chart #136
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.
Looks pretty good, few minor changes.
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Bar chart - Visual Vocabulary</title> |
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.
Update title please
<title>Bar chart - Visual Vocabulary</title> | ||
<script src="//unpkg.com/@financial-times/d3-bootloader" async></script> | ||
<link rel="stylesheet" href="https://ig.ft.com/visual-vocabulary/styles.css"/> | ||
<link rel="stylesheet" href="./bar.css"/> |
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.
This no longer exists and is throwing 404s
</head> | ||
<body> | ||
|
||
<h1>Bar and grouped bar chart</h1> |
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.
Update this all
source: 'Source not yet added', | ||
}; | ||
|
||
const xMin = -0;// sets the minimum value on the yAxis |
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.
Why minus?
} else { | ||
stalks = false; | ||
} | ||
|
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.
The above two conditionals could be replaced with two expressions:
const dots = dotWidth > 0;
const stalks = stalkWidth > 0;
|
||
|
||
|
||
|
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.
Remove some of this extraneous whitespace
Also, please name folders in lowercase and kebab-case. I.e., rename this to
|
No description provided.