For plotting data you should use seconds/minutes/hours as most appropriate for your data. You can customise how you format this in your interpolated JS string for labels - scaleLabel. For chart labels, you should just use formatted strings as you see most fit.
You must include your moment locale file on your page:
Ex.: You can find your locale using CDN https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.14.1/locale/pl.js
<script src="/bower_components/moment/moment.js"></script> <script src="/bower_components/moment/locale/de.js"></script>
Moment's locale must be set before the chart load else the chart must be updated with update(). https://github.com/chartjs/Chart.js/issues/3108
- Chart.js moment locale
- what is wrong with my code ? java script chart position
- How to print a chart rendered by code
- VueJS + Chartjs - Chart only renders after code change
- How do I destroy/update Chart Data in this chart.js code example?
- getting additional value fields from data source for dx.chartjs doughnut chart
- I am using chart js to draw a chart. I did everything right but i don't know why the x axis and y axis label is not comming in chart. code below
- Getting the HTML code of a chart created by chart.js
- How to run Chart.js samples using source code
- how to not repeat code while creating multiple charts in chart js
- Set height of chart in Chart.js
- Dynamically update values of a chartjs chart
- How to add text inside the doughnut chart using Chart.js?
- How to clear a chart from a canvas so that hover events cannot be triggered?
- In Chart.js set chart title, name of x axis and y axis?
- Limit labels number on Chart.js line chart
- Chart.js - How to set a line chart dataset as disabled on load
- chart js 2 how to set bar width
- How can labels/legends be added for all chart types in chart.js (chartjs.org)?
- Chartjs Bar Chart showing old data when hovering
- Chart.js Show labels on Pie chart
- Chart Js Change Label orientation on x-Axis for Line Charts
- Chart area background color chartjs
- Chart.js - Increase spacing between legend and chart
- Converting Chart.js canvas chart to image using .toDataUrl() results in blank image
- Draw horizontal line on chart in chart.js on v2
- How can I create a horizontal scrolling Chart.js line chart with a locked y axis?
- Remove the vertical line in the chart js line chart
- Chart.js: Bar Chart Click Events
- Chartjs v2.0: stacked bar chart
More Query from same tag
- Displaying custom dataset properties in tooltip in chart.js
- Chart.js bars have non uniform widths
- Prevent size of canvas chart js to equal window height and width
- ChartJS: datalabels: show percentage value in Pie piece
- Split JSON into two arrays gives undefined keys-values
- Chart js x-axis values getting repeated twice
- Import Financial chartjs
- Chart.js add to onhover text
- daily activity chart using PHP MySQL
- Changing borderDash for specific gridLines in radar chart
- Populate colors on a Chart.js chart dynamically
- Chart.js How to invert (swap) axes?
- How to select and pass array object to data setting of chart.js config?
- Chart.js Legend not showing
- Change dot size individually Scatter Chart -- ChartJS
- Chart js multiple titles
- Unable to update state in ReactJS
- Vuejs with ChartJS populate from API
- ng2-charts & chart.js - Change background color
- How to sort MMMYY on Chart.Js and display the values that match the month?
- Coding within labels and datasets table from chart.js
- Is it possible to merge duplicate labels (and their datas) into one column in Chart Js?
- How to add text to chart.js data?
- How do I add different data in my new chart?
- Chartjs, plot data based with unequal time intervals
- Chart.js and react-chartjs-2 property translate is missing type
- Angular - change objects to array and make it listen to on change
- Overlay text message on top of a chart
- Display labels on bar chart using Chart.js