Line chart XAxis Time format

Stimulsoft Reports.JS discussion
Post Reply
adbaisan
Posts: 6
Joined: Mon Jun 15, 2020 8:19 am

Line chart XAxis Time format

Post by adbaisan »

Hello, I have a line chart with a timeline in seconds (0,1,2,...) and I would want my X Axis to display minutes:seconds. I set the format to X Axis to "00:00", the column is set with DateTime type, DateTime step in X Axis is set to Second, but the timestamps are looking like "00:99", "01:74", they don't stop at 59 looking like seconds. Is there a way to make my timeline display in minutes:seconds? Maybe I am missing a property or the format of my timeline i wrong?
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Line chart XAxis Time format

Post by HighAley »

Hello,

What id the format of the column that you use to pass the seconds?
The chart can't convert integer value to minutes and seconds automatically.
Maybe you should add a Calculate column that will convert seconds to DateTime or TimeSpan.

Thank you.
adbaisan
Posts: 6
Joined: Mon Jun 15, 2020 8:19 am

Re: Line chart XAxis Time format

Post by adbaisan »

Thanks for the quick reply. The format is indeed integer, but if you could tell me what format should I send it it won't be a problem to change it.
adbaisan
Posts: 6
Joined: Mon Jun 15, 2020 8:19 am

Re: Line chart XAxis Time format

Post by adbaisan »

Can you tell me what is the default datetime and timespan type format?
Lech Kulikowski
Posts: 7291
Joined: Tue Mar 20, 2018 5:34 am

Re: Line chart XAxis Time format

Post by Lech Kulikowski »

Hello,

It depends of the localization setting or Culture property of the report.

Thank you.
adbaisan
Posts: 6
Joined: Mon Jun 15, 2020 8:19 am

Re: Line chart XAxis Time format

Post by adbaisan »

Just for others to know, I set the time field to Timespan and removed the format from the chart, data in time field is in format "hh:mm:ss", still wanted "mm:ss" format but that's a smaller issue
Lech Kulikowski
Posts: 7291
Joined: Tue Mar 20, 2018 5:34 am

Re: Line chart XAxis Time format

Post by Lech Kulikowski »

Hello,

Please send us a sample report with test data that reproduces the issue for analysis.

Thank you.
Post Reply