score:1
yes you can actually do that. you want the horizontal marker line so you need to add this code inside your y-axis
plotlines: [{
color: '#ff0000',
width: 2,
value: .50 * 200 // the marker value will be 100
// or you can just set its value to 100
}]
Source: stackoverflow.com
Related Query
- Limit labels number on Chart.js line chart
- 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?
- How do I draw a vertical line on a horizontal bar chart with ChartJS?
- Draw a horizontal and vertical line on mouse hover in chart js
- How to draw Horizontal line on Bar Chart Chartjs
- In Stacked horizontal bar chart how to remove the vertical line in Chart.js?
- Angular-chart / line chart with multiple horizontal lines (margins)
- Chart.js horizontal line chart or modified horizontal bar chart
- change space between horizontal (grid) lines for line chart
- Chart.js - Horizontal line on Bar chart interferes with tooltip
- Chart.js - draw horizontal line in Bar Chart (type bar)
- ChartJS 2.9.4 can't overlay line data on Horizontal Bar chart
- Remove top horizontal line in a horizontal bar chart (Chart.js 2)
- Change horizontal line chart to vertical line
- Can't Draw Horizontal Line on Graph Using ChartJS Annotation Plugin and Primevue Chart
- Is there any way to remove extra space and Horizontal line from Bar chart of Chart.js?
- How to draw multiple color bars in a bar chart along a Horizontal Line using chart.js
- chart.js line chart and "correct" spacing between points? (i.e. horizontal position based on percent of width, not fixed)
- Drawing a horizontal line on a stacked bar chart on hover (chart js)
- Chart.js Draw a Stacked Bar Chart with Limit Line
- Plugin for custom horizontal line Y-axis marker on grid of a Line chart with Chart.js
- How to limit chart JS hover to take only one value from each line chart when zoomed out?
- Draw stacked horizontal bar chart with Average line using ChartJS
- ChartJS: Is this horizontal stacked bar and line graph multiaxis chart even possible?
- ChartJS - adding scroll to horizontal legend in Line chart
- Chart.js - How to set a line chart dataset as disabled on load
- Chart Js Change Label orientation on x-Axis for Line Charts
- Remove the vertical line in the chart js line chart
- Moving vertical line when hovering over the chart using chart.js
More Query from same tag
- Chart.js remove border from x/y Axis
- How can I use an array of {x,y} objects to make a chart?
- Getting the postion of the y-axis labels in chartJS
- Chart.js sets canvas dimentions to 0x0 and do not display anything
- Highest (green) and Lowest (red) coordinates plot using Chart.Js
- Css style not working well when resizing chart height in angular application
- Chartjs tooltip location when enlarged
- ChartJS 3.7.1 tooltip callback, get label value for the next index
- add value to Line chart.js
- How to Create a Custom Logarithmic Axis in Chart.js
- Hover over chart shows multiple datapoints
- Issue with HTML2Canvas - Green overlay while exporting
- ChartJs - Adding padding after Y- Axis
- Chart.js noob - Can't get anything to display
- How to get line x value from Label chart js
- chart.js onAnimationProgress progress percentage
- AJAX request not working unless alert() is used
- How to add label square to Bar Chart using Chart.js
- HTML in Chart.js labels
- TypeError Not reading property correctly
- Change color according to data in pie chart.js
- Chart js cut the title and the legends
- How to make Chart.js with dynamic months on x-axis
- On hover bar is overlapped by label chartjs
- Chart.JS change Text Color
- How to change bar color acording to label value in chartjs
- Update chart in Chart js
- How to render multiple Chart.JS charts on the same page with AJAX data and variables
- Data not displaying properly in Chart.js line chart
- The chart is not getting shown when page is loaded