mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
styling (#93663)
This commit is contained in:
parent
a21f48a9f2
commit
7c9e08e269
1 changed files with 11 additions and 15 deletions
|
@ -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,
|
||||
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue