django-nvd3 icon indicating copy to clipboard operation
django-nvd3 copied to clipboard

data:87 Uncaught TypeError: chart.tooltipContent is not a function

Open guganselvaraj opened this issue 8 years ago • 3 comments

I'm a very beginner to django and stuck some where ! help me out !

The above issue is addressed here http://stackoverflow.com/questions/35125110/django-nvd3-chart-tooltipcontent-is-not-a-function, which i tried its perfectly fine on the local machine but when i deploy it on my production server the new installation of bower and its components happen where the new content.html and piechart.html has the same old chart.tooltipContent which should be replaced with the new one ! how would i do it on production deployment ???

FYI : My server is AWS : Elasticbeanstalk

How to perform the changes mentioned in this link : http://stackoverflow.com/questions/35125110/django-nvd3-chart-tooltipcontent-is-not-a-function in a production server ! please throw some light on it ! :D Because on every deployment it needs to be fixed which is vague !

guganselvaraj avatar Jul 17 '16 13:07 guganselvaraj

Change chart.tooltipContent to chart.tooltip.contentGenerator in the following files: 1.) pythonx.x/site-packages/nvd3/templates/content.html at line '54' and '63' 2.) pythonx.x/site-packages/nvd3/templates/piechart.html at line '18'

zeroq avatar Mar 22 '17 12:03 zeroq

@zeroq any other option rather than change the code in packages from python? Because if I commit my project to other env. that code is gone. Any other solution? I'm in a struggle to solve this problem.

pedrofaria09 avatar Apr 26 '19 15:04 pedrofaria09

Pull request to original Project is still open since several years: https://github.com/areski/python-nvd3/pull/137, that would be the best way to fix the problem.

zeroq avatar Apr 27 '19 16:04 zeroq