![]() | 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: | Export to Javascript changes axis datetime format | ||
|---|---|---|---|
| Product: | VCL TeeChart | Reporter: | yeray alonso <yeray> |
| Component: | Export | Assignee: | yeray alonso <yeray> |
| Status: | RESOLVED FIXED | ||
| Severity: | enhancement | CC: | yeray |
| Priority: | --- | ||
| Version: | 33.210915 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
The following chart in VCL, whithout setting any datetime format shows the bottom axis labels like "17:20" while in Javascript shows "Wed Oct 27 2021 17:20:00" procedure TForm1.LocalDatetimeToJavascript; const fileName='test'; var i: Integer; tmp: TDateTime; begin with Chart1.AddSeries(TBarSeries) do begin XValues.DateTime:=True; FillSampleValues; Marks.Hide; tmp:=Now; for i:=0 to Count-1 do begin tmp:=IncHour(tmp,1); XValue[i]:=tmp end; end; TeeSaveToJavascriptFile(Chart1, fileName+'.html'); TeeGoToURL(Handle,fileName+'.html'); end; Also, having "hh" format in delphi should be "HH" in javascript, "am/pm" should be "tt", "AM/PM" should be "TT", "a/p" should be "t" and "A/P" should be "T".