Doesn't work either.

Do you have an idea about formatted value on 2 lines?

On 29 juin, 16:04, ChartMan <[email protected]> wrote:
> Try setting a larger width or setting the larger width directly on the div
> style="width:300px";
>
> On Mon, Jun 29, 2009 at 4:44 PM, jeremyprioux <[email protected]>wrote:
>
>
>
> > seems that If I use a smaller text I could be able to read it ;)
>
> > is it possible to set a formatted value on 2 lines into to the
> > tooltip?
>
> > On 29 juin, 15:34, jeremyprioux <[email protected]> wrote:
> > > That works fine when I remove the formatted value but if I remove the
> > > width, I just get a tiny visualization where I can't even click on.
>
> > > I tried to put the visualization with a fixed height into a
> > > SimplePanel with a fixed width. Visualization is OK but I still get a
> > > small tooltip (using formatted value).
>
> > > (just want to add that I really appreciate your help ChartMan, thank
> > > you !)
>
> > > On 29 juin, 11:15, ChartMan <[email protected]> wrote:
>
> > > > So I was able to reproduce in a simple example.
> > > > The bug occurs when there is a formatted value on a cell and the width
> > is
> > > > set to 160. Take out one of those conditions and the tooltip will
> > render
> > > > just fine.
> > > > I will open a bug on this. Let me know if this works for you when you
> > remove
> > > > the 'width'.
>
> > > > ChartMan
>
> > > > On Mon, Jun 29, 2009 at 11:18 AM, jeremyprioux <[email protected]
> > >wrote:
>
> > > > > Yes, I still have this issue... Don't know what to do !
>
> > > > > On 28 juin, 16:11, ChartMan <[email protected]> wrote:
> > > > > > Are you still seeing this bug?
>
> > > > > > ChartMan
>
> > > > > > On Sun, Jun 28, 2009 at 12:52 PM, jeremyprioux <
> > [email protected]
> > > > > >wrote:
>
> > > > > > > I made a mistake, you have to replace
> > "ColumnChartDraw.getPackageName
> > > > > > > ()" by ColumnChart.PACKAGE. Of course.
>
> > > > > > > Does anyone reproduce the same bug??
>
> > > > > > > On 26 juin, 18:19, jeremyprioux <[email protected]> wrote:
> > > > > > > > Sorry I forgot to say it, I'm using the API through GWT (MacOS
> > X) !
>
> > > > > > > > If you want to reproduce, here is a code which produce the
> > tooltip
> > > > > bug
> > > > > > > > I got :
> > > > > > > > /**
> > > > > > > >  * Entry point classes define <code>onModuleLoad()</code>.
> > > > > > > >  */
> > > > > > > > public class TestGWT implements EntryPoint {
>
> > > > > > > >         SimplePanel panel;
> > > > > > > >         /**
> > > > > > > >          * This is the entry point method.
> > > > > > > >          */
> > > > > > > >         public void onModuleLoad() {
> > > > > > > >                 panel = new SimplePanel();
> > > > > > > >                 Runnable onLoadCallback2 = new Runnable(){
> > > > > > > >                         public void run() {
> > > > > > > >                                 DataTable data =
> > DataTable.create();
> > > > > > > >                                 data.addRows(1);
>
> > data.addColumn(ColumnType.STRING,
> > > > > "");
> > > > > > > >                                 data.setValue(0, 0, "");
>
> > data.addColumn(ColumnType.NUMBER,
> > > > > > > "Score");
> > > > > > > >                                 data.setValue(0, 1,
> > (12*100/16));
> > > > > > > >                                 data.setFormattedValue(0, 1,
> > "Mot(s)
> > > > > > > trouvé(s) : "+12);
> > > > > > > >                                 panel.setWidget(getDraw(data));
> > > > > > > >                         }
> > > > > > > >                 };
>
> > > > > VisualizationUtils.loadVisualizationApi(onLoadCallback2,
> > > > > > > > ColumnChartDraw.getPackageName());
> > > > > > > >                 RootPanel.get().add(panel);
> > > > > > > >         }
>
> > > > > > > >         public Widget getDraw(DataTable data) {
> > > > > > > >                 ColumnChart c = new
> > > > > ColumnChart(data,createOptions());
> > > > > > > >                 return c;
> > > > > > > >         }
>
> > > > > > > >         private Options createOptions() {
> > > > > > > >                 Options options = ColumnChart.Options.create();
> > > > > > > >                 options.setColors("#00618B");
> > > > > > > >                 options.setBackgroundColor("#F2FAFF");
> > > > > > > >                 options.setSize(160, 240);
> > > > > > > >                 options.set3D(true);
> > > > > > > >                 options.setOption("legend", "none");
> > > > > > > >                 options.setOption("titleFontSize", "12");
> > > > > > > >                 options.setMin(0);
> > > > > > > >                 options.setMax(100);
> > > > > > > >                 return options;
> > > > > > > >         }
>
> > > > > > > > }
>
> > > > > > > > On 26 juin, 17:49, ChartMan <[email protected]> wrote:
>
> > > > > > > > > Still cannot reproduce.Can you try your code in the
> > playground -
> > > > > > >http://code.google.com/apis/ajax/playground/#column_chart
>
> > > > > > > > > <http://code.google.com/apis/ajax/playground/#column_chart>BTW
> > -
> > > > > are
> > > > > > > you
> > > > > > > > > using GWT or javascript
>
> > > > > > > > > ChartMan
>
> > > > > > > > > On Fri, Jun 26, 2009 at 12:19 AM, jeremyprioux <
> > > > > [email protected]
> > > > > > > >wrote:
>
> > > > > > > > > > here are my options :
>
> > > > > > > > > > options.setBackgroundColor("#F2FAFF");
> > > > > > > > > > options.setSize(115, 210);
> > > > > > > > > > options.set3D(true);
> > > > > > > > > > options.setTitle(title);
> > > > > > > > > > options.setOption("legend", "none");
> > > > > > > > > > options.setOption("titleFontSize", "12");
> > > > > > > > > > options.setColors("#00618B");
> > > > > > > > > > options.setMin(0);
> > > > > > > > > > options.setMax(100);
>
> > > > > > > > > > nothing special ... I don't know how can I have a
> > "readable"
> > > > > tooltip
> > > > > > > !
>
> > > > > > > > > > On 25 juin, 19:22, ChartMan <[email protected]> wrote:
> > > > > > > > > > > I cannot reproduce.
> > > > > > > > > > > I get the tooltip font size not affected from external
> > > > > font-size
> > > > > > > > > > > declaration.
> > > > > > > > > > > Can you send an example?
>
> > > > > > > > > > > ChartMan
>
> > > > > > > > > > > On Thu, Jun 25, 2009 at 7:44 PM, jeremyprioux <
> > > > > > > [email protected]
> > > > > > > > > > >wrote:
>
> > > > > > > > > > > > Hi,
>
> > > > > > > > > > > > Get into the problem in 2 seconds :
> > > > > > >http://jeremyp.info/tooltipsize.png
>
> > > > > > > > > > > > Seems that tooltip font size is depending on tooltip
> > size,
> > > > > which
> > > > > > > can't
> > > > > > > > > > > > be specified whith the API. Have you got any ideas of
> > how can
> > > > > I
> > > > > > > fix
> > > > > > > > > > > > it?
>
> > > > > > > > > > > > Thanks a lot,
>
> > > > > > > > > > > > Jérémy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to