Revert "Fixed realtime chart for relational. Removed getDateArray. Added chart min/max dates."

This reverts commit 647dcb5f25.
This commit is contained in:
Mike Cao 2024-08-22 13:14:40 -07:00
parent 82f766342e
commit 5e5b61dc7e
7 changed files with 46 additions and 46 deletions

View file

@ -12,8 +12,6 @@ export interface BarChartProps extends ChartProps {
renderYLabel?: (label: string, index: number, values: any[]) => string;
XAxisType?: string;
YAxisType?: string;
minDate?: number | string;
maxDate?: number | string;
}
export function BarChart(props: BarChartProps) {
@ -26,8 +24,6 @@ export function BarChart(props: BarChartProps) {
XAxisType = 'time',
YAxisType = 'linear',
stacked = false,
minDate,
maxDate,
} = props;
const options: any = useMemo(() => {
@ -36,8 +32,6 @@ export function BarChart(props: BarChartProps) {
x: {
type: XAxisType,
stacked: true,
min: minDate,
max: maxDate,
time: {
unit,
},