Comments (4)
To remove the point dots on the line, you need to pass in pointDot: false
from another object, not as a property on lineChartData
.
For example,
var lineChartData = {
labels : ["Year","Week","Current"],
datasets : [{
fillColor : "rgba(173,215,116,0.4)",
strokeColor : "#4a9c45",
pointColor : "rgba(220,220,220,1)",
pointStrokeColor : "#fff",
data : [2.5,3,4,5,10]
}]
};
var opts = { pointDot: false };
var myLine = new Chart(document.getElementById("chart").getContext("2d")).Line(lineChartData, opts);
from chart.js.
mikemedora: Thanks for asking this question as I was puzzling over it as well. Having gone back and looked at the documentation, knowing the answer already, I can see that it was mentioned. However, it really seems like an example in the documentation is in order!
Cheers,
Will
from chart.js.
I believe this is now documented on http://www.chartjs.org/docs/ search for pointDot
Recommending to close issue
from chart.js.
Yep you can change default options globally or a chart typespecific level.
Docs here:http://www.chartjs.org/docs/#getting-started-global-chart-configuration
from chart.js.
Related Issues (20)
- Moving from 4.3.0 to 4.3.1 break most of my already existing code due to types HOT 11
- Non-static registry HOT 2
- Doughnut chart legends issue in chart.js
- Partially missing line on time axis, regression in 4.3.1 HOT 11
- Toggle doughnut vs. label resizing HOT 4
- BorderRadius of Bar Chart issue on Firefox 116 HOT 5
- Release 4.3.3 missing tgz file HOT 7
- Rendering flowchart is wrong
- Superfluous value copies inside plugin options
- Vite giving chart.js ActiveElement import error HOT 1
- PackedCircle HOT 4
- Multiple charts freeze Firefox tab with maintainAspectRatio: false HOT 8
- The bars in the graphs which are having the exact values included in the tooltips are not accessible with keyboard keys. HOT 1
- chart.cjs blocked by CDN HOT 5
- How to use the Colors plugin? No docs/info :( HOT 1
- chart.hide(datasetIndex, dataIndex) not hiding bar
- Typo: Missing 's' in documentation of plugins.tooltip.textDirection HOT 3
- Compile for CDN (and SRI) HOT 4
- tooltip titleSpacing option has no effect HOT 3
- chartjs.org - Samples link broken HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chart.js.