Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

Commit

Permalink
fix: remove/clarify comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kristw committed May 9, 2019
1 parent 211c4c6 commit 676ba71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,21 +87,6 @@ export default class ScatterPlot extends PureComponent<Props> {
data: d,
}));

// if (typeof channels.x.scale !== 'undefined') {
// const xDomain = d3Extent(encodedData, d => d.x);
// const [min, max] = xDomain;
// const adjustedDomain = [Math.min(min || 0, 0), Math.max(max || 1, 1)];
// // channels.x.scale.setDomain(adjustedDomain);
// // channels.x.definition.scale.domain = adjustedDomain;
// }
// if (typeof channels.y.scale !== 'undefined') {
// const yDomain = d3Extent(encodedData, d => d.y);
// const [min, max] = yDomain;
// const adjustedDomain = [Math.min(min || 0, 0), Math.max(max || 1, 1)];
// // channels.y.scale.setDomain(adjustedDomain);
// // channels.y.definition.scale.domain = adjustedDomain;
// }

const children = [
<PointSeries
key={channels.x.definition.field}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@ export default function transformProps(chartProps: ChartProps) {
x,
xAxisFormat,
xAxisLabel,
// TODO: These fields are not supported yet
// xAxisShowminmax,
// xLogScale,
y,
yAxisLabel,
yAxisFormat,
// TODO: These fields are not supported yet
// yAxisShowminmax,
// yLogScale,
} = formData;
Expand Down

0 comments on commit 676ba71

Please sign in to comment.