![]() | Steema Issues DatabaseNote: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;otherwise you can use StackOverflow. Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy. |
| Summary: | Not able to plot X and Y Axis Line Graph according to dates | ||
|---|---|---|---|
| Product: | .NET TeeChart | Reporter: | devisree.korlakunta |
| Component: | WPF | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | RESOLVED NOTABUG | ||
| Severity: | major | CC: | devisree.korlakunta, sandra |
| Priority: | --- | ||
| Version: | TeeChart for .NET 4.1.2013.11080 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| Chart Series: | Line | Delphi / C++ Builder RAD IDE Version: | |
| Attachments: | Sample date time and values and acutual graph and trying to plot graph. | ||
Hello, What you request are not bug fix or enhancement suggestion to the existing products but technical inquiries on how to use TeeChart. Please post this kind of questions at our technical support forums, monitored by our technical department staff, at http://www.teechart.net/support/index.php Anyway, if you want achieve that request you can try to do something as I do in code below that works fine for us using latest TeeChart.Net release build number 4.1.2014.12154 private void InitializeChart() { GraphChart.Aspect.View3D = false; Steema.TeeChart.WPF.Styles.Line obj2 = new Steema.TeeChart.WPF.Styles.Line(GraphChart.Chart); obj2.XValues.DateTime = true; obj2.Stairs = true; obj2.UseAxis = true; obj2.Visible = true; obj2.Color = Colors.Red; GraphChart.Legend.Visible = false; DateTime dt = new DateTime(2000,12,10,10,0,0); for (int i = 0; i <50; i++) { if (i!=3) { GraphChart.Series[0].Add(dt, 0.1); } else { GraphChart.Series[0].Add(dt, -0.2); } dt = dt.AddHours(1); } GraphChart.Axes.Left.SetMinMax(-1, 1.5); GraphChart.Axes.Bottom.Labels.DateTimeFormat = "MMM dd, yyyy HH:mm"; GraphChart.Axes.Bottom.Increment = Steema.TeeChart.WPF.Utils.GetDateTimeStep(Steema.TeeChart.WPF.DateTimeSteps.OneHour); GraphChart.Axes.Bottom.Labels.Angle = 270; } Thanks in advance, Regards. |
Created attachment 379 [details] Sample date time and values and acutual graph and trying to plot graph. Iam Plotting a Line graph in wpf in which horizontal axis is date time and vertical axis is value. GraphChart.Aspect.View3D = false; Steema.TeeChart.WPF.Styles.Line obj2 = new Steema.TeeChart.WPF.Styles.Line(GraphChart.Chart); obj2.VertAxis = VerticalAxis.Left; obj2.XValues.DateTime = true; obj2.Stairs = true; obj2.UseAxis = true; obj2.Visible = true; obj2.Color = Colors.Red; obj2.ShowInLegend = false; obj2.Chart.Axes.Bottom.Automatic = false; GraphChart.Series.Add(obj2); for (int i = 0; i < SensorList.Count; i++) { GraphChart.Series[0].Add(listplotsensor[i].SensorDate, listplotsensor[i].SensorValue); } SensorList is a list contains no of sensors(ex it has 1088 points) and Listplotsensor has list of datetime and values. In the attachment I have attached Dateandvalues.png values which are sample values to plot Acutal graph.png is the graph which it should look like graph.png is the graph iam trying to plot. in Graph.png the bottom axis should be in dated and the dates gap should be one day. example from 1st date to 2nd date it has 15 points to plot. Its a urgent requirement. Please do the needful.