![]() | 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: | XValues change when exporting to Javascript | ||
|---|---|---|---|
| Product: | .NET TeeChart | Reporter: | yeray alonso <yeray> |
| Component: | Exporting | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | RESOLVED FIXED | ||
| Severity: | enhancement | ||
| Priority: | --- | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
| Attachments: | screenshot | ||
Created attachment 990 [details] screenshot Exporting a chart with datetimes to javascript, the values are modified. This example creates xvalues starting at 0:00 but the xvalues in the javascript side start at 02:00. Bar bar1 = new Bar(tChart1.Chart); bar1.FillSampleValues(); bar1.ColorEach = true; bar1.XValues.DateTime = true; var tmp = DateTime.Today; for (int i = 0; i < tChart1[0].Count; i++) { bar1.XValues[i] = Utils.DateTime(tmp); tmp = tmp.AddHours(1); } tChart1.Draw(); string path = @"E:\tmp\NETChartToJS"; string fullHtml = path + @"\index.html"; tChart1.Export.Image.JScript.Save(fullHtml); Process.Start(fullHtml);