Change time format of x-axis (ChartJS)

1
0

Hello,

we are currently building a dashboard application, where we display bar charts with data from a database.
The x-axis is set to ‘Time’ and we want to show only the hours and not the rest of the date.
However our problem is that the time is always displayed in a 12-hour format (am/pm) and not the 24-hour format we need,
We’ve tried using the ‘DisplayFormats’ option, but this didn’t change anything.

Could you provide a small sample, of how to correctly use the ChartJS extension in this regard?

  • You must to post comments
0
0

“Could you provide a small sample, of how to correctly use the ChartJS extension in this regard?”

Unfortunately, creating custom samples from scratch is outside the scope of the services we offer on this free support forum.
You can either look at the pre-existing ChartJS samples here:
https://docs.wisej.com/examples/examples/chartjs
https://wisej-demobrowser.azurewebsites.net/#Extensions/ChartJS/Features

Or you will need to provide a small sample, following the guidelines under “Before Posting an Issue” here: https://wisej.com/support/question/forum-guidelines In your case, this would be a sample that uses ChartJS, and has Time on the x-axis in a 12-hour format (am/pm).

Alternatively, we can develop a sample from scratch for you, if you purchase a support package: https://docs.wisej.com/license/services/professional-services

Hope this helps,

Julie

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.