You can't use HTML in the labels. Label formatting is accomplished via the hAxis.textStyle option<https://developers.google.com/chart/interactive/docs/gallery/columnchart#Configuration_Options> .
On Friday, May 24, 2013 5:24:33 PM UTC-4, Brian Quirion wrote: > > Is there any way to put html in a label? some way to format the label in > any way? > > > > On Fri, May 24, 2013 at 2:22 PM, asgallant > <[email protected]<javascript:> > > wrote: > >> You have to do something like what I did in my example - include the week >> in the labels. You can't cluster the labels together and give the cluster >> itself a label, if that's what you are looking for. >> >> >> On Friday, May 24, 2013 3:46:48 PM UTC-4, Brian Quirion wrote: >>> >>> function drawVisualization() { >>> var data = new google.visual**ization.DataTable(); >>> data.addColumn('string', '**Group'); >>> data.addColumn('number', '**Checkin'); >>> data.addColumn('number', '**NoCheckin'); >>> data.addColumn('number', '**Scrub'); >>> data.addRow(["NB", 3, 3, 5]); >>> data.addRow(["RTP", 1, 4, 3]); >>> data.addRow(["SVL", 2, 6, 7]); >>> data.addRow([null, null, null,** null]); >>> data.addRow(["NB", 4, 3, nul**l]); >>> data.addRow(["RTP", null, nu**ll, 3]); >>> data.addRow(["SVL", 3, 2, 4]); >>> data.addRow([null, null, nul**l, null]); >>> data.addRow(["NB", 4, 4, nul**l]); >>> data.addRow(["RTP", null, nu**ll, 4]); >>> data.addRow(["SVL", 2, 2, 1]); >>> data.addRow([null, null, nul**l, null]); >>> data.addRow(["NB", 2, 7, nul**l]); >>> data.addRow(["RTP", null, nu**ll, 4]); >>> data.addRow(["SVL", 4, 2, 8]); >>> data.addRow([null, null, nul**l, null]); >>> data.addRow(["NB", 5, 2, nul**l]); >>> data.addRow(["RTP", null, nu**ll, 3]); >>> data.addRow(["SVL", 2, 3, 4]); >>> var chart = new google.visua**lization.ColumnChart(document.** >>> getElementById('visualization'**)); >>> chart.draw(data, { >>> title:"Total completed, grouped by gender", >>> width:800, height:600, >>> isStacked: true, >>> bar: { >>> groupWidth: "90%", >>> }, >>> hAxis: { >>> title: "Location", >>> }, >>> vAxis: { >>> title: "Number of Jobs" >>> } >>> }); >>> } >>> >>> >>> gets me just about everytyhing I think except being able to label the >>> cluster(accidentally replied to author rather than group) >>> Each set of 3 (the cluster) in this case represents a week(or a month) >>> and being able to label that cluster would help. >>> >>> On Friday, May 24, 2013 11:44:41 AM UTC-7, Brian Quirion wrote: >>>> >>>> Trying to describe this if ... interesting. >>>> But basically i want to compare say 4 teams. >>>> I want to compare them by total and by say 3 other criteria. And do >>>> this over time. To me this is visualized by stacked column chart with >>>> multiple series. >>>> >>>> But it requires two layers of labeling on the x axis. >>>> >>>> For example say i want to comparse teams w, x, y, z. >>>> Their total number of jobs done as well as by the types of jobs. >>>> Lets say we have types of jobs a, b, c >>>> >>>> During week 1 team w completed 3 a jobs, 2 b jobs and 4 c jobs >>>> team x completedl 1 a job. 0 b jobs and 4 c jobs >>>> >>>> etc. >>>> >>>> team w completed 9 jobs >>>> team x completed 5 jobs >>>> >>>> That by itself is a multiple series column chart with fake dates >>>> But i also want to break that 9 and 5 down into the types of jobs >>>> a stacked column. So that you can see that of the 9 for team w at time >>>> 1 3 were a jobs 2 were b and 4 were c while >>>> for team x at time 1 there was 1 a job, 0 b jobs and 4 c jobs. >>>> >>>> x axis is time AND also the different teams. >>>> y axis is # of jobs >>>> >>>> There any way to do this? Or perhaps im simply going about it the wrong >>>> way. >>>> The idea is to compare, weekly, the total jobs completed by different >>>> teams as well as the different types of jobs. >>>> >>> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Google Visualization API" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/google-visualization-api/EtbTbGA4EIk/unsubscribe?hl=en >> . >> To unsubscribe from this group and all its topics, send an email to >> [email protected] <javascript:>. >> To post to this group, send email to >> [email protected]<javascript:> >> . >> 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. >> >> >> > > -- 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.
