Giter VIP home page Giter VIP logo

Comments (4)

orwant avatar orwant commented on July 28, 2024
Can someone please work on this issue.  I don't think this is a minor issue as the
tooltips are unreadable in many cases.

Original issue reported on code.google.com by fvillaj on 2009-09-24 01:24:15

from google-visualization-issues.

orwant avatar orwant commented on July 28, 2024
One workaround I have discovered is to use the "setOption" method in the options 
class to set some of the unexposed properties in the bar chart.

options.setOption("tooltipWidth", 400);
options.setOption("tooltipHeight", 200);

This makes the options balloon larger which in turn makes the text size somewhat more

acceptable.

A full list of such options can be found on this page

http://code.google.com/apis/visualization/documentation/gallery/barchart.html

Just in case the code I posted does not have the same effect for people, here is my

full options object

private Options createOptions() {
        Options options = Options.create();
        options.setHeight(250);
        options.setLegendBackgroundColor("FAFAFA");
        options.setBackgroundColor("#FAFAFA");
        //options.setOption("tooltipFontSize", 20);
        options.setOption("tooltipWidth", 400);
        options.setOption("tooltipHeight", 200);
        options.set3D(true);
        options.setMin(0);
        options.setMax(100);
        options.setTitleX("Percentage of attempts which resulted in passing 
the question");
        options.setStacked(true);
        return options;
    }

Original issue reported on code.google.com by jmitcheson on 2010-03-19 01:39:23

from google-visualization-issues.

orwant avatar orwant commented on July 28, 2024
Sorry, in case it wasn't clear: the example above is for Bar Chart. The technique can

probably be applied to other visualizations, though.

Original issue reported on code.google.com by jmitcheson on 2010-03-19 01:40:54

from google-visualization-issues.

orwant avatar orwant commented on July 28, 2024
@jmitchel : Thanks for the workaround, just verified that it works also with ColumnChart
also and in the js API. 
You just need to set 
'tooltipWidth':xxx,
'tooltipHeight':yyy,
'tooltipFontSize':ss
in the option list, no tooltip or tooltipTextStyle element opposite to what the documentation
implies.

Original issue reported on code.google.com by jmdesp on 2011-12-08 10:24:40

from google-visualization-issues.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.