Skip to content

Commit

Permalink
Merge branch 'master' into actions/terminology-api
Browse files Browse the repository at this point in the history
* master:
  styling (#93663)
  • Loading branch information
gmmorris committed Mar 4, 2021
2 parents c9d7e0e + 7c9e08e commit 822d988
Showing 1 changed file with 11 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@ const checkIfAnyValidSeriesExist = (
): data is ChartSeriesData[] =>
Array.isArray(data) && data.some(checkIfAllTheDataInTheSeriesAreValid);

const axisStyle = {
tickLine: {
visible: false,
},
tickLabel: {
padding: 3,
},
};

// https://ela.st/multi-areaseries
export const AreaChartBaseComponent = ({
data,
Expand Down Expand Up @@ -111,23 +120,10 @@ export const AreaChartBaseComponent = ({
position={Position.Bottom}
showOverlappingTicks={false}
tickFormat={xTickFormatter}
style={{
tickLine: {
visible: false,
},
}}
style={axisStyle}
/>

<Axis
id={yAxisId}
position={Position.Left}
style={{
tickLine: {
visible: false,
},
}}
tickFormat={yTickFormatter}
/>
<Axis id={yAxisId} position={Position.Left} style={axisStyle} tickFormat={yTickFormatter} />
</Chart>
</div>
) : null;
Expand Down

0 comments on commit 822d988

Please sign in to comment.