GithubHelp home page GithubHelp logo

Comments (3)

biiim avatar biiim commented on June 2, 2024 1

Just downloaded the package as is and had to modify 2 things in RangeSlider-all.min.js on line 18617 to get the test-1.html chart to open:

nD.pointBackgroundColor=nD.pointBackgroundColor.splice(min,max-min||1)
to
nD.pointBackgroundColor=nD.pointBackgroundColor
and
nD.pointBorderColor=nD.pointBorderColor.splice(min,max-min||1)
to
nD.pointBorderColor=nD.pointBorderColor

Error in the console(Chrome 81) is : Uncaught TypeError: Cannot read property 'splice' of undefined at Object._getData (RangeSlider-all.min.js:18617) at Object._create (RangeSlider-all.min.js:18617) at new RangeSliderChart (RangeSlider-all.min.js:18617) at test-1.html:133

Chart loads find after making the 2 changes, just possibly missing colour as I likely just removed the 2 properties being passed correctly

from chart.js-rangeslider.

spmsh avatar spmsh commented on June 2, 2024

I got the same error with the minimal version.
Switching to the RangerSlider-all.min.js seems to fix the problem.

I believe it has to do with jQuery version. The one I'm using when I get the error is v3.3.1 as opposed to the "All" version that includes jQuery v2.1.3

Hope this helps.

from chart.js-rangeslider.

jacekpietrzyk1 avatar jacekpietrzyk1 commented on June 2, 2024

I have the same error in the console. No matter which version (3.31 or 2.1.3) of jQuery is included. Any help, please?

Edit:
problem solved by copying this specific js files from the header section of the fiddle example:

<script type="text/javascript" src="https://gitcdn.link/cdn/schme16/Chart.js-RangeSlider/2dc49a0980ca04ca2690bc5f1c9e3644e4207b5a/dist/RangeSlider-all.min.js"></script> <script type="text/javascript" src="https://gitcdn.link/cdn/schme16/Chart.js-RangeSlider/2dc49a0980ca04ca2690bc5f1c9e3644e4207b5a/dist/RangeSlider-all.minjs"></script>

from chart.js-rangeslider.

Related Issues (17)

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.