vartical axis title,scale and legend text is not visible in combo chart

18 views
Skip to first unread message

vishal padre

unread,
Dec 17, 2018, 7:56:01 AM12/17/18
to Google Visualization API




google.charts.load('current', {'packages':['line', 'corechart']});
      google.charts.setOnLoadCallback(drawVisualization);

      function drawVisualization() {

  // Create and populate the data table.
  var data = google.visualization.arrayToDataTable(newarray1);

  // Create and draw the visualization.
  new google.visualization.LineChart(document.getElementById('chart_div')).
    draw(data, {height:500,
width:900,
hAxis: {title: '% Flow'},vAxes:[
      {title: '% time', titleTextStyle: {color: 'black'}, minValue: 0, maxValue: 50},
      {title: ' Operating cost', titleTextStyle: {color: 'black'}, minValue: 100, maxValue: 2000},
      {title: '', titleTextStyle: {color: 'black'}, minValue: 100, maxValue: 2000}
    ],legend:{position:'bottom'},
series:{
0: {type: 'bars',targetAxisIndex:0},
1: {targetAxisIndex:1},
2: {targetAxisIndex:2}
    }} );
Capture.JPG
Reply all
Reply to author
Forward
0 new messages