Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • ferino Friend
    #197916

    Hello,
    I configure geochart module…
    All is working, but:
    I set legend position to “No legend is displayed”, but ‘legend bar’ is still displayed…

    Thanks for solution.

    Sorry for my english.

    Fero

    Ninja Lead Moderator
    #535673

    Please provide the url of the site you’re working on here, I will take a look and help you out.

    ferino Friend
    #535820

    http://www.cartechtrans.sk/o-nas

    Ninja Lead Moderator
    #535839

    You can try to fix this problem with the solution below.

    Open the modules/mod_jagooglechart/mod_jagooglechart.php file, change:

    // Legend Settings
    $options->legend = new stdClass();
    $options->legend->position = $params->get('legend_position','right');
    $options->legend->textStyle = new stdClass();
    $options->legend->textStyle->fontName = $params->get('legend_font',$font);
    $options->legend->textStyle->fontSize = $params->get('legend_textSize',9);
    $options->legend->textStyle->color = $params->get('legend_textColor','#000000');

    To:

    // Legend Settings
    if($params->get('legend_position','right') != 'none') {
    $options->legend = new stdClass();
    $options->legend->position = $params->get('legend_position','right');
    $options->legend->textStyle = new stdClass();
    $options->legend->textStyle->fontName = $params->get('legend_font',$font);
    $options->legend->textStyle->fontSize = $params->get('legend_textSize',9);
    $options->legend->textStyle->color = $params->get('legend_textColor','#000000');
    }

    ferino Friend
    #535854

    Thanks for answer.
    I tried, but it did not help.
    Legend is now displayed on the left before the right …

    Ninja Lead Moderator
    #536036

    <em>@ferino 428213 wrote:</em><blockquote>Thanks for answer.
    I tried, but it did not help.
    Legend is now displayed on the left before the right …</blockquote>

    You can try with this tweak again

    Open the modules/mod_jagooglechart/mod_jagooglechart.php file

    Find and change


    case 'geo_chart':
    $chart = 'GeoChart';
    //Options
    $options->displayMode = $params->get('geo_displayMode','regions');
    $options->region = $params->get('geo_region','world');
    $options->resolution = $params->get('geo_resolution','countries');
    $options->enableRegionInteractivity = $params->get('geo_enableRegionInteractivity', 1) ? true : false;
    $options->keepAspectRatio = $params->get('geo_keepAspectRatio', 1) ? true : false;
    $options->markerOpacity = (float) $params->get('geo_markerOpacity', 1.0);
    $options->colorAxis = new stdClass();
    $minValue = $params->get('geo_colorAxis_minValue', null);
    $maxValue = $params->get('geo_colorAxis_maxValue', null);
    if(is_null($minValue)) {
    $options->colorAxis->minValue = $minValue;
    }
    if(is_null($maxValue)) {
    $options->colorAxis->maxValue = $maxValue;
    }
    $options->colorAxis->colors = array($params->get('geo_colorAxis_fromColor', '#FFFFFF'), $params->get('geo_colorAxis_toColor', '#35A339'));
    $options->datalessRegionColor = $params->get('datalessRegionColor', '#F5F5F5');
    /*$options->magnifyingGlass = new stdClass();
    $options->magnifyingGlass->enable = true;
    $options->magnifyingGlass->zoomFactor = 5.0;*/
    break;

    To


    case 'geo_chart':
    $chart = 'GeoChart';
    //Options
    $options->displayMode = $params->get('geo_displayMode','regions');
    $options->region = $params->get('geo_region','world');
    if ($params->get('legend_position','right')=="none") {
    $options->legend = $params->get('legend_position','right');
    }
    $options->resolution = $params->get('geo_resolution','countries');
    $options->enableRegionInteractivity = $params->get('geo_enableRegionInteractivity', 1) ? true : false;
    $options->keepAspectRatio = $params->get('geo_keepAspectRatio', 1) ? true : false;
    $options->markerOpacity = (float) $params->get('geo_markerOpacity', 1.0);
    $options->colorAxis = new stdClass();
    $minValue = $params->get('geo_colorAxis_minValue', null);
    $maxValue = $params->get('geo_colorAxis_maxValue', null);
    if(is_null($minValue)) {
    $options->colorAxis->minValue = $minValue;
    }
    if(is_null($maxValue)) {
    $options->colorAxis->maxValue = $maxValue;
    }
    $options->colorAxis->colors = array($params->get('geo_colorAxis_fromColor', '#FFFFFF'), $params->get('geo_colorAxis_toColor', '#35A339'));
    $options->datalessRegionColor = $params->get('datalessRegionColor', '#F5F5F5');
    /*$options->magnifyingGlass = new stdClass();
    $options->magnifyingGlass->enable = true;
    $options->magnifyingGlass->zoomFactor = 5.0;*/
    break;

    Let me know if it helps.

    ferino Friend
    #536061

    Yes, That’s it!
    Thank you very much.

Viewing 7 posts - 1 through 7 (of 7 total)

This topic contains 7 replies, has 2 voices, and was last updated by  ferino 9 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum