[visualization-api] histogram's minNumBuckets and maxNumBuckets

2017-07-24 Thread Sorawee Porncharoenwase
Hi everyone! I would like to be able to control the number of buckets. Presumably, this can be done by setting minNumBuckets and maxNumBuckets. While maxNumBuckets works like a charm, minNumBuckets doesn't work. Please see the following images. 1) maxNumBuckets (max-num-bins in our library)

Re: [visualization-api] Re: automatic adaption of the width of the graph area depending on the amount of data points

2017-07-24 Thread 'Daniel LaLiberte' via Google Visualization API
What you need for the ticks option is an array of values or objects. [{"v":1,"f":"26.11.15"},{"v":2,"f":"09.12.15"}, ..., 5, 6, 7] I don't know enough about PHP to help you with how to do that, though I am sure it is possible. A DataView gets data from a DataTable (or another DataView), but it

Re: [visualization-api] Re: automatic adaption of the width of the graph area depending on the amount of data points

2017-07-24 Thread beginnerGG
Thank you very much. I am sorry, but I have some more beginners problems with this: 1. Does this array have one or two dimensions? I get this: Array ( [0] => Array ( [v] => 1 [f] => 26.11.15 ) [1] => Array ( [v] => 2 [f] => 09.12.15 ) or this:

[visualization-api] Pie chart text centering issue

2017-07-24 Thread Varun Valsarajan
I am trying to render a pie chart which represents no data scenario with the following snippet. function drawEmptyPieChart(category,chartId){ //if no record found google.charts.load('current', {'packages':['corechart']}); google.charts.setOnLoadCallback(drawChart); function