Hi Виталий,
On Tue, Jul 30, 2013 at 7:57 AM, Виталий Мищенко <[email protected]> wrote: > How google can draw like that? > http://img39.imageshack.us/img39/8631/jm1.png > > As I understand from server they have a number value, and on Y axis they > draw string value... > I cannot understand, how they do it? > > There is an option for formatting the axis such that the labels are 'inside'. The labels in your image appear to be formatted from timeofday types of values, and the default format will generate labels that look like that. Here is an example of both of these. function drawVisualization() { // Create and populate the data table. var data = google.visualization.arrayToDataTable([ ['date', 'time'], ['July 16', [0, 2, 30]], ['July 17', [0, 5, 0]], ['July 18', [0, 5, 0]] ]); // Create and draw the visualization. new google.visualization.LineChart(document.getElementById('visualization' )). draw(data, {width: 500, height: 400, vAxis: { textPosition: 'in' }} ); } -- Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> - 978-394-1058 [email protected] <[email protected]> 562D 5CC, Cambridge MA [email protected] <[email protected]> 9 Juniper Ridge Road, Acton 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 http://groups.google.com/group/google-visualization-api. For more options, visit https://groups.google.com/groups/opt_out.
