[ML] Fix JVM heap size position on the ML memory overview chart (#132888) (#132942)

(cherry picked from commit 1d0e3e72b4)

# Conflicts:
#	x-pack/plugins/ml/public/application/explorer/anomaly_timeline_state_service.ts
This commit is contained in:
Dima Arnautov 2022-05-25 18:30:12 +02:00 committed by GitHub
parent 88f03a148e
commit 5e40e8a1ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,11 +70,6 @@ export const MemoryPreviewChart: FC<MemoryPreviewChartProps> = ({ memoryOverview
);
const chartData = [
{
x: 0,
y: memoryOverview.machine_memory.jvm,
g: groups.jvm.name,
},
{
x: 0,
y: memoryOverview.trained_models.total,
@ -100,6 +95,11 @@ export const MemoryPreviewChart: FC<MemoryPreviewChartProps> = ({ memoryOverview
memoryOverview.anomaly_detection.total,
g: groups.available.name,
},
{
x: 0,
y: memoryOverview.machine_memory.jvm,
g: groups.jvm.name,
},
];
const barSeriesColorAccessor: SeriesColorAccessor = ({ specId, yAccessor, splitAccessors }) => {