Replies: 1 comment 1 reply
-
Looks like it could be fixxed with a negative padding,.. but that looks bad on diffrent window sizes so back to 101 :) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am getting a problem with the BarWidth at a simple ColumnSeries when updateing from 101 to any newer version.
From:
To:
Collection.Add(
new ColumnSeries
{
Values = new List { new ObservablePoint(i, 100) },
Stroke = new SolidColorPaint(SKColors.Black),
Fill = new SolidColorPaint(new SKColor(30, 30, 30, 15)),
DataLabelsPaint = new SolidColorPaint(SKColors.DarkGray),
DataLabelsPosition = DataLabelsPosition.Top,
DataLabelsSize = LabelSize / 2,
DataLabelsFormatter = x => $"{x.Context.Series.Name}",
MaxBarWidth = 200,
Rx = 0,
Ry = 0,
IgnoresBarPosition = true
});
Collection.Add(
new ColumnSeries
{
Values = new List { new ObservablePoint(i, 0) },
Stroke = null,
MaxBarWidth = 198.5,
DataLabelsPaint = new SolidColorPaint(new SKColor(s.Color.R, s.Color.G, s.Color.B)),
DataLabelsPosition = DataLabelsPosition.Middle,
DataLabelsPadding = new LiveChartsCore.Drawing.Padding(-5, 0, 0, 0),
DataLabelsSize = LabelSize,
DataLabelsFormatter = x => $"{x.Context.Series.Name}",
Rx = 0,
Ry = 0,
IgnoresBarPosition = true
});
Cannot figure out how to solve this.
Peace
Beta Was this translation helpful? Give feedback.
All reactions