score:1
I don't know if this will help you, but when I tried to add a date "2017/02/29", the x-axis also goes back to 1970, because there were only 28 days in Feb 2017!
score:3
type: 'time',
display: true,
time: {
parser: "YYYY-MM-DDTHH:mm:ss",
},
You can add in scale > xAxes > time according to ChartJS And you can use also add time format of MomentJS
type: 'time',
display: true,
distribution: 'series',
time: {
unit:"year",
displayFormats:{year:'YYYY'},
min:'1970' ,
max:'2018',
}
Source: stackoverflow.com
Related Query
- Chartjs time plot xAxis shows year 1970
- how to plot multiple time series in chartjs where each time series has different times
- How do I add time sourced from an external source as an X axis to a ChartJS graph?
- ChartJS shows date, but not time, when displaying labels in time axis
- ChartJS xAxis time formats don't change for days
- chartjs plot datetime value with time offset on the grid
- chartjs - no smooth rendering on time series plot
- plot line graph in Chartjs 2 when number of data in yaxis is not eqaul to number of data in xaxis
- Chartjs displays numbers not time
- plot a bar chart.js time series
- ChartJS show gaps in time data
- Category scale on Y-axis and time on x-axis in bubble chart in Chartjs
- time scatter plot w/ chart.js
- Chartjs hovering over one Chart, shows tooltip across all charts
- Chartjs, plot data based with unequal time intervals
- Chartjs real time graph x axis movement
- Show image instead a point in a ChartJS scatter plot
- ChartJS x-axis show only months of year
- How to add ChartJS code in Html2Pdf to view image
- Why is ChartJS skipping an xAxis label in this snippet?
- Chartjs error : time scale: "time.format" is deprecated. Please use "time.parser" instead
- ChartJS xAxis label position
- Chart.js showing time (HH:MM:SS - 24 hour clock) on xAxis
- ChartJs Force scatter plot to be square shaped
- Plot lap times with Chart.js from time strings
- showing tooltips all the time in chartjs 2.4 not working
- chartjs time cartesian axis adapter and date library setup
- Stacked line chart not displaying correctly when Xaxis is time
- UnitStepSize for regular time interval with Chartjs
- ChartJS 2 How to globally remove xAxis gridLines?
More Query from same tag
- How can I format chart.js data labels while using chart.js datalabels plugin?
- How can I shade a portion of a ChartJS line grph=
- Can't find the way to calculate and output it
- How to reuse a Chartjs Chart component in with different Data and get past the **Canvas is already in use** error?
- chart.js 2.0 current mouse coordinates tooltip
- everything i put in the options of the Line charts doesnt work
- Unable to resolve path to module 'chartjs-plugin-stacked100'
- Adding different point style to each column from parsed csv in chart.js
- Angular canvas is undefined
- How can I show JSON data in Chart.js with Javascript if static values are working but dynamic from mySQL are not?
- How to prevent first/last bars from being cut off in a chart with time scale
- ChartJS dataset onclick deselect the rest
- Bar charts flickering issue in charts js
- How to change colors in react charts
- Angular Chart.js - Remove Moment.js as Dependency / Reduce Bundle Size
- Apply color only to lower part of Chart.js line chart
- Chartjs populate data with Axios response
- how to display last x float number value in chartjs
- how to highlight bar in ChartJS with onkeyup Input
- Is it possible to make 3D pie chart using chart.js?
- How to remove Grid lines except for zero line and border Chartjs?
- Django Multiple chartJs chats in a page
- Transform JSON data for ChartJS
- Using data from model in Chart.js MVC c#
- Which Property do I need to edit, to change following Color?
- Synchronizing zoom between multiple charts
- Barchart show value to print
- Adding condition in ComponentDidMount to display chart data
- How does chart updating works within the context of react?
- Cleart Chart data upon ajax call