django-nvd3
django-nvd3 copied to clipboard
data:87 Uncaught TypeError: chart.tooltipContent is not a function
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 !
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 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.
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.