To get the points to show for your data points and not on the line or at 
the other end of the trail (for lack of a better word to call it), you need 
to introduce one more level of hackery, which adds another series to the 
mix that consists of your data points only.  Here's an example: 
http://jsfiddle.net/asgallant/6r8MC/4/

On Sunday, March 17, 2013 2:51:38 PM UTC-4, Helios wrote:
>
> Thanks, it looks much better already. 
>
> But you are right, maybe it's better if I explain what this data 
> represents and what I have to plot.
>
>
>    - The points represents measurements
>    - The continuous line represents the *trend*, which is calculated with 
>    a simple formula: for the point x_i we have  
>    t_i = t_{i-1} + [(x_i-t_{i-1})/10] (where [y] denotes the nearest 
>    integer to y)
>    
>
> So the trend is basically some sort of approximation of the points if you 
> will.. but I want it to look a little better than straight lines (my goal 
> is this: 
> https://lh5.ggpht.com/EngXiQ-nWdjW2TnawAQKDPr_khndiMrqnZwTRhImmEGgZ1x4Htla71fakeA40emt4EU).
>
> So, that's the reason why I didn't think interval would work for me (I had 
> stumbled upon that solution), they are not exactly error bars; but I agree 
> that maybe putting one of the extreme values of the interval as the trend 
> value (depending if it's above or below) and the other one to the point 
> value, it would produce a somewhat of a neat result.
>
> Thanks for your help.
>
> 2013/3/17 asgallant <[email protected] <javascript:>>
>
>> The issue here is twofold:
>>
>> 1) In the line, there are 3 consecutive, identical (x, y) pairs at every 
>> point, so a best-fit curve produces straight lines like you see.
>> 2) The typical way to fix this would be to null out two of the points and 
>> set the "interpolateNulls" option to true, but this causes the other series 
>> to draw lines where you don't want them.
>>
>> With some creative rearrangement, we can make this work: 
>> http://jsfiddle.net/asgallant/6r8MC/3/.  The key here is to separate out 
>> the line series from the point series.
>>
>> It occurs to me, however, that there may be a simpler solution, depending 
>> on what these extra lines represent.  Would something like 
>> this<https://developers.google.com/chart/interactive/docs/roles#intervalrole>work
>>  for you?
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to