import 'chartjs-adapter-date-fns'; import type { SparklineDataset, SparklineType } from '../types'; type __VLS_Props = { /** * WARNING `chartKey` without `groupKey` does nothing. * WARNING `chartKey` must be static across renders. * * Each sparkline that is a part of a group must provide a unique identifier * that is consistent across renders. This allows all sparklines in that group * to share state. See `groupKey` for details. */ chartKey?: string; /** * A collection of timestamps. Given the number of `pointRenderCount` and the * range of timestamps to be drawn, the timestamps will be bucketed with a * count of how many timestamps are in each bucket. For example, given * timestamps `[1, 1, 1, 4, 5, 6]` and a `pointRenderCount` of 2, will render * two data points: 1-3: 3, 4-6: 3. However, if your `pointRenderCount` was 3 * it would instead render three data points: 1-2: 3, 3-4: 1, 5-6: 2 */ datasets: SparklineDataset[]; disableTooltip?: boolean; /** * WARNING `enableBrushing` without `groupKey` and `chartKey` does nothing. * * When brushing is enabled a vertical line will be drawn at the mouse * position on all sparklines that share the same `groupKey`. */ enableBrushing?: boolean; /** * WARNING `groupKey` without `chartKey` does nothing. * WARNING `groupKey` must be static across renders. * * Every sparkline that has the same `groupKey` will be forced to render all * data at the same scale in both the X and Y axes. Each one will effectively * inherit the smallest `minStamp`, largest `maxStamp`, and largest `maxCount`. * For each sparkline that doesn't have those props, it will calculate those * props from the dataset it's given and that dataset will be used to * influence other sparklines with this `groupKey` as well. */ groupKey?: string; /** * determines the relative sizes/heights of bars/points on the y axis after * bucketing the timestamps in your datasets. Defaults to the largest count. * If lower than the largest count the data will be truncated. */ maxCount?: number; /** * determines the relative position of bars/points on the x axis, defaults to * the largest timestamp in your datasets. If set lower than the largest * timestamp, the data will be truncated. */ maxStamp?: number; /** * determines the relative sizes/heights of bars/points on the y axis after * bucketing the timestamps in your datasets. Defaults to 0. If higher than * the lowest count the data will be truncated. */ minCount?: number; /** * determines the relative position of bars/points on the x axis, defaults to * the smallest timestamp in your datasets. If set higher than the smallest * timestamp, the data will be truncated */ minStamp?: number; /** * The number of datapoints to render. Will bucket timestamps into ranges that * are `(maxStamp - minStamp) / pointRenderCount` apart. `pointRenderCount` * must be greater than 1 (will default to 2 if a value less than 2 is * provided) as you can't draw a line without at least 2 points rendered. */ pointRenderCount?: number; showLabel?: boolean; tooltipTitle?: string; type: SparklineType; }; declare var __VLS_1: {}, __VLS_20: { total: number; totalByDataset: Record; }; type __VLS_Slots = {} & { empty?: (props: typeof __VLS_1) => any; } & { label?: (props: typeof __VLS_20) => any; }; declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>; declare const __VLS_export: __VLS_WithSlots; declare const _default: typeof __VLS_export; export default _default; type __VLS_WithSlots = T & { new (): { $slots: S; }; }; //# sourceMappingURL=SparklineChart.vue.d.ts.map