mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-07 04:39:06 +02:00
Do not draw line up on first point of line
This commit is contained in:
parent
dac859ec1c
commit
74c04a354a
@ -146,6 +146,11 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If First point, move to the point ahead of time (so a line doesn't get drawn up the left axis)
|
||||||
|
if (!index) {
|
||||||
|
ctx.moveTo(point._view.x, point._view.y);
|
||||||
|
}
|
||||||
|
|
||||||
// Draw a bezier line to the point
|
// Draw a bezier line to the point
|
||||||
if (vm.tension > 0 && index) {
|
if (vm.tension > 0 && index) {
|
||||||
ctx.bezierCurveTo(
|
ctx.bezierCurveTo(
|
||||||
|
Loading…
Reference in New Issue
Block a user