Code Monkey home page Code Monkey logo

chartjs-plugin-datasource's Issues

chartjs-plugin-datasource.js:172 Uncaught TypeError: helpers$2.isFinite is not a function

 {
      data: { url },
      plugins: [ChartDataSource],
      options: {
        animation: {
          duration: 0, // general animation time
        },
        plugins: {
          datasource: {
            type: "csv",

            url,
            delimiter: ",",
            rowMapping: "datapoint",
            datasetLabels: true,
            indexLabels: true,
            datapointLabels: false,
            datapointLabelMapping: {
              _dataset: 0,
              _index: 1,
              x: 1,
              y: 2,
            },
          },
        },
      },
    };

I get the following error Uncaught TypeError: helpers$2.isFinite is not a function when using the config above

Adding a line break to a data label imported from CSV

Thanks for writing this plugin! It definitely made life easier, but I was wondering how I can add a line break to a data label? For example, my data is like this.

,Subjects of Interest,Visitors
Female,41,68
Male,59,32

I'd like to add a line break to the label, Subjects of
Interest in my chart. Is there a way for me to do that within this plugin? Thanks!

New/empty line in csv brakes timeline

Hi,
Can you implement some trimming/sanitization of the csv - so the empty line won't crash chart?
When last line has '\n' on the end this produces empty data and charts start from beginning of the timescale.

date issues

date of my .xlsx is convert in number in the Chart but i want it to remain in the type data if somebody have an answer

File not found error

Hi,

I'm just trying to use the sample sheet-index.html and I got Failed to load resource: net::ERR_FILE_NOT_FOUND but the sample-index.xlsx is in the same folder, as I downloaded it.

Any idea?

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.