-
+
${memoryData.data && memoryData.data.length > 0 ? `
@@ -2914,9 +2914,9 @@
// Clear container
container.innerHTML = '';
- // Get container dimensions
+ // Get container dimensions and ensure proper aspect ratio
const containerWidth = container.offsetWidth || 400;
- const containerHeight = container.offsetHeight || 200;
+ const containerHeight = Math.max(container.offsetHeight || 200, 250); // Minimum height of 250px
// Create Victory chart using React.createElement
const chart = React.createElement(Victory.VictoryChart, {
@@ -2924,6 +2924,7 @@
height: containerHeight,
theme: Victory.VictoryTheme.material,
scale: { x: 'time' },
+ padding: { top: 20, bottom: 50, left: 60, right: 20 },
style: {
parent: {
background: '#1E1E1E',
@@ -2997,9 +2998,9 @@
// Clear container
container.innerHTML = '';
- // Get container dimensions
+ // Get container dimensions and ensure proper aspect ratio
const containerWidth = container.offsetWidth || 400;
- const containerHeight = container.offsetHeight || 200;
+ const containerHeight = Math.max(container.offsetHeight || 200, 250); // Minimum height of 250px
// Create Victory chart using React.createElement
const chart = React.createElement(Victory.VictoryChart, {
@@ -3007,6 +3008,7 @@
height: containerHeight,
theme: Victory.VictoryTheme.material,
scale: { x: 'time' },
+ padding: { top: 20, bottom: 50, left: 60, right: 20 },
style: {
parent: {
background: '#1E1E1E',