line chart populating the data but not showing vertical axis numbers

12 views
Skip to first unread message

Rajat Jain

unread,
Sep 11, 2018, 7:50:57 AM9/11/18
to Google Visualization API
  1. for the below data line chart is getting populated but vertical axis is not showing up this data i am feeding to, also I am getting no error in console.
    var data = google.visualization.arrayToDataTable(processedData);
    var chart = new google.visualization.LineChart(document.getElementById('prediction_chart'));

    chart.draw(data, options);
    my config is
    var options = {
    title: 'xyz',
    curveType: 'function',
    legend: { position: 'bottom' },
    pointSize: 5,
    series: {
    2: { lineDashStyle: [4, 2] },
    3: { lineDashStyle: [4, 2] },
    },
    vAxis: {
    scaleType: 'log'
    }
    };

  2. data:
  3. (13) [Array(5), Array(5), Array(5), Array(5), Array(5), Array(5), Array(5), Array(5), Array(5), Array(5), Array(5), Array(5), Array(5)]
Reply all
Reply to author
Forward
0 new messages