Giter Club home page Giter Club logo

chart.funnel.js's People

Contributors

xch89820 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

chart.funnel.js's Issues

Legend align

Hi dear, Thank you for your high-quality code chart. There is an issue:
funnel legend algin doesn't work. Can you fix it or help me out to fix this?
Thanks

bower "main" field cannot contain minified files

Hi,

Pls, just change "main": "dist/chart.funnel.min.js", to "main": "dist/chart.funnel.js", to solve the error on install

[user@linux Chart.Funnel.js]$ bower install
bower invalid-meta The "main" field cannot contain minified files

Option to disable sort?

Hi, when showing a funnel with a predetermined order, like that of a defined sequence of stages, is there a way to disable the sort all together? As far as I can tell, the sort option checking is not strict. If it's not === asc, then it's sorted descending regardless of what's passed including false.

In my case, my stages are predetermined and the funnel needs to show the number of tickets at each stage. Showing "New" tickets label anywhere but the top of the funnel is confusing. Likewise, Closed tickets must be the bottom of the funnel as the end stage. (New -> Requesting Info -> Resolved -> Closed)

Chart.defaults.global.plugins missing

Chart.defaults.global.plugins seems to be removed by chartjs-funnel ? why is that?

chartjs-funnel ver 1.0.5
chartjs ver 2.7.2

before chartjs-funnel added:

chrome_2018-03-08_11-23-51

after chartjs-funnel added:

chrome_2018-03-08_11-24-25

tooltip is not working when I include chart.funnel.js along chartJS 2.5 bundle.js

I dont know what is the problem but I'm facing a lot of issues when I combine both,
Initially I created my charts with the basic ones provided in chartJS, and they are all configured how I want colors, tooltip, cursor change etc,
Now when I include Chart.funnel.js my tooltip doesn't work, but at the same time other basic charts tooltip is working,
Can you please help me how to solve this.
Thank you

on hover: Uncaught TypeError: element.getCenterPoint is not a function

chartjs v 2.7.2
chartjs-funnel v 1.0.5

