score:184
Accepted answer
You can achieve this by setting point's radius property in configuration options as follows:
var chartConfig = {
type: 'line',
options: {
elements: {
point:{
radius: 0
}
}
}
}
Tooltips for the points will also gone off.
score:0
I had the same problem, but I wanted to keep the hover option active. There is my solution:
const config = {
type: 'line',
data: {
datasets:[{
label: 'Température',
borderColor: 'rgb(255, 99, 132)',
data: tempE,
pointStyle: 'rect',
}]
},
options: {
elements:{
point:{
borderWidth: 0,
radius: 10,
backgroundColor: 'rgba(0,0,0,0)'
}
}
}
};
score:113
You can set the pointRadius
to zero.
var myChart = new Chart(
ctx, {
type: 'line',
data: {
labels: [...]
datasets: [
{
data: [...],
pointRadius: 0, # <<< Here.
}
]
},
options: {}
})
Source: stackoverflow.com
Related Query
- Hide points in ChartJS LineGraph
- How to hide some points inside my line graphic in React ChartJS 2?
- Skip decimal points on y-axis in chartJS
- Is it possible in chartjs to hide certain dataset legends?
- Adding Image inside Linechart points in ChartJs
- Chartjs hide data point labels
- ChartJS : How to leave just points without lines
- Hide labels on x-axis ChartJS
- Chartjs 2 scaling lots of data points
- Chartjs Line Color Between Two Points
- ChartJS hide labels on small screen sizes
- Hide gridlines in chartjs without the drawTicks
- ChartJS bar not showing up for simple data points
- ChartJs line chart - display permanent icon above some data points with text on hover
- Chartjs hide dataset legend v3
- How to make points in chartjs draggable?
- Add Commas to ChartJS Data Points
- ChartJS - handling of overlapping points in line chart
- How to add ChartJS code in Html2Pdf to view image
- Unable to hide Legend in Chartjs with PrimeFaces7.0
- ChartJS Annotation Hide /Show
- chartJS - points overplotting, jittering, noise?
- Points cut at half at the edges of top and bottom, at chartjs
- How to remove some points in chartjs
- Missing Tooltip for some data points using chartjs
- How do I add time sourced from an external source as an X axis to a ChartJS graph?
- Hide all scale labels in chartjs
- How to combine lines with different starting points in chartjs
- Chartjs not working with d3 from csv source
- how to hide specific dataset based on condition chartjs angular
More Query from same tag
- Tiny error in the ChartJs book
- Chart.js x axis date-time formatting fails
- Internet Explorer 11 Chart using random values to update
- Floating clone does not show in chrome if dragged element contains a chartjs component
- addData() dropped from latest chart.js 2.1.3 - whats up?
- charts disappear if rendered in hidden divs
- Unable to display multiple line charts in javascript
- Remove specific label
- Why is my Line Chart.JS starting in the middle?
- How to Reset a Chart of Chart.Js?
- Accessing conditionally rendered canvas element in React for plotting
- ng2-charts doughnut chart with different data per series
- Show bar with zero value in ChartJs v2
- chart.js radar pointLabel options not working
- React/Chartjs change data with a button
- How do I remove the y-axis labels from a graph?
- chart.js how to force min and max y axis values
- Fix ChartJS Values not Well Displayed
- chartjs Line chart Javascript
- Import data from Excel and use in Chart.js
- Inserting Graphs into DomPDF
- How to use Real time chart in react?
- Adjusting the font size and family of extra fillText labels in ChartJS
- How do I manipulate a specific tooltip value of a Chart.js pie chart?
- How can I create a long tail chart with chart.js
- Dynamically pass the JSON data in chartjs
- Tooltips displaying "rgb(0,0,0)" instead of label value on bar chart
- angular-chart.js : issue with pointHoverBorderColor property for line chart
- ChartJs chart won't update new values
- React Js and Chart Js (Line Chart)