Ich bin neu in Google-Diagramm. Ich möchte eine rote Linie zeichnen, wie im folgenden Bild gezeigt. Bitte helfen Sie mir, wie das geht. Wie zeichne ich eine Linie in Google Combo-Diagramm
Ich habe meine Anforderungszeile in obigem Bild zeigen. wie es geht? Bitte hilf mir. Ich habe Combo Chart benutzt. Mein Code wie folgt.
function drawVisualization() {
// Some raw data (not necessarily accurate)
var data = google.visualization.arrayToDataTable([
[ 'Time', 'Col1',{ role: 'style' }, 'col2'],
[ '09:50', 1000,'color: #B0C4DE', null],
[ '10:00', 1200, 'color: #EEE8AA',1400],
[ '10:30', 1500, 'color: #EEE8AA',1400],
[ '11:00', 1300, 'color: #B0C4DE',null],
[ '11:30', 1200, 'color: #B0C4DE',null],
[ '12:00', 1300, 'color: #B0C4DE',null],
[ '12:30', 1200, 'color: #EEE8AA',1200],
[ '01:00', 1300, 'color: #EEE8AA',1200],
[ '01:30', 1600, 'color: #B0C4DE',null]]);
var options = {
width : 1001,
height : 500,
vAxis : {
format : '#[kw]',
viewWindowMode:'explicit',
viewWindow: {
max:3000,
min:0
},
ticks: [0, 1000, 2000, 3000]
},
seriesType : "bars",
series : {
1 : {
type : "line"
}
},
legend : {
position : 'none'
},
colors : ['#ff0000','#008000']
};
var chart = new google.visualization.ComboChart(document
.getElementById('number_format_chart'));
chart.draw(data, options);
}
Dank !! Ich arbeite gut !! –