Giter Site home page Giter Site logo

Comments (4)

LeeLenaleee avatar LeeLenaleee commented on August 22, 2024 1

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.

LeeLenaleee avatar LeeLenaleee commented on August 22, 2024

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.

anhln1998 avatar anhln1998 commented on August 22, 2024

@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.

anhln1998 avatar anhln1998 commented on August 22, 2024

@LeeLenaleee i fixed it thank you very much

from chart.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.