Support » Plugin: M Chart » Bubble chart throws “error 17”

  • Resolved Patrick


    When I try to set the chart type to Bubble, the Publish / Update button becomes greyed out and the following error appears in the JS console:

    highcharts.js?ver=1.6.2:10 Uncaught Error: Highcharts error #17:
        at Object.a.error (
        at a.Chart.initSeries (
        at Array.forEach (native)
        at a.each (
        at a.Chart.firstRender (
        at a.Chart.init (
        at a.Chart.getArgs (
        at a.Chart (
        at a.fn.init.G.jQuery.G.jQuery.fn.highcharts (

    According to the supplied URL (, “error 17” means:

    The requested series type does not exist
    This error happens when you are setting chart.type or series.type to a series type that isn’t defined in Highcharts. A typical reason may be that your are missing the extension file where the series type is defined, for example in order to run an arearange series you need to load the highcharts-more.js file.

    Any assistance would be appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I found a work-around.

    In m-chart/components/class-m-chart-highcharts.php, I changed this:

    if ( 'bubble' == $this->post_meta['type'] ) {
        wp_enqueue_script( 'highcharts-more' );

    to this:

    // if ( 'bubble' == $this->post_meta['type'] ) {
        wp_enqueue_script( 'highcharts-more' );
    // }

    ie, I forced the highcharts-more script to always load. That made it work.

    (I think the issue is probably more to do with the highcharts-more script not being enqueued in the admin screens when the chart type is changed to Bubble. I’m guessing it’s an AJAX thing.)

    Plugin Author methnen


    Nice find Patrick. I need to adjust that. The not loading it all the time was meant for the front end.

    So this would be preserve that:

    if ( 'bubble' == $this->post_meta['type'] || is_admin() ) {
        wp_enqueue_script( 'highcharts-more' );

    I’ll make sure this gets patched in the next version.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Bubble chart throws “error 17”’ is closed to new replies.