Thank you for your advise.I used showTextEvery option to show the lable and a little hard to control the number of them,especially when add chartRangeFilter function . Besides my chart is too ugly without gridlines.Are there any other method to show gridlines?
在 2012年8月30日星期四UTC+8上午12时04分13秒,asgallant写道: > > When using a discrete axis (which is what you get when you use strings for > the axis values), you cannot have gridlines. > > You can't directly choose how many axis labels show up, but you can play > around with > hAxis.slantedText/slantedTextAngle/maxAlternation/maxTextLines/minTextSpacing/showTextEvery > > options to try and get what you want. > > On Wednesday, August 29, 2012 2:29:21 AM UTC-4, Ji Joe wrote: >> >> Hi, I have a problem about horizontal axis. My work is to draw a >> candlesticks chart that shows the datas of the stock. The scale of the >> haxis is date, but on saturday and sunday ,the data is null. So i used the >> option view to transmit column 0's type date to string,and the chart can >> show continuously. >> But the texts in the axis are hiden and there are no gridline in the >> chart . >> Thanks a lot. >> > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/fIBlHg8-_owJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
