Hi Emmanuel, Sorry for the delay. I've been preoccupied with other tasks.
I looked into the bug and possible fixes a couple weeks ago after your messages. I didn't find an easy solution at that time, not without possible implications for always using the bucketSize option to override other options. The change is probably simple, but the consequences are more complex. So basically, more testing will be needed to make sure we are doing the right thing. If you want to help out, it would be great if you could set up a series of simple tests of the many combinations of options and data. I can turn those into automated tests, and then we will have more confidence in whatever changes we decide to make. On Sat, Jun 11, 2022 at 12:20 PM Emmanuel Schanzer < [email protected]> wrote: > Hi Daniel - just following up on this. Any chance of a fix for this bug? > > On Wednesday, May 18, 2022 at 3:46:17 PM UTC-4 Daniel LaLiberte wrote: > >> Hi Emmanuel, >> >> Thanks for posting about this problem. Glad to hear so many students are >> using Google Charts. >> >> I believe what you are seeing is that the bucketSize option is not >> actually ignored. If you change your example to set the option to each of >> 1, 2, 3, 4, and 5, you will see the chart changes, but it doesn't use the >> given bucketSize exactly unless it is close to a tick value. Rather, it >> effectively rounds to the nearest tick value, or something similar to >> that. I have to admit, this is a bug, since you should be able to specify >> any bucketSize value. >> >> I don't see any workaround at this time. It is possible to specify >> options that determine the hAxis ticks, and those will be used, but only >> after the bucketing has been done. If the numBucketsRule allowed you >> to specify a function that you could provide to determine the number of >> buckets and thus the bucket size, that could also work. >> >> But it will be easier, I expect, to just let the bucketSize option be >> used as specified. I'll look into that. >> >> >> On Wed, May 18, 2022 at 3:28 PM Emmanuel Schanzer < >> [email protected]> wrote: >> >>> First off - thanks for this awesome library! >>> >>> Depending on the bounds of the data, the bucketSize option is ignored. >>> Here's a simple jsfiddle <https://jsfiddle.net/p30nkLb1/> which >>> reproduces the issue. >>> >>> We use this library in a national curriculum project that has tens of >>> thousands of students - and this bug has been driving teachers and students >>> crazy. >>> >>> Any hope for a fix or workaround? I've read through prior conversations >>> and numerous StackOverflow threads, and none of them seem to work. >>> >>> Thanks in advance! >>> Emmanuel >>> >>> -- >>> 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 [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/google-visualization-api/a3dc612d-0a5b-498b-abbb-031ba5c7bf61n%40googlegroups.com >>> <https://groups.google.com/d/msgid/google-visualization-api/a3dc612d-0a5b-498b-abbb-031ba5c7bf61n%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> >> >> -- >> >> • Daniel LaLiberte >> >> • SWE >> >> • Cambridge MA >> >> • [email protected] >> > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/google-visualization-api/902740b9-a863-472c-8018-5a23c702b89an%40googlegroups.com > <https://groups.google.com/d/msgid/google-visualization-api/902740b9-a863-472c-8018-5a23c702b89an%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- • Daniel LaLiberte • SWE • Cambridge MA • [email protected] <[email protected]> -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJN9gCOh%2Bdp8v%3Dho6ZL4j%3D42RsPkbcNPoZmyCZgtx0V8rg%40mail.gmail.com.
