Open ebaggg opened 4 years ago
Any update on this?
still no update on this one?
Still no resolution? Is there any way to configure the graph to avoid this problem?
The problem has been located in projects/swimlane/ngx-charts/src/lib/common/axes/y-axis-ticks.component.ts.
Fixes that solved this problem.
<svg:g #ticksel>
<svg:g *ngFor="let tick of ticks" class="tick" [attr.transform]="transform(tick)">
<title>{{ tickFormat(tick) }}</title>
<svg:text
stroke-width="0.01"
[attr.dy]="dy"
[attr.x]="x1"
[attr.y]="y1"
[attr.text-anchor]="textAnchor"
[style.font-size]="'12px'"
>
{{ tickTrim1(tick) }}
</svg:text>
</svg:g>
</svg:g>
tickTrim1(label: number): number
{
return this.trimTicks ? trimLabel(label, this.maxTickLength) : label;
}
Please create Pull Request for that :)
Describe the bug On my 1920 x 1080 Windows 10 resolution laptop monitor, the y-axis labels duplicate depending on how tall the chart is.
To Reproduce Steps to reproduce the behavior:
Expected behavior The y-axis stay unique numbers like in lower resolutions.
Screenshots
Demo https://stackblitz.com/edit/angular-playground-y3hatj?file=app%2Fapp.component.html
ngx-charts version All versions