Skip to content

Commit

Permalink
summaryType bugfixes
Browse files Browse the repository at this point in the history
Horizontal joy plots were slightly off and contour plots needed more margin. Oh and all horizontal summary charts were flipped.
  • Loading branch information
emeeks committed Dec 16, 2017
1 parent 64bf0f9 commit 9c695ff
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/components/svg/summaryLayouts.js
Original file line number Diff line number Diff line change
Expand Up @@ -648,8 +648,8 @@ export function contourRenderFn({
data: projectedOrd,
projectedX: "x",
projectedY: "y",
finalXExtent: [0, adjustedSize[0]],
finalYExtent: [0, adjustedSize[1]]
finalXExtent: [0, adjustedSize[0] + margin.left + margin.right],
finalYExtent: [0, adjustedSize[1] + margin.top + margin.bottom]
})
const contourMarks = []
oContours.forEach((d, i) => {
Expand Down Expand Up @@ -763,7 +763,9 @@ export function bucketizedRenderingFn({
// binBuckets.push(binDomain[1]);

const xyValue =
projection === "vertical" ? p => p.xy.y : p => p.piece._orFRVertical
projection === "vertical"
? p => p.piece._orFRVertical
: p => p.piece._orFR

let calculatedBins = violinHist
.domain(binDomain)
Expand Down Expand Up @@ -1008,7 +1010,7 @@ export function bucketizedRenderingFn({

if (projection === "horizontal") {
joyBins.forEach((summaryPoint, i) => {
const xValue = summaryPoint.y
const xValue = summaryPoint.y - bucketSize
const yValue =
-summaryPoint.value / actualMax * (columnWidth + joyHeight) +
columnWidth / 2
Expand Down

0 comments on commit 9c695ff

Please sign in to comment.