Profile Picture

How to set label in the rectangle

Posted By shweta jain Last Year
Author
Message
shweta jain
Posted Last Year
View Quick Profile
Forum Newbie

Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: Forum Members
Last Active: 2 Months Ago
Posts: 0, Visits: 104
Hi,
I want to set label in the rectangle. For creating rectangle I have used NGraphicsPathSeries class, so how can I set label under this rectangle.
I have used this code for create rectangle-
NGraphicsPathSeries pathSeries= new NGraphicsPathSeries();
    NGraphicsPath rectangle = new NGraphicsPath();
    pathSeries.AddRectangle(50, 50, 10, 10);
    pathSeries.FillStyle = new NColorFillStyle(red);
    pathSeries.GraphicsPath = rectangle;
    _cartesianChart.Series.Add(pathSeries);
    pathSeries.DisplayOnAxis(StandardAxis.PrimaryY, true);
    pathSeries.DisplayOnAxis(StandardAxis.PrimaryX, false);
    pathSeries.DisplayOnAxis(visibleXAxis.AxisId, true);


Nevron Support
Posted Last Year
View Quick Profile
Supreme Being

Supreme Being (3,905 reputation)Supreme Being (3,905 reputation)Supreme Being (3,905 reputation)Supreme Being (3,905 reputation)Supreme Being (3,905 reputation)Supreme Being (3,905 reputation)Supreme Being (3,905 reputation)Supreme Being (3,905 reputation)Supreme Being (3,905 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 2,879, Visits: 3,045
Hi Shweta,
The graphics path series does not support labeling - it is intended to draw graphics output only. In order to show text, you can use a point series with hidden points as illustrated in one of the previous posts we sent you.


Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic