Skip to content

Commit

Permalink
add changes for digital as well
Browse files Browse the repository at this point in the history
  • Loading branch information
flxdot committed Jul 13, 2024
1 parent f8c6027 commit d50fc03
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions services/frontend/src/components/charts/chart-digital.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
:y-axes="yAxes"
:height="props.height"
:show-x-ticks="props.showXTicks"
:x-limits="props.dateRange"
/>
</template>

Expand Down Expand Up @@ -34,6 +35,7 @@ import {
DeepPartial,
} from '@/utils/types.ts';
import {
IDatetimeRange,
ITimeseries, toChartJsData,
} from '@/components/charts/timeseries.ts';
import i18n from '@/plugins/i18n';
Expand All @@ -43,12 +45,14 @@ interface IChartAnalogProps {
color: string | GradientDefinition | DiscreteGradientDefinition;
height?: string;
showXTicks?: boolean;
dateRange?: IDatetimeRange;
}
const props = withDefaults(defineProps<IChartAnalogProps>(), {
height: '10rem',
tickStepSize: 5,
showXTicks: true,
dateRange: undefined,
});
const limits: [number, number] = [
Expand Down

0 comments on commit d50fc03

Please sign in to comment.