Jump to content
  • Visualize.js requires jQuery when embedding a dashboard with a Heatmap Chart


    Paul Jimenez
    • Features: Charts, Dashboards Product: Visualize.js

    Issue:

    When you have a ad hoc view or dashboard with a heatmap chart in it and the dashboard is embedded in a dashboard using Visualize.js, you may get the following error:

    Can't render chart: 

    TypeError: jQuery is not a function 


    Solution:

    When you include the jQuery library in the html page, the error will not occur and the dashboard will load. You will also need to make the following changes:

     

    In scripts/bower_components/highcharts-pack/highcharts/highcharts.js at the end, add jQuery: jQuery to the extend call. In scripts/bower_components/highcharts-pack/highcharts/heatmap.js, change lines 684 and 690 to use Highcharts.jQuery instead of global jQuery variables.


    ref: 01571163


    User Feedback

    Recommended Comments

    There are no comments to display.



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...