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

Adjusted top margin of heatmap plot to get it working in V2 #1361

Merged
merged 5 commits into from
Oct 25, 2016
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class ChartContainer extends React.Component {

width: () => this.chartContainerRef.getBoundingClientRect().width,

height: () => parseInt(this.props.height, 10) - 100,
height: () => parseInt(this.props.height, 10),
Copy link
Contributor Author

@vera-liu vera-liu Oct 16, 2016

Choose a reason for hiding this comment

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

I'm not sure why we do -100 here previously, the heatmap was squashed in y direction with -100 in height.

Copy link
Contributor

Choose a reason for hiding this comment

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

- 100 here was because the bottom of some charts were being cut off. probably a better way to handle this is in the margin declarations for each chart, or in the component more specifically.

can you check that the other charts are rendered correctly with this change?


selector: `#${this.props.sliceContainerId}`,

Expand Down
2 changes: 1 addition & 1 deletion caravel/assets/visualizations/heatmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require('./heatmap.css');
function heatmapVis(slice) {
function refresh() {
const margin = {
top: 10,
top: 50,
right: 10,
bottom: 35,
left: 35,
Expand Down