Uncaught TypeError: element.getCenterPoint is not a function
    at http://yeti/libraries/chart.js/dist/Chart.js?s=1519940896:5922:24
    at parseVisibleItems (http://yeti/libraries/chart.js/dist/Chart.js?s=1519940896:5881:5)
    at getNearestItems (http://yeti/libraries/chart.js/dist/Chart.js?s=1519940896:5917:2)
    at nearest (http://yeti/libraries/chart.js/dist/Chart.js?s=1519940896:6087:23)
    at Chart.getElementsAtEventForMode (http://yeti/libraries/chart.js/dist/Chart.js?s=1519940896:4494:12)
    at ChartElement.handleEvent (http://yeti/libraries/chart.js/dist/Chart.js?s=1519940896:8936:28)
    at Chart.eventHandler (http://yeti/libraries/chart.js/dist/Chart.js?s=1519940896:4680:26)
    at listener (http://yeti/libraries/chart.js/dist/Chart.js?s=1519940896:4609:21)
    at HTMLCanvasElement.proxies.(anonymous function) (http://yeti/libraries/chart.js/dist/Chart.js?s=1519940896:10917:4)
               if (typeof options.tooltips.callbacks.title === 'undefined') {
			options.tooltips.callbacks.title = function (tooptipItem, data) {
				return '';
			};
		}
		if (typeof options.tooltips.callbacks.label === 'undefined') {
			options.tooltips.callbacks.label = function (tooltipItem, data) {
				return 'test';
			};
                 }

Bower not working

Hi there

Thank you for your plugin. I think bower install it's not working with it. I'm trying:
bower install chartjs-funnel --save

And it says 'don't found'

How to make it work on ReactJS ?

Hey guys

I'm trying to use ChartFunnel on a project using ReactJS. I've tried using some things that i saw in this issue but unfortunatelly didn't have much success.
The console doesn't show any errors, but the chart doesn't render.
Does anyone achieved something with React and ChartFunnel ?

Thanks for the help :)

TypeError: element.getCenterPoint is not a function

Hi, thank you for this great extension.

I can't run the demo example in my angular 4 application. Getting the following error on chart hover:
"ERROR TypeError: element.getCenterPoint is not a function"

The issue arises when I'm NOT using bundled js. So I import the following files:
"../node_modules/chart.js/dist/Chart.js",
"../node_modules/chartjs-funnel/dist/chart.funnel.js"

screenshot from 2017-07-27 10 49 41

What am I doing wrong?

chartjs-funnel doesn't work with chartjs-plugin-datalabels

chartjs-funnel v 1.0.5
chartjs v 2.7.2
chartjs-plugin-datalabesl v 0.2.0
https://github.com/chartjs/chartjs-plugin-datalabels

chartjs-plugin-datalabels.js?s=1515881805:110 Uncaught TypeError: Cannot read property 'x' of null
    at orient (chartjs-plugin-datalabels.js?s=1515881805:110)
    at Object.fallback [as positioner] (chartjs-plugin-datalabels.js?s=1515881805:245)
    at coordinates (chartjs-plugin-datalabels.js?s=1515881805:313)
    at Label.draw (chartjs-plugin-datalabels.js?s=1515881805:484)
    at Object.afterDatasetDraw (chartjs-plugin-datalabels.js?s=1515881805:739)
    at Object.notify (Chart.js?s=1519940896:6754)
    at Chart.drawDataset (Chart.js?s=1519940896:4452)
    at Chart.drawDatasets (Chart.js?s=1519940896:4425)
    at Chart.draw (Chart.js?s=1519940896:4389)
    at Chart.render (Chart.js?s=1519940896:4347)

  | orient | @ | chartjs-plugin-datal…js?s=1515881805:110
-- | -- | -- | --
  | fallback | @ | chartjs-plugin-datal…js?s=1515881805:245
  | coordinates | @ | chartjs-plugin-datal…js?s=1515881805:313
  | draw | @ | chartjs-plugin-datal…js?s=1515881805:484
  | afterDatasetDraw | @ | chartjs-plugin-datal…js?s=1515881805:739
  | notify | @ | Chart.js?s=1519940896:6754
  | drawDataset | @ | Chart.js?s=1519940896:4452
  | drawDatasets | @ | Chart.js?s=1519940896:4425
  | draw | @ | Chart.js?s=1519940896:4389
  | render | @ | Chart.js?s=1519940896:4347
  | callback | @ | Chart.js?s=1519940896:9876
  | advance | @ | Chart.js?s=1519940896:3773
  | startDigest | @ | Chart.js?s=1519940896:3746
  | (anonymous) | @ | Chart.js?s=1519940896:3728
  | requestAnimationFrame (async) |   |  
  | requestAnimationFrame | @ | Chart.js?s=1519940896:3726
  | startDigest | @ | Chart.js?s=1519940896:3754
  | (anonymous) | @ | Chart.js?s=1519940896:3728
  | requestAnimationFrame (async) |   |  
  | requestAnimationFrame | @ | Chart.js?s=1519940896:3726
  | startDigest | @ | Chart.js?s=1519940896:3754
  | (anonymous) | @ | Chart.js?s=1519940896:3728
  | requestAnimationFrame (async) |   |  
  | requestAnimationFrame | @ | Chart.js?s=1519940896:3726
  | startDigest | @ | Chart.js?s=1519940896:3754
  | (anonymous) | @ | Chart.js?s=1519940896:3728
  | requestAnimationFrame (async) |   |  
  | requestAnimationFrame | @ | Chart.js?s=1519940896:3726
  | startDigest | @ | Chart.js?s=1519940896:3754
  | (anonymous) | @ | Chart.js?s=1519940896:3728
  | requestAnimationFrame (async) |   |  
  | requestAnimationFrame | @ | Chart.js?s=1519940896:3726
  | startDigest | @ | Chart.js?s=1519940896:3754
  | (anonymous) | @ | Chart.js?s=1519940896:3728
  | requestAnimationFrame (async) |   |  
  | requestAnimationFrame | @ | Chart.js?s=1519940896:3726
  | startDigest | @ | Chart.js?s=1519940896:3754
  | (anonymous) | @ | Chart.js?s=1519940896:3728
  | requestAnimationFrame (async) |   |  
  | requestAnimationFrame | @ | Chart.js?s=1519940896:3726
  | startDigest | @ | Chart.js?s=1519940896:3754
  | (anonymous) | @ | Chart.js?s=1519940896:3728
  | requestAnimationFrame (async) |   |  
  | requestAnimationFrame | @ | Chart.js?s=1519940896:3726
  | startDigest | @ | Chart.js?s=1519940896:3754
  | (anonymous) | @ | Chart.js?s=1519940896:3728
  | requestAnimationFrame (async) |   |  
  | requestAnimationFrame | @ | Chart.js?s=1519940896:3726
  | startDigest | @ | Chart.js?s=1519940896:3754
  | (anonymous) | @ | Chart.js?s=1519940896:3728
  | requestAnimationFrame (async) |   |  
  | requestAnimationFrame | @ | Chart.js?s=1519940896:3726
  | startDigest | @ | Chart.js?s=1519940896:3754
  | (anonymous) | @ | Chart.js?s=1519940896:3728
  | requestAnimationFrame (async) |   |  
  | requestAnimationFrame | @ | Chart.js?s=1519940896:3726
  | startDigest | @ | Chart.js?s=1519940896:3754
  | (anonymous) | @ | Chart.js?s=1519940896:3728
  | requestAnimationFrame (async) |   |  
  | requestAnimationFrame | @ | Chart.js?s=1519940896:3726
  | startDigest | @ | Chart.js?s=1519940896:3754
  | (anonymous) | @ | Chart.js?s=1519940896:3728
  | requestAnimationFrame (async) |   |  
  | requestAnimationFrame | @ | Chart.js?s=1519940896:3726
  | startDigest | @ | Chart.js?s=1519940896:3754
  | (anonymous) | @ | Chart.js?s=1519940896:3728
  | requestAnimationFrame (async) |   |  
  | requestAnimationFrame | @ | Chart.js?s=1519940896:3726
  | startDigest | @ | Chart.js?s=1519940896:3754
  | (anonymous) | @ | Chart.js?s=1519940896:3728
  | requestAnimationFrame (async) |   |  
  | requestAnimationFrame | @ | Chart.js?s=1519940896:3726
  | startDigest | @ | Chart.js?s=1519940896:3754
  | (anonymous) | @ | Chart.js?s=1519940896:3728
  | requestAnimationFrame (async) |   |  
  | requestAnimationFrame | @ | Chart.js?s=1519940896:3726
  | startDigest | @ | Chart.js?s=1519940896:3754
  | (anonymous) | @ | Chart.js?s=1519940896:3728
  | requestAnimationFrame (async) |   |  
  | requestAnimationFrame | @ | Chart.js?s=1519940896:3726
  | startDigest | @ | Chart.js?s=1519940896:3754
  | (anonymous) | @ | Chart.js?s=1519940896:3728
  | requestAnimationFrame (async) |   |  
  | requestAnimationFrame | @ | Chart.js?s=1519940896:3726
  | startDigest | @ | Chart.js?s=1519940896:3754
  | (anonymous) | @ | Chart.js?s=1519940896:3728
  | requestAnimationFrame (async) |   |  
  | requestAnimationFrame | @ | Chart.js?s=1519940896:3726
  | startDigest | @ | Chart.js?s=1519940896:3754
  | (anonymous) | @ | Chart.js?s=1519940896:3728
  | requestAnimationFrame (async) |   |  
  | requestAnimationFrame | @ | Chart.js?s=1519940896:3726
  | startDigest | @ | Chart.js?s=1519940896:3754
  | (anonymous) | @ | Chart.js?s=1519940896:3728
  | requestAnimationFrame (async) |   |  
  | requestAnimationFrame | @ | Chart.js?s=1519940896:3726
  | startDigest | @ | Chart.js?s=1519940896:3754
  | (anonymous) | @ | Chart.js?s=1519940896:3728
  | requestAnimationFrame (async) |   |  
  | requestAnimationFrame | @ | Chart.js?s=1519940896:3726
  | startDigest | @ | Chart.js?s=1519940896:3754
  | (anonymous) | @ | Chart.js?s=1519940896:3728
  | requestAnimationFrame (async) |   |  
  | requestAnimationFrame | @ | Chart.js?s=1519940896:3726
  | startDigest | @ | Chart.js?s=1519940896:3754
  | (anonymous) | @ | Chart.js?s=1519940896:3728
  | requestAnimationFrame (async) |   |  
  | requestAnimationFrame | @ | Chart.js?s=1519940896:3726
  | startDigest | @ | Chart.js?s=1519940896:3754
  | (anonymous) | @ | Chart.js?s=1519940896:3728
  | requestAnimationFrame (async) |   |  
  | requestAnimationFrame | @ | Chart.js?s=1519940896:3726
  | startDigest | @ | Chart.js?s=1519940896:3754
  | (anonymous) | @ | Chart.js?s=1519940896:3728
  | requestAnimationFrame (async) |   |  
  | requestAnimationFrame | @ | Chart.js?s=1519940896:3726
  | startDigest | @ | Chart.js?s=1519940896:3754
  | (anonymous) | @ | Chart.js?s=1519940896:3728
  | requestAnimationFrame (async) |   |  
  | requestAnimationFrame | @ | Chart.js?s=1519940896:3726
  | startDigest | @ | Chart.js?s=1519940896:3754
  | (anonymous) | @ | Chart.js?s=1519940896:3728
  | requestAnimationFrame (async) |   |  
  | requestAnimationFrame | @ | Chart.js?s=1519940896:3726
  | startDigest | @ | Chart.js?s=1519940896:3754
  | (anonymous) | @ | Chart.js?s=1519940896:3728
  | requestAnimationFrame (async) |   |  
  | requestAnimationFrame | @ | Chart.js?s=1519940896:3726
  | startDigest | @ | Chart.js?s=1519940896:3754
  | (anonymous) | @ | Chart.js?s=1519940896:3728
  | requestAnimationFrame (async) |   |  
  | requestAnimationFrame | @ | Chart.js?s=1519940896:3726
  | addAnimation | @ | Chart.js?s=1519940896:3705
  | render | @ | Chart.js?s=1519940896:4354
  | update | @ | Chart.js?s=1519940896:4243
  | construct | @ | Chart.js?s=1519940896:3944
  | Chart | @ | Chart.js?s=1519940896:6215



chart.funnel.js is not working with [email protected]

I've been playing around with the chart.js library and up until now everything has been working. I want to add the funnel chart plugin but it doesnt seem to work with chartjs 2.8. I keep on getting the error "funnel" is not a chart type.
here are the resources i am including:

https://cdn.jsdelivr.net/npm/[email protected]
https://cdn.jsdelivr.net/npm/[email protected]/dist/chart.funnel.js
https://cdn.jsdelivr.net/npm/[email protected]

I tried changing their order but still nothing. Any idea why this is happening?

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.