Comments (4)
This is the intended behavior since we don't know which lines we need to draw otherwise, all the datapoints are in a single dataset and then we draw a line through each point in that dataset in order of the entries.
If you only want the horizontal lines you either need to write a custom plugin to draw them or put the values in separate datasets.
from chart.js.
You have the option showLine
set to true
this will draw the line between the points. If you remove this option or set it to false it will disappear:
https://jsfiddle.net/x3jcgh7r/
from chart.js.
@LeeLenaleee
I am still using showline to draw straight lines, but why do I only draw lines from A to D and B to C, but line from B to D appears?
Can you explain it to me?
from chart.js.
@LeeLenaleee i fixed it thank you very much
from chart.js.
Related Issues (20)
- Not possible to set min/max for timeseries axis HOT 1
- BorderOffset Not working HOT 2
- Your React Library is No Longer Maintained HOT 3
- Legend title does not fit HOT 1
- Error when trying to run locally the chart.js samples
- pie chart segment stays selected after chart update
- Plot issue in graph on click event HOT 1
- Line chart stacking (via dataset stack) doesn't work on initial render
- $context not on type Element when accessing activeElements from click event
- ChartJS crashes sometimes when rendering multiple line charts on same chart
- Odd number vs even number with different behavior HOT 4
- Missing types for RadialLinearScale xCenter & yCenter properties
- Inconsistent spacing below chart title
- Chart scales down to nothing, restores to full size, and loops through rescaling with combination of browser and OS zoom HOT 3
- fix: problem with ChartOptions type
- Max outer limit for polar area chart HOT 1
- Tooltip mode x on pie chart gives error HOT 1
- Utf8 emojis from innerHTML are sometimes grayed HOT 2
- htmlLegend is missing in PluginOptionsByType in TypeScript 5.5.3 definitions 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.