score:1
Accepted answer
you have to specify the x axis of each of the wait data.
paste it like this in your code:
data: [
{ x: "08:00", y: "00:28" },
{ x: "09:00", y: "00:45" },
{ x: "10:00", y: "00:15" },
{ x: "11:00", y: "00:12" },
{ x: "12:00", y: "00:22" },
{ x: "13:00", y: "00:55" },
{ x: "14:00", y: "00:10" }
]
Source: stackoverflow.com
Related Query
- Chart.js two y axes line chart tooltip value incorrect for 2nd y axis
- show label in tooltip but not in x axis for chartjs line chart
- Obtain max value of y axis of line chart rendered with Chart.js
- How to hide the y axis and x axis line and label in my bar chart for chart.js
- Map event position to y axis value in chartjs line chart
- how to change Y axis value dynamically based on user input in Chartjs for Line chart?
- Add a text as tooltip for each point on a line chart
- Minimum value for x Axis doesn't work for horizontal bar chart | ChartJS
- How to sort XY line chart tooltip items based on value and add thousands separators?
- Chart.js - Connect two datasets in a line chart at same y value
- chart.JS i want to put different color for each Y axis value grid line color
- How to show tooltip value of all data falling on the same axis in chart js?
- How do you set x and y axis and Title for a line chart using charts.js?
- Vue Chart.js -- can I give a line chart a default value for missing data?
- How to start Y Axis Line at 0 from right for negative values in chart js 2?
- getting additional value fields from data source for dx.chartjs doughnut chart
- Disable tooltip for Line chart for one line
- Line chart plotting multiple points for duplicate data on x and y axis using chart.js
- Using custom dataformat in chart.js for Multi Axis Line Chart
- Chart js assign default value for y axis
- How to draw a line in line chart for single value in Charts.JS
- How to set max and min value for Y axis
- Chart Js Change Label orientation on x-Axis for Line Charts
- ChartJS New Lines '\n' in X axis Labels or Displaying More Information Around Chart or Tooltip with ChartJS V2
- Chart.js how to show cursor pointer for labels & legends in line chart
- Chartjs 2 - Stacked bar and unstacked line on same chart with same y axis
- Chart.js - line chart with two yAxis: "TypeError: yScale is undefined"
- ChartJS Line Graph - Multiple Lines, Show one Value on Tooltip
- How to add second Y-axis for Bar and Line chart in Chart.js?
- chart.js Line chart with different background colors for each section
More Query from same tag
- Charts.js graph not scaling to canvas size
- Chart.js only displays font changes upon hover
- how to remove odd number from yaxes in chartjs using angular?
- How to change grid line width for one specific line
- How to put arguments in a jchart.Chart class
- HTML minification via Gulp.js is breaking my Chart.js chart in my Angular app
- White space at start and end of data with time scale in chart.js
- How to display the labels in doughnut chart using ng2 charts?
- Stacked horizontal bar chart along total count with chart.js
- How to reduce the distance between yAxes in Chart.js?
- Chart.js how to set start and end values to plot
- Chart.js 2.0: How to change title of tooltip
- PrimeFaces: ChartJs stacked bar chart label removal
- Blank PNG image using Chart JS . toBase64Image() function
- Changing borderDash for specific gridLines in radar chart
- chartjs how to apply after animation
- JQuery insertAfter() Method only works once when inserting a Chart.js chart
- Change mysql x-axes date to day in chart.js
- Using data from API with Chart JS
- react-chartjs-2 how to set multiple background levels within a line chart
- Change mouse cursor to pointer in charts js
- What is the correct way to send 2 parameters in socket.io using lambdas? (I get undefined when printing in client and server)
- Chart js Datalabels styling
- ChartJs - width scale of chart area and label area
- Chart.js line chart with correctly spaced x labels
- How to change the Y-Axis to show $ in graph
- dynamically add canvas for chart.js
- Alter angular js chart wrapper to support drawing custom lines
- How to skip labels on x-axes?
- How to use segment property to color line / border color based on value in chart js?