How to control the text assigned to a CategoryFilter category?

33 views
Skip to first unread message

Moritz

unread,
May 4, 2016, 7:57:42 AM5/4/16
to Google Visualization API

Hi all,
when I select some category with a CategoryFilter, it will display the selected category as a string inside my chart (ScatterChart).
How can I control the displayed text (i.e. disable or modify the position) ?

For example, one of my CategoryFilters:

var scenarioFilter =  new google.visualization.ControlWrapper({
       
'controlType': 'CategoryFilter',
       
'containerId': 'scenariofilter_div',
       
'options': {
           
'filterColumnLabel': 'scenario'
       
}
     
});
     

And this is my chart:

     var mychart = new google.visualization.ChartWrapper({
       
'chartType': 'ScatterChart',
       
'containerId': 'mychart_div',
       
'options': {
           
'width': 1000,
           
'height': 800,
           
'hAxis': { 'textPosition': 'none' }    
       
}
     
});


I attached a screenshot to clarify which text I mean. :-)

Cheers,
Moritz













2016-05-04 13-54-17_127.0.0.1_8081_test.png

Moritz

unread,
Jun 27, 2016, 10:57:33 AM6/27/16
to Google Visualization API
*push*

Daniel LaLiberte

unread,
Jun 27, 2016, 11:20:10 AM6/27/16
to Google Visualization API
If only one row of data is selected, typically one tick label will be displayed for that row.  You can display zero tick labels by using options hAxis: { ticks: [] } or hAxis: { gridlines: { count: 0 } }, or change the tick label text color with hAxis: { textStyle: { color: 'none' } }.  See https://developers.google.com/chart/interactive/docs/gallery/scatterchart#configuration-options

On Mon, Jun 27, 2016 at 10:57 AM, 'Moritz' via Google Visualization API <google-visua...@googlegroups.com> wrote:
*push*

--
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-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
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/e4b3a8b3-17ad-489f-914f-34e7c96039cc%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages