Hi, The values in bar chart do not support html content. Another possibility to achieve your goal is to use our events<http://code.google.com/apis/visualization/documentation/gallery/barchart.html#Events> .
On Mon, Feb 7, 2011 at 10:36 PM, Franco Figueroa <[email protected]>wrote: > how to create a link by pressing on a bar of barChart > then lead to another website with data for that bar > > For example: > > > var data = new google.visualization.DataTable(); > data.addColumn('string', 'Tareas'); > data.addColumn('number', 'Pendientes'); > data.addColumn('number', 'Vencidas'); > data.setValue(0, 0, 'CRS'); > data.setValue(0, 1, 5); > data.setValue(0, 0, 1); > data.setValue(1, 0, 'SCI'); > data.setValue(1, 1, 2); > data.setValue(1, 2, 0); > data.setValue(2, 0, 'SCM'); > data.setValue(2, 1, 3); > data.setValue(2, 2, 1); > > > I try with > > var formatter = new google.visualization.PatternFormat('<a > href="mailto:{1}">{0}</a>'); > formatter.format(data, [0, 1]); // Apply formatter and set the > formatted value of the first column. > > But I had no good results > > pressing on the bar that has 3 tasks "pending"is redirect me to > another website which contains details of these 3 tasks > > Thanks > > > -- > You received this message because you are subscribed to the Google Groups > "Google Visualization API" group. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-visualization-api?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
