score:30
Accepted answer
The properties you are looking for actually are in the time
attribute :
options: {
scales: {
xAxes: [{
type: "time",
time: {
min: 1471174953000,
max: 1473853353000
}
}]
}
}
score:5
This was changed in 3.0
https://www.chartjs.org/docs/next/getting-started/v3-migration#options
scales.[x/y]Axes.time.max was renamed to scales[id].max
scales.[x/y]Axes.time.min was renamed to scales[id].min
Source: stackoverflow.com
Related Query
- How to set the xAxes min and max values of time cartesian chart in Chart.js
- Chart.js timescale: set min and max on xAxes
- How to set max and min value for Y axis
- ChartJS: How to set fixed Y axis max and min
- ChartJS automatically scaled chart has undefined min and max
- How to set min max for x axis depend on data with Chartjs and Spring Boot?
- min and max tag is not showing in chart chart.js
- How to set only min and max values in y-axis (chart js)
- In Chart.js set chart title, name of x axis and y axis?
- Set min, max and number of steps in radar chart.js
- Hide min and max values from y Axis in Chart.js
- Chartjs: how to show only max and min values on y-axis
- How can I display the xAxes and yAxes data in the tooltip, Chart JS?
- Chartjs v2.5 - only show min and max on scale, absolute positioning on scale
- How do I force Chart.js axes min and max with react-chartjs-2?
- Chartjs - Set start and end value into a Bar Chart
- Setting up min and max in chartjs did not work
- How to set max smaller than min in ChartJS
- Bar chart with min height and zero values - ChartJs
- Setting min and max values chart.js
- Unable to set width and height on canvas in chart js
- Set max value of chart.js bar chart
- set my chart min yaxis to 0
- How do you set x and y axis and Title for a line chart using charts.js?
- Chart.js - Same min and max value of two charts
- How to set 3 axis in google chart (V-Axis Left as Qty, V-Axis Right as Series Column and H-Axis as TimeOrder)?
- ChartJs: x-axes min and max value not working
- chart.js how to force min and max y axis values
- Chartjs gradient background color based on min and max values
- How can i add min and max range horizontal line in angular-chart.js
More Query from same tag
- Moving the zerolines in ChartJS scatter chart
- How can I style ChartJS to always be at the bottom of a div?
- Redraw the old donut and create a new one by clicking on each color Chart.js
- Charting Commodity Data - Issue getting the dates and values in JSON
- Chart.js polar chart
- Cannot use npm module react-chartjs with React
- ChartJS sees date in string as numbers
- How can I remove two labels from my legend with an alternative to item.datasetIndex !== 1 && item.datasetIndex !== 4; ? (Charts.js)
- Hide Legend in Chart.js V3.7.1
- Chart.js - How do I dynamically change bar's stack
- Load data into chartjs using promises in vue.js
- start y-axis from 0 in ng2-charts
- Is there a way to make a view run without having to show the view in the browser in laravel?
- How to add datas to chart js from my Array<number>? In Ionic3
- Chart.js : How I change the x axes ticks labels alignment in any sizes?
- Chartjs Timestamp to Datetime labels
- Why are more columns on one labels in Angular ChartJS?
- Syntax error : Cannot use import statement outside a module in Vue2 chart js
- Defining y-starting point for floating horizontal bar charts in Chart.js?
- Chart.js canvas, how can I swap data without the previous data affecting my hover events?
- Chart.JS: How can I only display data labels when the bar width is big enough for the text?
- Chartjs Doughnut disappears
- Chart.js Doughnut with rounded edges and text centered
- How to change axis font in PrimeFaces and Chart.js
- react-chartjs-2 Line Chart not updating with State
- How to increase size and family in a radar's Chartjs label
- how can i use inline plugin inner title for chart js?
- x-Axis not working because I'm not using correctly moment.js
- Chart.js vertically symmetrical chart
- Chartjs remove text striking on legend