You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.
google.charts.load('current', {packages: ['corechart']});
google.charts.setOnLoadCallback(drawChart);
function drawChart() {
var data = new google.visualization.DataTable();
data.addColumn('string');
data.addColumn('number');
data.addColumn({ 'type': 'string', 'role': 'style' });
data.addRows([
['name1',3442222,'color: #fcba03'],// This will not show the bar
//['name2',34422,'color: #fcba03'],// uncomment this line and comment out above line and everything works fine
]);
// Instantiate and draw the chart.
var chart = new google.visualization.BarChart(document.getElementById('barChart'));
chart.draw(data, null);
}
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The first row doesn't display single bar item. View a working example here https://jsfiddle.net/mharri117/zwycshvm/184/
The text was updated successfully, but these errors were encountered: