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

width of independent variable plots should be consistent #13

Open
micahstubbs opened this issue Oct 24, 2016 · 2 comments
Open

width of independent variable plots should be consistent #13

micahstubbs opened this issue Oct 24, 2016 · 2 comments

Comments

@micahstubbs
Copy link
Contributor

micahstubbs commented Oct 24, 2016

screen shot 2016-10-24 at 12 41 37 pm

@micahstubbs
Copy link
Contributor Author

here the Route_ID plot is wider than the Units_Sold_This_Week plot below

@micahstubbs
Copy link
Contributor Author

    const plotWidth = document.getElementById(`scatterplot-container`).clientWidth - leftPadding;
    console.log('width of top plot', width);
    console.log('plotWidth', plotWidth);

    options = {
      width: plotWidth,
      // TODO: refactor white space in variable names edge case handling
      xVariable: xOriginal, 
      yVariable: yColumn,
      idVariable: idColumn,
      xLabel,
      tooltipColumns,
      numericColumns,
      wrapperId: currentAlgo,
      wrapperLabel: currentAlgoLabel,
      // hideXLabel: true,
      // yLabelTransform: 'left',
      yLabelTransform: [-10, -10, 0],
      globalExtents: globalExtents[x],
      marks,
      yScaleType,
      yScaleExponent,
      margin: { left: 120, top: 20, right: 80, bottom: 40 },
      xDroplineTextFormat: ',.0f',
      yDroplineTextFormat: ',.0f'
    }

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

No branches or pull requests

1 participant