score:2
Accepted answer
The Chart.js docs you linked to specify this structure for formatting time axes labels:
time: {
displayFormats: {
quarter: 'MMM YYYY'
}
}
so plugging in your format that becomes:
time: {
displayFormats: {
second: this.timeFormat
}
}
You were right, just a tiny detail! (updated Fiddle).
Source: stackoverflow.com
Related Query
- time series stream, removing am/pm on x axis and 24 hour format
- Chart JS - set start of week for x axis time series
- Format Y axis of Chart.JS as Time
- chart.js different x axis and tooltip format
- Chart.js v3.x time series on x axis
- chartjs time cartesian axis adapter and date library setup
- How do I add time sourced from an external source as an X axis to a ChartJS graph?
- How to plot chart from external JSON and format X-AXIS to show time using Chart.JS?
- how can i use chart.js to create a chart that has one time series line and one linear line on it at the same time?
- Chart.js - changing tick / label positions for x axis time series
- chart js - bar chart with time scale on Y axis in Hours and Minutes
- chart.js 3 and time axis displays wrong date data
- Chart with Time axis only displaying first grid line and tick label (unitStepSize)
- Adding hours and minutes to a date object for time axis
- chart.JS time axis labels should be just in hours format
- How to set 3 axis in google chart (V-Axis Left as Qty, V-Axis Right as Series Column and H-Axis as TimeOrder)?
- Using epoch as time series on x axis in react-chartjs-2 not showing correct date
- Chart.js bar chart with time on X axis and category on Y axis is not rendered
- Chart.js 2.9.4 - howto set a margin for axes min\max and time axis label separation
- Time format on the x axis in Chart.js
- How to start the chart from specific time and offest hour and then show the data on chart from target datetime in chartjs
- ChartJS time axis not plotting correctly | getting an hour instead of date
- How to zoom Y axis on time series or X-Y chartjs graph
- 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
- ChartJs line chart time cartesian axis number of ticks and wierd offset
- chart.js time series multi axis case
- Issues with Moment and ChartJS Time Format Parsing
- Chart.JS - Set fixed X and Y axis values in time chart?
- ChartJS Tooltips with time axis and multiple datasets
- Chart.js Time series - x axis that change depending on timestamp
More Query from same tag
- Define backgroundColor from data in chartJS
- how to change color of bar if its goes above avg score in mixed graph chart.js
- chartnew.js cannot show chart after durandal project published
- How to get data from JSON ReactJs
- dynamically update Chart.js draw line chart dataset data
- Add Labels to Chart.js Bar Chart
- Is it possible to show labels for all lines?
- Chart.js How to set line height only to the points?
- Chart.js moment locale
- How to differentiate the data of one topic or another coming from Mercure hub if the client is suscribed to two topics
- ChartJS: How to set a data point to be hidden by default?
- Is there a JavaScript Method/ Function to loop Objects via Keys into a array?
- Revert tooltip order
- How to can I get text inside a chats.js circular chart
- Changing width and height in angular-chart.js module
- Chart.js - How to display all bars as different datasets(same behaviour as doughnut)
- Custom y axle using Chart.js
- space before and after data points in chart.js
- NG2-Charts Can't bind to 'datasets' since it isn't a known property of 'canvas'
- How can i hide label data on chart.js tooltip content?
- Chart point hover error
- What kind of graph could I use to achieve this with ChartJS (or similar)?
- ChartJs Skip few category, possible?
- How do I keep chart.js charts in one JS file, and not get errors when the ID from the JS file don't exist on one specific html page?
- ChartJS creating var takes each character and outputs undefined
- Charts.js Dynamic Ticks
- Chart.js number format
- why is the background black when with Chartjs export to a image
- Cannot read property '_index' of undefined ChartistJs for value 0 or null
- How do I remove the y-axis labels from a graph?