Hi,

I'm trying to create a chart that will report the windspeed in Beaufort. 
Two values will be shown in this graph, the windspeed measured at a certain 
moment in time, and the highest windspeed measured during the sampling time 
(the gusts).
Basically I'm trying to recreate the same type of charts that Windfinder is 
giving

e.g

<https://lh3.googleusercontent.com/-l7JsLZ1akuw/Wj0DCmF_ZcI/AAAAAAAAJDI/z5Yf54cDc9AXm2UxFxyjAFOQApE0mCOBACLcBGAs/s1600/Capture.PNG>
The bars represent the windspeed, the hovering line the gusts.

So I started with a combo chart since this is very close to what I need, I 
want to put one value as a bar and the other as a steppedArea.
You can test the actual code over here 

https://jsfiddle.net/1eme2Lsg/7/

If I just present bars this is how the chart looks like

<https://lh3.googleusercontent.com/-8cttuduZ_HU/Wj0ETW0v1aI/AAAAAAAAJDU/Ji1-SgW58kYC-9NHsMkOAxaQpE5QmbI5gCLcBGAs/s1600/Capture1.PNG>
If I change in the code, the series from 2 to 1 so it's actually applied

   series: {
    1: {
        type: 'steppedArea'
      }
    } 

I get

<https://lh3.googleusercontent.com/-Y5CrScT017E/Wj0EjQTAw7I/AAAAAAAAJDY/W2y-Dgl_3vsUAj0tmYvo0i9v_ce09-wvQCLcBGAs/s1600/Capture2.PNG>
As you can see the bars have all been collapsed into one big area !!!

I did some further testing and discovered that if I change the type on the 
horizontal axis from a datetime to a string, then the chart behaves as 
expected. 
Is there any way I can avoid the bars to collapse ? Or is there an 
alternative type of chart that would allow me to represent the data more or 
less like Windfinder

Regards,

Carlos
 

-- 
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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/074553c2-fe40-4a32-a997-500eda89cee3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to