mirror of https://github.com/buster-so/buster.git
change colors
This commit is contained in:
parent
eb6936f598
commit
8ebcd11979
|
@ -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'
|
||||
|
|
|
@ -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'];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue