Compare commits

...

2 Commits

Author SHA1 Message Date
Atanas Korchev
74732ffe11 Remove the logging. 2024-10-28 13:42:06 +02:00
Atanas Korchev
fae26eb7c4 Make the ordinal scale responsive. 2024-10-28 13:26:39 +02:00

View File

@@ -15,9 +15,12 @@ namespace Radzen.Blazor
public override (double Start, double End, double Step) Ticks(int distance)
{
var start = -1;
var end = Data.Count;
var step = 1;
var count = Data.Count - 1;
var ticks = Math.Min(Math.Ceiling(Math.Abs((Output.End - Padding) - (Output.Start + Padding)) / distance), count);
var step = (count) / ticks;
var start = - step;
var end = count + step;
return (start, end, step);
}