Thanks a lot Andrew. I'll try it. I'll keep you posted.
On Friday, July 18, 2014 10:00:22 AM UTC-5, Andrew Gallant wrote:
>
> You can manually format your axis value by using the vAxis.ticks option,
> which takes an array of numbers or objects. Each element in the array
> specifies a tick mark on the axis; if the element is a number, that number
> will appear (formatted by the vAxis.format option) on the axis with a
> gridline; if the element is an object, the object's "v" property determines
> where the tick mark is placed, and the "f" property detemines what label
> will be placed there. As an example:
>
> vAxis: {
> ticks: [{v: 0, f: '0'}, {v: 1000, f: '1k'}, {v: 2000, f: '2k'}, {v:
> 3000, f: '3k'}, {v: 4000, f: '4k'}, {v: 5000, f: '5k'}]
> }
>
> You can change the dimensions of the internal chart area (the part where
> data is plotted) by using the chartArea option, which has height, width,
> top, and left sub-options. Each sub-option can take a numeric value (for
> the dimension in pixels) or a string value (for the dimension as a percent
> of the total chart height or width). As an example:
>
> chartArea: {
> top: '10%', // start the chart area 10% down from the top edge
> left: 15, // start the chart area 15px from the left edge
> height: '80%', // make the chart area 80% of the total chart height
> width: 170 // make the chart area 170 pixels wide
> }
>
> Numbers and strings can be mixed and matched in any combination.
>
> On Friday, July 18, 2014 10:51:05 AM UTC-4, Neil Camara wrote:
>>
>> Hi folks,
>>
>> How do we automatically convert values so that the numbers doesn't eat up
>> too much space?
>> For example: I would I want 5,000 to be displayed at 5k. For 13,000,000,
>> I want Google Charts to display 13M.
>>
>> This is what is happening now.
>> http://i.imgur.com/QB8tRhK.png
>>
>> Is it also possible to increase the width of the chart? I want it like
>> 15px away from the left and right borders.
>>
>> Thanks,
>>
>> Neil
>>
>>
--
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.
For more options, visit https://groups.google.com/d/optout.