You can use numeric values in your datatable and specify the formatted
value of each.  E.g.

  [['domain', 'some number'],
   [{v: 0, f: 'zero'}, 25],
   [{v: 3, f: 'three'}, 30],  ...]

Since you are then using a domain of type number, you will want to format
the ticks similarly, using the ticks option.

 {
   hAxis: {
     ticks: [{v: 0, f: 'zero'}, {v: 3, f: 'three'}, ...]
   }
 }




On Tue, Oct 25, 2016 at 11:03 AM, Nick Dunbar <[email protected]> wrote:

> Hi Dan,
>
> This is clever - I didn't know you could do that. I have a stacked column
> chart where the x axis is currently a string array and i would like to be
> able to vary the widths using a number column of my dataTable while keeping
> the string labels - I think it is called a 'cascade chart'. Do you know how
> I could do that?
>
> Thanks,
> Nick
>
> On Monday, October 24, 2016 at 4:47:04 PM UTC+1, Daniel LaLiberte wrote:
>>
>> Hi Nathalie,
>>
>> You can get close to the Marimekko style, using a combination of
>> isStacked: 'percent' and bar: { variableWidth: true }.  Here is an example:
>>  https://jsfiddle.net/dlaliberte/2h6etzkx/
>>
>> On Sat, Oct 22, 2016 at 2:20 PM, Nathalie Sicard <[email protected]>
>> wrote:
>>
>>> I was wondering if it's be possible to build a Marimekko Chart with this
>>> API.
>>>
>>> Thank you!
>>>
>>> --
>>> 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/grou
>>> p/google-visualization-api.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/google-visualization-api/6a6c7394-606a-4d5c-b858-17c2b4
>>> e7f373%40googlegroups.com
>>> <https://groups.google.com/d/msgid/google-visualization-api/6a6c7394-606a-4d5c-b858-17c2b4e7f373%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
>> [email protected]   5CC, Cambridge MA
>>
> --
> 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 google-visualization-api@
> 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/1a3132d1-3b02-4fe2-b0b8-
> 6b04132bcea3%40googlegroups.com
> <https://groups.google.com/d/msgid/google-visualization-api/1a3132d1-3b02-4fe2-b0b8-6b04132bcea3%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
[email protected] <[email protected]>   5CC, Cambridge MA

-- 
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/CAOtcSJPebhybbow_fjhe8QuEOKkkvUCa%3DnC9HAf8PyDsD_44NA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to