You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am creating Livechart2 in wpf dynamically and I am using ZeroPaint property to make X & Y axis to cross at 0 points. But i want to be showing arrow head at the end of each crossing line . Please see my attached image below mentioned in green color.
I have the below code where i am using ZeroPaint . Please help me how to add this arrow head.
_xAxis = new Axis
{
Name = xunit,
ZeroPaint = new SolidColorPaint { Color = SKColors.Black, StrokeThickness = 1 },
SeparatorsPaint = new SolidColorPaint { Color = SKColors.Transparent },
SubseparatorsPaint = new SolidColorPaint { Color = SKColors.Transparent },
Position = LiveChartsCore.Measure.AxisPosition.End,
LabelsPaint = new SolidColorPaint(new SkiaSharp.SKColor(0, 0, 0, 255))
{
SKTypeface = SkiaSharp.SKTypeface.FromFamilyName("Open Sans", SkiaSharp.SKFontStyle.Normal)
},
MinLimit = -xAxisRange,
MaxLimit = xAxisRange,
TextSize = 12
};
_yAxis = new Axis
{
Name = yunit,
ZeroPaint = new SolidColorPaint { Color = SKColors.Black, StrokeThickness = 1 },
SeparatorsPaint = new SolidColorPaint { Color = SKColors.Transparent },
SubseparatorsPaint = new SolidColorPaint { Color = SKColors.Transparent },
Position = LiveChartsCore.Measure.AxisPosition.Start,
IsVisible = true,
LabelsPaint = new SolidColorPaint(new SkiaSharp.SKColor(0, 0, 0, 255))
{
SKTypeface = SkiaSharp.SKTypeface.FromFamilyName("Open Sans", SkiaSharp.SKFontStyle.Normal)
},
MinLimit = -yAxisRange,
MaxLimit = yAxisRange,
TextSize = 12
};
cartesianChart.XAxes = new[] { _xAxis };
cartesianChart.YAxes = new[] { _yAxis };
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am creating Livechart2 in wpf dynamically and I am using ZeroPaint property to make X & Y axis to cross at 0 points. But i want to be showing arrow head at the end of each crossing line . Please see my attached image below mentioned in green color.
I have the below code where i am using ZeroPaint . Please help me how to add this arrow head.
_xAxis = new Axis
{
Name = xunit,
ZeroPaint = new SolidColorPaint { Color = SKColors.Black, StrokeThickness = 1 },
SeparatorsPaint = new SolidColorPaint { Color = SKColors.Transparent },
SubseparatorsPaint = new SolidColorPaint { Color = SKColors.Transparent },
Position = LiveChartsCore.Measure.AxisPosition.End,
LabelsPaint = new SolidColorPaint(new SkiaSharp.SKColor(0, 0, 0, 255))
{
SKTypeface = SkiaSharp.SKTypeface.FromFamilyName("Open Sans", SkiaSharp.SKFontStyle.Normal)
},
MinLimit = -xAxisRange,
MaxLimit = xAxisRange,
TextSize = 12
};
Please help .
Beta Was this translation helpful? Give feedback.
All reactions