Hi all, Adding minValue in option seems to resolve the problem.
Thanks & Regards, Jeff On Saturday, June 16, 2018 at 3:51:09 PM UTC+7, Jeff Poslinski wrote: > > Hi all, > > I notice that hAxis line suddenly disappears on certain value. Initial > snippets: > > google.charts.load('current', {packages: ['corechart']}); > google.charts.setOnLoadCallback(drawChart); > > function drawChart() > { > var data = google.visualization.arrayToDataTable > ([ > ['Item', 'Percentage', {role: 'style'}], > ['Item 1', 0.429, '#00FF00'], > ['Item 2', 0.286, '#00FF00'], > ['Item 3', 0.0286, '#00FF00'] > ]); > > var options = > { > legend: {position: 'none'}, > hAxis: {textPosition: 'none', gridlines:{color: 'none'}} > }; > > var chart = new google.visualization.BarChart(document.getElementById( > 'chart_div')); > chart.draw(data, options); > } > > Below is the chart: > > > <https://lh3.googleusercontent.com/-cBpPHo9UWnY/WyTNzXaWQtI/AAAAAAAAEVI/bs7bVv2U7rAEQ2klTDW8DDS9hlXXWqPDwCLcBGAs/s1600/screenshot.png> > If I change the value of 'Item 3' to 0.286 the chart becomes: > > > <https://lh3.googleusercontent.com/-pqfvigijq3c/WyTOVU7pSFI/AAAAAAAAEVQ/_j1cpBBegw8sC43ft1XvMtA8J68eBMNbQCLcBGAs/s1600/screenshot.png> > > Not sure what causes this behavior. Any help would be greatly appreciated. > > Thanks, > Jeff > -- 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 google-visualization-api+unsubscr...@googlegroups.com. To post to this group, send email to google-visualization-api@googlegroups.com. Visit this group at https://groups.google.com/group/google-visualization-api. To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/237fdc9d-e03c-4092-a2a9-a7d9184a31ea%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.