Skip to content

Commit

Permalink
Update positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
sandrahoang686 committed Feb 28, 2024
1 parent 81699a9 commit 9c3eefd
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,12 @@ interface DatasetChartProps {

const ChartAnalysisMenu = styled.div`
width: inherit;
position: sticky;
position: relative;
display: flex;
justify-content: end;
margin-right: 0.8rem;
margin-right: 2.3rem;
`;


export function DatasetChart(props: DatasetChartProps) {
const { xScaled, width, isVisible, dataset, activeMetrics, highlightDate, onUpdateSettings } =
props;
Expand Down Expand Up @@ -213,12 +212,13 @@ function AxisGrid(props: AxisGridProps) {
>
{yLabel && (
<text
y={width + RIGHT_AXIS_SPACE - 20}
y={width + RIGHT_AXIS_SPACE - 45}
x={-height / 2}
transform='rotate(-90)'
textAnchor='middle'
fontSize='0.75rem'
fill={theme.color?.base}
margin-right='2rem'
>
{yLabel}
</text>
Expand Down

0 comments on commit 9c3eefd

Please sign in to comment.