Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rtl is missing in legendOptions #9241

Closed
m-ashourloo opened this issue Jun 7, 2021 · 2 comments
Closed

rtl is missing in legendOptions #9241

m-ashourloo opened this issue Jun 7, 2021 · 2 comments

Comments

@m-ashourloo
Copy link

it seems that rtl is missing in legendOptions (chart.js 3.3.2)

export interface LegendOptions {
  display: boolean;
  position: LayoutPosition;
  fullSize: boolean;
  reverse: boolean;

  onClick(this: LegendElement, e: ChartEvent, legendItem: LegendItem, legend: LegendElement): void;
  onHover(this: LegendElement, e: ChartEvent, legendItem: LegendItem, legend: LegendElement): void;
  onLeave(this: LegendElement, e: ChartEvent, legendItem: LegendItem, legend: LegendElement): void;

  labels: {
    boxWidth: number;
    boxHeight: number;
    color: Color;
    font: FontSpec;
    padding: number;
    generateLabels(chart: Chart): LegendItem[];

    filter(item: LegendItem, data: ChartData): boolean;


    sort(a: LegendItem, b: LegendItem, data: ChartData): number;

    pointStyle: PointStyle;

    textAlign?: TextAlign;

    usePointStyle: boolean;
  };

  title: {
    display: boolean;
    color: Color;
    font: FontSpec;
    position: 'center' | 'start' | 'end';
    padding?: number | ChartArea;
    text: string;
  };
}
@LeeLenaleee
Copy link
Collaborator

Duplicate of #9223

@etimberg etimberg added this to the Version 3.4.0 milestone Jun 7, 2021
@etimberg
Copy link
Member

etimberg commented Jun 7, 2021

Closing as a duplicate

@etimberg etimberg closed this as completed Jun 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants