Click here to Skip to main content
14,775,067 members
Home » Discussions » C#
   

C#

 
AnswerRe: C# or ASP.NET swtich(expr) expression can action on byte, long, String?(Engilsh is not my native language) Pin
Christian Graus19-Jan-21 10:54
protectorChristian Graus19-Jan-21 10:54 
GeneralRe: C# or ASP.NET swtich(expr) expression can action on byte, long, String?(Engilsh is not my native language) Pin
Upin L24-Jan-21 15:40
MemberUpin L24-Jan-21 15:40 
GeneralRe: C# or ASP.NET swtich(expr) expression can action on byte, long, String?(Engilsh is not my native language) Pin
Christian Graus24-Jan-21 15:50
protectorChristian Graus24-Jan-21 15:50 
GeneralRe: C# or ASP.NET swtich(expr) expression can action on byte, long, String?(Engilsh is not my native language) Pin
Upin L25-Jan-21 20:30
MemberUpin L25-Jan-21 20:30 
AnswerRe: C# or ASP.NET swtich(expr) expression can action on byte, long, String?(Engilsh is not my native language) Pin
20212a19-Jan-21 11:40
Member20212a19-Jan-21 11:40 
GeneralRe: C# or ASP.NET swtich(expr) expression can action on byte, long, String?(Engilsh is not my native language) Pin
Upin L24-Jan-21 15:51
MemberUpin L24-Jan-21 15:51 
GeneralRe: C# or ASP.NET swtich(expr) expression can action on byte, long, String?(Engilsh is not my native language) Pin
20212a25-Jan-21 2:13
Member20212a25-Jan-21 2:13 
QuestionSystem.Windows.Forms.DataVisualization.Charting Pin
Member 1483694318-Jan-21 2:40
MemberMember 1483694318-Jan-21 2:40 
Hi,

I am developing a Work Load Analysis platform and there I use System.Windows.Forms.DataVisualization.Charting. The problem i have is, Xaxis is not updated when switching between different value types in runtime.
Here is the code, which i use to update chart from DateTime valuetype to int.

Here _EndWeek and _StartWeek are integer parameters pass to this method.

List<int> _Weeks = new List<int>();
int _Week_Difference = _EndWeek - _StartWeek;

for (int i = 0; i <= _Week_Difference; i++)
{
    _Weeks.Add(_StartWeek+ i);
}

chart_Utilization.Series[0].Points.Clear();
chart_Utilization.Series[1].Points.Clear();
chart_Utilization.Series[2].Points.Clear();

chart_Utilization.Series[0].XValueType = ChartValueType.Int32;
chart_Utilization.Series[1].XValueType = ChartValueType.Int32;
chart_Utilization.Series[2].XValueType = ChartValueType.Int32;

chart_Utilization.ChartAreas[0].AxisX.Interval = 1;
chart_Utilization.ChartAreas[0].AxisX.IntervalType = DateTimeIntervalType.Number;
chart_Utilization.ChartAreas[0].AxisX.IntervalOffsetType = DateTimeIntervalType.Number;

chart_Utilization.ChartAreas[0].AxisX.LabelStyle.Format = "{0:0}";
chart_Utilization.ChartAreas[0].AxisX.Minimum = 1;
chart_Utilization.ChartAreas[0].AxisX.Maximum = 53;

chart_Utilization.Update();


I would be glad, if some could help me in this case.
AnswerRe: System.Windows.Forms.DataVisualization.Charting Pin
Gerry Schmitz18-Jan-21 3:35
mveGerry Schmitz18-Jan-21 3:35 
GeneralRe: System.Windows.Forms.DataVisualization.Charting Pin
Member 1483694318-Jan-21 6:09
MemberMember 1483694318-Jan-21 6:09 
GeneralRe: System.Windows.Forms.DataVisualization.Charting Pin
Gerry Schmitz18-Jan-21 6:33
mveGerry Schmitz18-Jan-21 6:33 
GeneralRe: System.Windows.Forms.DataVisualization.Charting Pin
Member 1483694318-Jan-21 7:27
MemberMember 1483694318-Jan-21 7:27 
GeneralRe: System.Windows.Forms.DataVisualization.Charting Pin
Gerry Schmitz18-Jan-21 16:57
mveGerry Schmitz18-Jan-21 16:57 
GeneralRe: System.Windows.Forms.DataVisualization.Charting Pin
Member 1483694318-Jan-21 19:15
MemberMember 1483694318-Jan-21 19:15 
GeneralRe: System.Windows.Forms.DataVisualization.Charting Pin
Member 1483694318-Jan-21 20:32
MemberMember 1483694318-Jan-21 20:32 
GeneralRe: System.Windows.Forms.DataVisualization.Charting Pin
Gerry Schmitz19-Jan-21 5:31
mveGerry Schmitz19-Jan-21 5:31 
QuestionHow to use Excel's pivot table and pivot chart functionality in C#? Pin
Alex Dunlop16-Jan-21 19:44
MemberAlex Dunlop16-Jan-21 19:44 
AnswerRe: How to use Excel's pivot table and pivot chart functionality in C#? Pin
Richard MacCutchan16-Jan-21 23:37
mveRichard MacCutchan16-Jan-21 23:37 
Questionchange data by using a removable disk Pin
Member 1504609314-Jan-21 7:40
MemberMember 1504609314-Jan-21 7:40 
AnswerRe: change data by using a removable disk Pin
OriginalGriff14-Jan-21 8:47
mveOriginalGriff14-Jan-21 8:47 
GeneralRe: change data by using a removable disk Pin
Member 1504609314-Jan-21 10:11
MemberMember 1504609314-Jan-21 10:11 
GeneralRe: change data by using a removable disk Pin
OriginalGriff14-Jan-21 10:21
mveOriginalGriff14-Jan-21 10:21 
GeneralRe: change data by using a removable disk Pin
Member 1504609314-Jan-21 10:36
MemberMember 1504609314-Jan-21 10:36 
GeneralRe: change data by using a removable disk Pin
OriginalGriff14-Jan-21 10:41
mveOriginalGriff14-Jan-21 10:41 
GeneralRe: change data by using a removable disk Pin
Member 1504609314-Jan-21 10:48
MemberMember 1504609314-Jan-21 10:48 

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.