Profile Picture

How to show length of rectangle in the chart

Posted By shweta jain 5 Years Ago
Author
Message
shweta jain
Question Posted 5 Years Ago
View Quick Profile
Junior Member

Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)

Group: Forum Members
Last Active: 3 Years Ago
Posts: 16, Visits: 192
Hi,
I want to show length of rectangle as I design in attached snapshot by pen. How can I show length of rectangle like attached snapshot?
For creating rectangle I have used this code -
https://www.nevron.com/forum/uploads/images/1be0218a-d264-4ede-a576-d3f7.png
NGraphicsPathSeries pathSeries = new NGraphicsPathSeries();
    NGraphicsPath rectangle = new NGraphicsPath();
    rectangle.AddRectangle(xLocation, yLocation, 10, diameter);
    pathSeries.GraphicsPath = rectangle;
    _cartesianChart.Series.Add(pathSeries);
    pathSeries.DisplayOnAxis(StandardAxis.PrimaryY, true);
    pathSeries.DisplayOnAxis(StandardAxis.PrimaryX, false);
    pathSeries.DisplayOnAxis(visibleXAxis.AxisId, true);





Similar Topics


Reading This Topic