raphamorim/origami.js

new line chart API

Open

#40 opened on Sep 23, 2016

 (0 comments) (0 reactions) (0 assignees)JavaScript (61 forks)batch import
Hacktoberfest

Repository metrics

Stars
 (757 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

suggestion to work with multline

origami('#canvas').chartLine({
          labels: ["January", "February", "March", "April", "May", "June", "July"],
          datasets: [
                    {
                        data: [65, 59, 80, 81, 56, 30, 60],
                        points: true,
                        pointsColor: "red",
                        line: "1px dashed #000",
                    },
                    {
                        data: [5, 159, 20, 31, 56, 30, 60],
                        points: true,
                        pointsColor: "red",
                        line: "1px dashed #000",
                    }
                ]
                gridLines: {
                    vertical: false,
                    horizontal: false,
                },
}).draw();

Contributor guide