change colors

This commit is contained in:
Nate Kelley 2025-04-01 17:17:38 -06:00
parent eb6936f598
commit 8ebcd11979
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
2 changed files with 4 additions and 1 deletions

View File

@ -4,7 +4,7 @@ import { isServer } from '@tanstack/react-query';
const backgroundColor = isServer
? '#e6e6e6'
: getComputedStyle(document.documentElement).getPropertyValue('--color-background');
: getComputedStyle(document.documentElement).getPropertyValue('--color-page-background');
const borderColor = isServer
? '#e0e0e0'

View File

@ -37,6 +37,7 @@ export const barSeriesBuilder = ({
(dataset) => !dataset.hidden && !dataset.isTrendline
);
const canDisplay = context.datasetIndex === shownDatasets.length - 1;
console.log('hit!');
if (canDisplay && !hasBeenDrawn) {
const chartLayout = context.chart.options.layout;
const padding = { ...DEFAULT_CHART_LAYOUT.padding, top: 24 };
@ -62,6 +63,8 @@ export const barSeriesBuilder = ({
},
anchor: 'end',
align: 'end',
clamp: true,
clip: false,
...defaultLabelOptionConfig
} as NonNullable<Options['labels']>['stackTotal'];
}