core.scale.autoskip.d.ts 611 B

12345678910111213141516171819
  1. /**
  2. * @typedef { import('./core.controller.js').default } Chart
  3. * @typedef {{value:number | string, label?:string, major?:boolean, $context?:any}} Tick
  4. */
  5. /**
  6. * Returns a subset of ticks to be plotted to avoid overlapping labels.
  7. * @param {import('./core.scale.js').default} scale
  8. * @param {Tick[]} ticks
  9. * @return {Tick[]}
  10. * @private
  11. */
  12. export function autoSkip(scale: import('./core.scale.js').default, ticks: Tick[]): Tick[];
  13. export type Chart = import('./core.controller.js').default;
  14. export type Tick = {
  15. value: number | string;
  16. label?: string;
  17. major?: boolean;
  18. $context?: any;
  19. };