mirror of https://github.com/buster-so/buster.git
Update x axis to include source
This commit is contained in:
parent
6d50a9ddc3
commit
987644933a
|
@ -259,8 +259,9 @@ export const useXAxis = ({
|
||||||
ticks: {
|
ticks: {
|
||||||
...rotation,
|
...rotation,
|
||||||
major: {
|
major: {
|
||||||
enabled: false, //test
|
enabled: false,
|
||||||
},
|
},
|
||||||
|
source: type === 'time' ? ('data' as const) : undefined,
|
||||||
autoSkip: true,
|
autoSkip: true,
|
||||||
maxTicksLimit: type === 'time' ? (timeUnit === 'month' ? 18 : 18) : undefined,
|
maxTicksLimit: type === 'time' ? (timeUnit === 'month' ? 18 : 18) : undefined,
|
||||||
// sampleSize: type === 'time' ? 28 : undefined, //DO NOT USE THIS. IT BREAK TIME SCALES
|
// sampleSize: type === 'time' ? 28 : undefined, //DO NOT USE THIS. IT BREAK TIME SCALES
|
||||||
|
@ -270,6 +271,7 @@ export const useXAxis = ({
|
||||||
time: {
|
time: {
|
||||||
unit: timeUnit,
|
unit: timeUnit,
|
||||||
},
|
},
|
||||||
|
includeBounds: true,
|
||||||
},
|
},
|
||||||
grid,
|
grid,
|
||||||
} satisfies DeepPartial<ScaleChartOptions<'bar'>['scales']['x']>;
|
} satisfies DeepPartial<ScaleChartOptions<'bar'>['scales']['x']>;
|
||||||
|
|
|
@ -2631,7 +2631,7 @@ export const WithQuarterAndYearXAxis: Story = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export const WithQuarterNumber: Story = {
|
export const WithQuarterNumber_PermantBroken: Story = {
|
||||||
args: {
|
args: {
|
||||||
colors: [
|
colors: [
|
||||||
'#B399FD',
|
'#B399FD',
|
||||||
|
|
Loading…
Reference in New Issue