Click here to Skip to main content
15,901,962 members
Home / Discussions / C#
   

C#

 
GeneralRe: read only Pin
Nicholas Marty15-Nov-13 4:49
professionalNicholas Marty15-Nov-13 4:49 
AnswerThe system cannot find the file specified for process.start(). Pin
subhendun dan13-Nov-13 4:53
subhendun dan13-Nov-13 4:53 
GeneralRe: The system cannot find the file specified for process.start(). Pin
OriginalGriff13-Nov-13 5:39
mveOriginalGriff13-Nov-13 5:39 
GeneralRe: The system cannot find the file specified for process.start(). Pin
subhendun dan15-Nov-13 2:00
subhendun dan15-Nov-13 2:00 
GeneralRe: The system cannot find the file specified for process.start(). Pin
OriginalGriff15-Nov-13 3:52
mveOriginalGriff15-Nov-13 3:52 
QuestionC# chart height ,width based on data? Pin
Member 1027623012-Nov-13 19:57
Member 1027623012-Nov-13 19:57 
AnswerRe: C# chart height ,width based on data? Pin
Mycroft Holmes12-Nov-13 21:31
professionalMycroft Holmes12-Nov-13 21:31 
QuestionRe: C# chart height ,width based on data? Pin
Member 1027623012-Nov-13 22:19
Member 1027623012-Nov-13 22:19 
my code

int Xcount = dt.Rows.Count * 25;
List<int> levels = dt.AsEnumerable().Select(al => al.Field<int>(dt.Columns[1].ToString())).Distinct().ToList();
int yCount = levels.Max()*500;
Chart chart = new Chart();
//chart.Size = new Size(Xcount, yCount);
chart.DataSource = dt;
//chart.Width = 350;
chart.Height = Xcount;
//create serie...
Series serie1 = new Series();
serie1.Name = "Serie1";
serie1.LabelBorderWidth = 400;
serie1.Color = Color.FromArgb(255, 0, 0);
serie1.BorderColor = Color.FromArgb(164, 164, 164);
serie1.ChartType = SeriesChartType.Column;
serie1.BorderDashStyle = ChartDashStyle.Solid;
serie1.BorderWidth = 1;
serie1.ShadowColor = Color.FromArgb(128, 128, 128);
serie1.ShadowOffset = 1;
serie1.IsValueShownAsLabel = true;
serie1.XValueMember = dt.Columns[0].ToString();
serie1.YValueMembers = dt.Columns[1].ToString();
serie1.Font = new Font("Tahoma", 8.0f);
serie1.BackSecondaryColor = Color.FromArgb(0, 102, 153);
serie1.LabelForeColor = Color.FromArgb(255, 255, 255);
serie1.ChartType = SeriesChartType.StackedBar;
serie1["PixelPointWidth"] = "12";

chart.Series.Add(serie1);
//create chartareas...

ChartArea ca = new ChartArea();

ca.BorderWidth = 2;
ca.Name = "ChartArea1";
ca.BackColor = Color.White;
ca.BorderColor = Color.FromArgb(255, 0, 0);
ca.BorderWidth = 0;
ca.BorderDashStyle = ChartDashStyle.Solid;

ca.AxisX = new Axis();
ca.AxisY = new Axis();
string YAxixName = dt.Columns[1].ColumnName;
ca.AxisY.Title = YAxixName;
// Set axis title

chart.ChartAreas.Add(ca);

chart.ChartAreas[0].AxisX.MajorGrid.LineWidth = 0;
chart.ChartAreas[0].AxisY.MajorGrid.LineWidth = 0;

//databind...
chart.DataBind();

series name for each series is not displaying.
AnswerRe: C# chart height ,width based on data? Pin
Mycroft Holmes12-Nov-13 23:24
professionalMycroft Holmes12-Nov-13 23:24 
AnswerRe: C# chart height ,width based on data? Pin
GuyThiebaut12-Nov-13 23:41
professionalGuyThiebaut12-Nov-13 23:41 
GeneralRe: C# chart height ,width based on data? Pin
Member 1027623013-Nov-13 0:16
Member 1027623013-Nov-13 0:16 
Questionnearest postcode Pin
Member 1037988612-Nov-13 16:58
Member 1037988612-Nov-13 16:58 
AnswerRe: nearest postcode Pin
Mycroft Holmes12-Nov-13 21:28
professionalMycroft Holmes12-Nov-13 21:28 
GeneralRe: nearest postcode Pin
Member 1037988613-Nov-13 2:16
Member 1037988613-Nov-13 2:16 
QuestionUnit Testing with Serial Port Pin
Blubbo12-Nov-13 9:35
Blubbo12-Nov-13 9:35 
AnswerRe: Unit Testing with Serial Port Pin
Ron Beyer12-Nov-13 17:46
professionalRon Beyer12-Nov-13 17:46 
GeneralRe: Unit Testing with Serial Port Pin
Blubbo12-Nov-13 22:56
Blubbo12-Nov-13 22:56 
AnswerRe: Unit Testing with Serial Port Pin
Blubbo12-Nov-13 23:03
Blubbo12-Nov-13 23:03 
AnswerRe: Unit Testing with Serial Port Pin
Marco Bertschi13-Nov-13 0:15
protectorMarco Bertschi13-Nov-13 0:15 
QuestionHow To Access from C# python list of multi elements Pin
Member 817314812-Nov-13 8:35
Member 817314812-Nov-13 8:35 
AnswerRe: How To Access from C# python list of multi elements Pin
Richard Deeming12-Nov-13 8:43
mveRichard Deeming12-Nov-13 8:43 
QuestionNeed help ..... Pin
superselector11-Nov-13 22:15
superselector11-Nov-13 22:15 
AnswerRe: Need help ..... Pin
Eddy Vluggen11-Nov-13 22:34
professionalEddy Vluggen11-Nov-13 22:34 
AnswerRe: Need help ..... Pin
lukeer11-Nov-13 22:34
lukeer11-Nov-13 22:34 
AnswerRe: Need help ..... PinPopular
OriginalGriff11-Nov-13 22:35
mveOriginalGriff11-Nov-13 22:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.