Comments (3)
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.
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.
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:
from chart.js-rangeslider.
Related Issues (17)
- Canvas context is not recognized by RangeSlider HOT 3
- RangeSlided chart size is huge compared to regular HOT 5
- The chart does not appear when using the slider
- Can't include in angular2
- slider fails if no pointBackgroundColor/pointBorderColor option is provided HOT 1
- Memory leak causes freezing of IE when rangeslider is used with a scatter chart with logarithmic Y axis HOT 1
- Slider max range nevers reaches last value
- Uncaught TypeError: Converting circular structure to JSON
- Problems with tooltip customization after applying range slider
- .noUiSlider.on('change', function () { }) event not working on some devices
- scope.chart.destroy is not a function HOT 6
- Demo doesnt recovery 2020 year data HOT 4
- npm package HOT 2
- Responsive option does not work properly HOT 1
- Not able to destroy rangeslider while updating chart HOT 2
- chartType only provides a line chart HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chart.js-rangeslider.