Hi Chris, Our Material charts are new, and in beta, and so they currently don't support a lot of the features that you might be used to, custom tooltips being one of those features (other features include the style role, chart area positioning, annotations, and custom ticks; though this is by no means a complete list). Your best bet would be to use a Classic chart (i.e. google.visualization.BarChart). If you set the option, theme: 'material', you can get a classic chart with Material styling.
On Fri, Oct 23, 2015 at 2:47 PM Chris <[email protected]> wrote: > I am trying to customize the tooltips in a bar chart following the > documentation -> > https://developers.google.com/chart/interactive/docs/customizing_tooltip_content > > I add an extra columns for the Custom Tooltips: > > var data = new google.visualization.DataTable(); > data.addColumn('string', 'Country'); > data.addColumn('number', 'Migrants entering a country'); > data.addColumn('number', 'Migrants leaving a country'); > > data.addColumn({'type': 'string', 'role': 'tooltip', 'p': > {'html': true}}) > > and set the options here > > var optionsCount = { > title: 'Net Migrants rate', > subtitle: 'Migrant(s) per 1,000 population', > tooltip: {isHtml: true}, > bars :'horizontal', > > width: 880, > height : 400, > > hAxis: { > viewWindow:{ > min: -30, max: 30 , > }, > }, > > isStacked:"true", > bar: {groupWidth: "90%"}, > domainAxis: { > textStyle: { > fontSize: 12 > } > }, > > // legend: { position: "none" }, > ticks: [0, 10, 20, 30, 40] > }; > > but the label for 'Qatar' is not working. Here is the complete code -> > http://plnkr.co/edit/8lU9fjRHLQjP5xI2PCBf?p=preview > > > > -- > 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. > To view this discussion on the web visit > https://groups.google.com/d/msgid/google-visualization-api/860a0cf7-a381-4dee-8b8d-73818bb3dc9d%40googlegroups.com > <https://groups.google.com/d/msgid/google-visualization-api/860a0cf7-a381-4dee-8b8d-73818bb3dc9d%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/CAEwwup4amTWVsXHai22Uh5U3t50K5T9c0KNuyu06z3BCxMJ1XA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
