Hi Viz Kid, Thank you for the tip and your explanation !! It works very well !
Julien On 28 mai, 19:15, Viz Kid <[email protected]> wrote: > Hi, > > The new version of these charts indeed implement a hole in such case while > the previous charts continued it. The GWT wrapping calls the previous > version unless explicitly stated otherwise (and we are working in order to > make it easier to use the new charts via GWT). As a short term fix, you can > choose a different package in the loading of the visualization API (namely > to override the package name that is the default in the LineChart class). > > The new charts are in the 'corechart' package while the previous charts has > a different package for each of the base charts ('linechart', 'areachart' > and so on). > (Note that you cannot load the new version and old version at the same > time). > > Hope this helps, let us know if there are any issues with it. > > Vis Kid > > > > On Fri, May 28, 2010 at 2:17 PM, j <[email protected]> wrote: > > Hi, > > I use the GWT wrappers for LineChart. > > I want to display a hole in the curve when I get no data. > > > Let's take the following example with a chart presenting the evolution > > of a value during a time window. > > Time : "15:29:12" --> Value : 16 > > Time : "15:29:13" --> Value : 25 > > Time : "15:29:14" --> Value : 58 > > Time : "15:29:15" --> Value : no data > > Time : "15:29:16" --> Value : no data > > Time : "15:29:17" --> Value : 34 > > Time : "15:29:18" --> Value : 48 > > When I get no data for the value I want that the curve don't print any > > point. > > > I tried this example on the playground (http://code.google.com/apis/ > > ajax/playground/?type=visualization#line_chart) with the following set > > of values : > > data.setValue(0, 0, "15:29:12"); > > data.setValue(0, 1, 16.0); > > data.setValue(1, 0, "15:29:13"); > > data.setValue(1, 1, 25.0); > > data.setValue(2, 0, "15:29:14"); > > data.setValue(2, 1, 58.0); > > data.setValue(3, 0, "15:29:15"); > > data.setValue(4, 0, "15:29:16"); > > data.setValue(5, 0, "15:29:17"); > > data.setValue(5, 1, 34.0); > > data.setValue(6, 0, "15:29:18"); > > data.setValue(6, 1, 48.0); > > > In this case, I have a hole in the curve. > > > However, in GWT, I can't have any hole because the point for 58 is > > linked with the one for 34... > > The javadoc don't help me very much... > > > Can you help me please ? > > > Thanks in advance !! > > > Julien > > > -- > > 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]<google-visualization- > > api%[email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-visualization-api?hl=en. -- 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.
