Code: Select all
var ann = new Annotation3D
{
Text = "hellow!",
LocationAxisValues = new PointDoubleXYZ(50, 50, 20),
LocationCoordinateSystem = Arction.Wpf.Charting.CoordinateSystem.AxisValues,
Style = Arction.Wpf.Charting.AnnotationStyle.Rectangle,
AllowUserInteraction = false,
Fill = new Fill { Style = RectFillStyle.None },
Shadow = new Shadow { Visible = false },
BorderVisible = false,
TextStyle = new AnnotationTextStyle { Color = Colors.Black },
};
ann.MouseClick += Ann_MouseClick;
ann.MouseDown += Ann_MouseDown;
ann.MouseOverOn += Ann_MouseOverOn;
_chart.View3D.Annotations.Add(ann);