Open JatinAntier opened 2 years ago
It is difficult to guess what you are referring to. Can you set up a simple demonstration in jsfiddle or similar?
[ ['x', 'Price'], ['Fri', 1.01], ['Sat', 1.01], ['Sun', 1.01], ['Mon', 1.02], ['Tue', 1.02], ['Wed', 1.02], ['Thu', 1.02] ]; we have this array if the value of sun array is smaller than or equal to 2 then x-Axies black line removed. eg:
if Sun val is greater than 2 then its working fine eg:
let options = { labels: false, responsive: true,
hAxies: {
gridlines: {
color: 'transparent'
}
},
vAxis: {
textPosition: 'none',
gridlines: {
color: 'transparent'
}
},
hAxis: {
showTextEvery:
activeTab == 1 ? 4 : activeTab == 2 ? 0 : activeTab == 3 ? 7 : 2
},
series: {
0: { color: '#4ba34f' },
1: { color: '#dc9fd5' },
2: { color: '#3546c5' }
},
legend: 'none',
backgroundColor: 'transparent'
}; with using upper options.
What you call an x-axis line is actually a vertical axis gridline, which is affected by your vertical axis options and data values. If you remove your vAxis options, you will see what it is trying to do on the vertical axis. In other words, the horizontal gridlines are controlled by the vertical axis, and vice versa. We don't draw a line for any axis independent of the gridlines.
If the baseline value for an axis would be visible in the view window of the chart, which depends on your data and options, then the baseline will be drawn (if you haven't hidden it).
There is no "hAxies" option, by the way. There is an "hAxes" option, which lets you specify the index number of the axis you what to affect. However, there is typically only one hAxis, with index 0, so this won't help you here.
Hope that helps.
when we have array with length of 8 and if the 3rd index of array value is smaller and equal to 2 then X-axies line is removed automatically. can you please fix this issue or give me solution of this issue.