[visualization-api] Re: Group the legends

2014-08-29 Thread Schabagh
Hi Andrew,

thanks. How can I make a connection between my own legend and the chart, so 
that I get the information that I need to build the legend?

Thanks


Am Freitag, 29. August 2014 00:29:01 UTC+2 schrieb Andrew Gallant:

 You cannot group your legend items, sorry.  You can, however, turn off the 
 legend in the chart and build your own legend in HTML that uses whatever 
 layout you want.

 On Thursday, August 28, 2014 9:06:30 AM UTC-4, Schabagh wrote:

 Hello,

 is that possible to group the legends? my legend looks at the moment like 
 follows:

 |curve 1 |Curve 2 |Curve 3 |Curve 4 |Curve 5 |Curve 6 |Curve 7 |Curve 8

 I would like to have this as follows with a border around each group :

 
 ---
 Group1 --- |   Device 1: = Curve 1   = Curve 2   = Curve 3   |
  
 Group2 --- |   Device 2: = Curve 4   = Curve 5   = Curve 6   |
 
 ---

 Thanks



-- 
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 google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.


[visualization-api] Re: Group the legends

2014-08-29 Thread Andrew Gallant
For most of the charts, the columns in your DataTable determine the data 
series.  You can get the labels by reading the column labels out of the 
DataTable:

// skip column 0 since that is typically the domain axis values and not a 
data series
for (var i = 1; i  data.getNumberOfColumns(); i++) {
var label = daat.getColumnLabel(i);
// do something with label
}

You cannot get the color information from the chart, but you can reference 
the default color array 
https://groups.google.com/d/msg/google-visualization-api/fmZzdKnmQC0/3KYsJ4N-IeMJ,
 
which are assigned in series order, or you can supply your own colors for 
the chart and use them when building the legend.



On Friday, August 29, 2014 2:29:51 AM UTC-4, Schabagh wrote:

 Hi Andrew,

 thanks. How can I make a connection between my own legend and the chart, so 
 that I get the information that I need to build the legend?

 Thanks


 Am Freitag, 29. August 2014 00:29:01 UTC+2 schrieb Andrew Gallant:

 You cannot group your legend items, sorry.  You can, however, turn off 
 the legend in the chart and build your own legend in HTML that uses 
 whatever layout you want.

 On Thursday, August 28, 2014 9:06:30 AM UTC-4, Schabagh wrote:

 Hello,

 is that possible to group the legends? my legend looks at the moment 
 like follows:

 |curve 1 |Curve 2 |Curve 3 |Curve 4 |Curve 5 |Curve 6 |Curve 7 |Curve 8

 I would like to have this as follows with a border around each group :

 
 ---
 Group1 --- |   Device 1: = Curve 1   = Curve 2   = Curve 3   |
  
 Group2 --- |   Device 2: = Curve 4   = Curve 5   = Curve 6   |
 
 ---

 Thanks



-- 
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 google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.


[visualization-api] Re: Group the legends

2014-08-28 Thread Andrew Gallant
You cannot group your legend items, sorry.  You can, however, turn off the 
legend in the chart and build your own legend in HTML that uses whatever 
layout you want.

On Thursday, August 28, 2014 9:06:30 AM UTC-4, Schabagh wrote:

 Hello,

 is that possible to group the legends? my legend looks at the moment like 
 follows:

 |curve 1 |Curve 2 |Curve 3 |Curve 4 |Curve 5 |Curve 6 |Curve 7 |Curve 8

 I would like to have this as follows with a border around each group :

 
 ---
 Group1 --- |   Device 1: = Curve 1   = Curve 2   = Curve 3   |
  
 Group2 --- |   Device 2: = Curve 4   = Curve 5   = Curve 6   |
 
 ---

 Thanks


-- 
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 google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.