• Sudhakar's avatar
    Sudhakar, Hemanth | Added a config called 'sensitivity' for the point so that… · 37c6d721
    Sudhakar authored
    Sudhakar, Hemanth | Added a config called 'sensitivity' for the point so that click sensitivity can be configured.
    
    Right now, the click area of a point is hard coded in the code and in high pixel density devices (iPad) this is not enough. Have modified the data.js (c3_chart_internal_fn.dist) function to calculate the distance between the two points and compare it with the configured value (which is passed to c3.generate method along with other config)
    
     Example
    
             point: {
                 show: true,
                 r: 5,
                 sensitivity: 20
             },
    37c6d721
Name
Last commit
Last update
extensions Loading commit data...
htdocs Loading commit data...
spec Loading commit data...
src Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
.jshintrc Loading commit data...
.travis.yml Loading commit data...
Gruntfile.coffee Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
bower.json Loading commit data...
c3.css Loading commit data...
c3.js Loading commit data...
c3.min.css Loading commit data...
c3.min.js Loading commit data...
component.json Loading commit data...
package.json Loading commit data...