Profile Picture

Pie Chart Issue

Posted By Rakesh Bhagat 13 Years Ago
Author
Message
Rakesh Bhagat
Posted 13 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: Forum Members
Last Active: 13 Years Ago
Posts: 1, Visits: 1

I Have web Application(.Net) and want to create Pie Chart and for it currently we are evaluating Nevron Software ,however I have encountered some issues which I have listed below.

Please let me know if its possible to resolve those issues using Nevron.

My Requirement

Nevron Pie Chart:

 

 

Issues:

1. The Pie gets shrinked when the labels are long.

2. Percentage and Labels are displayed in a box with black border( We don't need the border on the labels).

3.OverLapping Label (Should not Happen and Also image size should not srink).

4. Label word Wrap Property to manage long labels.

5.Negative Percentage( want to show negative percentage also)

Nevron Pie Chart Code:

 

chart.Enable3D = false;

chart.BoundsMode = BoundsMode.Fit;

chart.ContentAlignment = ContentAlignment.MiddleCenter;

chart.Location = new NPointL(

new NLength(50, NRelativeUnit.ParentPercentage),

new NLength(50, NRelativeUnit.ParentPercentage));

chart.Size = new NSizeL(

new NLength(85, NRelativeUnit.ParentPercentage),

new NLength(85, NRelativeUnit.ParentPercentage));

m_Pie = (NPieSeries)chart.Series.Add(SeriesType.Pie);

m_Pie.LabelMode = PieLabelMode.SpiderNoOverlap;

m_Pie.DataLabelStyle.Format = "<percent> <label>";

NShadowStyle shadowStyle = new NShadowStyle();

shadowStyle.Type = ShadowType.RadialBlur;

shadowStyle.Color = Color.Black;

shadowStyle.FadeLength = new NLength(1);

shadowStyle.Offset = new NPointL(2, 2);

m_Pie.Legend.Mode = SeriesLegendMode.None;

m_Pie.PieStyle = PieStyle.SmoothEdgePie;

m_Pie.ShadowStyle = (NShadowStyle)shadowStyle.Clone();

//Nevron Image 1 DataPoint(Note:Size srink)

m_Pie.AddDataPoint(new NDataPoint(17.9, "Europe-Ex EMU", new NColorFillStyle(Color.FromArgb(229, 223, 208))));

m_Pie.AddDataPoint(new NDataPoint(9.8, "Europe ", new NColorFillStyle(Color.FromArgb(137, 133, 124))));

m_Pie.AddDataPoint(new NDataPoint(13, "World", new NColorFillStyle(Color.FromArgb(189, 172, 134))));

m_Pie.AddDataPoint(new NDataPoint(28.5, "North America", new NColorFillStyle(Color.FromArgb(202, 198, 189))));

m_Pie.AddDataPoint(new NDataPoint(1.6, "Japan", new NColorFillStyle(Color.FromArgb(166, 142, 91))));

m_Pie.AddDataPoint(new NDataPoint(26, "Eurozone", new NColorFillStyle(Color.FromArgb(204, 186, 119))));

m_Pie.AddDataPoint(new NDataPoint(3.2, "Emerging Markets", new NColorFillStyle(Color.FromArgb(204, 176, 109))));

m_Pie.BorderStyle = new NStrokeStyle((Color.Gray));

//Image 2 Data Point(Note:Size is Ok,but we don't want to use the "\n" to split the label)

m_Pie.AddDataPoint(new NDataPoint(17.9, "\nEurope-Ex\n EMU", new NColorFillStyle(Color.FromArgb(229, 223, 208))));

m_Pie.AddDataPoint(new NDataPoint(9.8, "\nEurope", new NColorFillStyle(Color.FromArgb(137, 133, 124))));

m_Pie.AddDataPoint(new NDataPoint(13, "\nWorld", new NColorFillStyle(Color.FromArgb(189, 172, 134))));

m_Pie.AddDataPoint(new NDataPoint(28.5, "\nNorth\n America", new NColorFillStyle(Color.FromArgb(202, 198, 189))));

m_Pie.AddDataPoint(new NDataPoint(1.6, "\nJapan", new NColorFillStyle(Color.FromArgb(166, 142, 91))));

m_Pie.AddDataPoint(new NDataPoint(26, "\nEurozone", new NColorFillStyle(Color.FromArgb(204, 186, 119))));

m_Pie.AddDataPoint(new NDataPoint(3.2, "\nEmerging\n Markets", new NColorFillStyle(Color.FromArgb(204, 176, 109))));

m_Pie.BorderStyle = new NStrokeStyle((Color.Gray));

 

So, will u please confirm me wheteher we can achieve Simillar to My requirement by using nevron software Without Issue highlited,and if possible please send me code for it.

 






Similar Topics


Reading This Topic