Services Plugins FAQs

Google Charts - Histogram help

The documentation is a little thin on how to setup a histogram. It should presumably (?) be fairly straightforward, since each chart instance will just a single data series (an indefinitely long series of numbers, from a dynamic data source) that would be plotted in histogram form, but I’m having trouble getting any readable results.

Might someone be able to walk me through the right parameters to map to Data Values, Data Visualization, etc., and whether the bucketing needs to be done manually or if it’s handled automatically?

Thanks in advance!

Hi @flip,
Thanks for reaching out.

Can you please share more information regarding the use case you are trying to implement? Knowing the scenario you are trying to do, we can check internally how this can be achieved using Google Charts Plugin.

If it is convenient for you, please share with us as well screenshots and/or screencasts of your setup - workflows, plugin settings, elements you are using.

Looking forward to your reply. :pray:
Best regards,

Hi @Igor - thanks for your reply.

I’ve actually made some progress since my post and can now generate a basic histogram, but am still curious as to how it can be customized and how the settings are supposed to work.

The app is a forecasting game, where player’s entry (an unbounded but positive decimal) is assigned a score (a decimal between 0 and 100).

I’d like to display histograms of both the entries and the scores. The data for each is just a single list of numbers (the length of the list is variable, depending on how many entries there are). But for one chart (the scores), the x-axis range will always be 0-100; for the other, it will depend on the forecast ranges.

To learn how the settings impact the presentation, though, I’m just using sample data (a list of 100 static values, generated from a normal distribution with mean 100). This screenshot shows how the chart is currently set up. It seems that it won’t display anything unless the “Visualization Data” field has a list of exactly the same length as the “Data Values” field, but it doesn’t seem to matter what values are inputted in the “Visualization Data” field. I can re-paste the Data Values; I can use 1, 2, 3, 4… 100; I can use gibberish. It seems to have no impact on the resulting chart.

Can I, for instance, change/override the number and width of the bins? Change the y-axis to display % of total items in each bin (rather than the count of items per bin)? Would also like to be able force x-axis labeling, as that disappears when the chart is presented in small format. And to learn whether Visualization Data plays a role in this chart type.

Thanks again for your help!

Hello @flip,
Thank you for your patience and I hope my message finds you well.

It looks like our dev team will need more time to investigate this type of chart and provide additional notes and examples to the plugin supporting documentation.
Once it will be updated, I will let you know asap.
Thank you for understanding. :pray:

Have a nice weekend ahead.
Best regards,

Hi @flip,
Thank you for your patience. :pray:

Have you’ve managed to solve the issue with your forecasting game and histogram chart?

Also, we have updated the plugin with the new version (Version: 1.16.0.): Fixed Histogram chart type on the plugin demo page.
Basically, the Chart Legend (items) should be equal to the Data Values, in order to display all of the items in the histogram chart.

As well you can implement this with dynamic data, just storing them inside your database and using Do a Search for option for both fields, making sure it is the same number of items in your database, to display all of them.
I hope the above will be useful to you.

Please feel free to contact me if you need any further information.
Best regards, :slight_smile:

This works great. Thanks so much!

1 Like

Hi @flip,
You are always welcome. :slight_smile:

Please feel free to reach us any time you have any questions.
Regards,