Repeated dates

12 views
Skip to first unread message

ygor silva

unread,
Jun 24, 2020, 11:22:53 AM6/24/20
to Google Visualization API
Hello Gentlemen, the dates of my graphs are repeating, I'm using the code 
"
            hAxis: {
                format: 'dd / MM / yyyy',
                max: new Date ()
            },
"


However, when I remove the format, it appears the time, has anyone been there? If it has already been there is a solution?

FormartScreenshot_4.png

Not Fomart Screenshot_3.png



Daniel LaLiberte

unread,
Jun 24, 2020, 11:50:58 AM6/24/20
to Google Visualization API
The repeated date ticks would appear to be a bug, but whether it is depends on which version of the library you are using.   The recent versions should reject tick alternatives that are not unique after formatting, or that are too crowded, causing overlap.   

You can also specify a list of tick values to use, with the 'ticks' option.   If your data is static, this might be a good workaround for you.

--
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-visualizati...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/2963a3db-f914-4edc-8287-f93589d00c0co%40googlegroups.com.


--
Reply all
Reply to author
Forward
0 new messages