Now i user this code to make chart
<script type='text/javascript'>
google.load('visualization', '1', {packages: ['corechart', 'line']});
google.setOnLoadCallback(drawTrendlines);
function drawTrendlines() {
var data = new google.visualization.DataTable();
data.addColumn('date', 'date');
data.addColumn('number', 'Total 35');
data.addColumn({type: 'string', role: 'annotation'});
data.addColumn({type: 'string', role: 'annotation'});
data.addColumn({type: 'string', role: 'annotation'});
data.addRows([
[new Date ('Jun 28, 2015'), 4,'€9.79','annot1','annot2'],
[new Date ('Jun 27, 2015'), 1,'€9.79','annot3','annot4'],
[new Date ('Jun 26, 2015'), 1,'€9.79','annot5','annot6'],
[new Date ('Jun 25, 2015'), 1,'€9.79','annot7','annot8'],
]);
var options = {
backgroundColor: '#f5f5f5',
annotations: {textStyle: {
// fontName: 'Times-Roman',
fontSize: 8,
bold: true,
// italic: true,
// The color of the text.
// color: '#871b47',
// The color of the text outline.
//auraColor: '#d799ae',
// The transparency of the text.
//opacity: 0.8
}
},
chartArea:{left:'5%',top:'8%',width:'85%',height:'75%'},
//curveType: 'function',
//legend: {position: 'none'},
legend: { textStyle: { fontSize:12},},
hAxis: {
format: 'd MMM',
gridlines: { count: 30},
textStyle: { fontSize: 10},
direction: -1
},
vAxis: {
textStyle: { fontSize: 12},
title: ''
},
pointSize: 3,
colors: ['#AB0D06', '#007329'],
trendlines: {
0: {type: 'linear', opacity: .1},
1: {type: 'linear', opacity: .1}
},
colors: ['green', 'orange']
};
var chart = new
google.visualization.LineChart(document.getElementById('chart_div321779624714'));
chart.draw(data, options);
}
</script>
<div id='chart_div321779624714'></div>
воскресенье, 28 июня 2015 г., 22:55:05 UTC+2 пользователь Michael S написал:
>
>
> Hello!
>
> I would like to see 3 annotations at one point.
> Here is the example in red box of what i need to get.
>
>
> <https://lh3.googleusercontent.com/-27BYDPYTzNQ/VZBeXK9rgMI/AAAAAAAABjY/nNHNGJhy_L4/s1600/2tC8lK4.png>
>
>
> But to see it, i need to push "+" to make them open.
>
> So how do i make them to be already opened like red box?
>
>
> Thanks a lot for help!
>
>
>
>
>
>
--
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.