Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I was able to create a Gauge chart easily with this module with the exception of the Date field issue. But the values for the gauge exceed the ticks on the gauge, therefore the needle pegs every time.
Also, how can the colors and values for the different color zones of the gauge be change?
Comment | File | Size | Author |
---|---|---|---|
#12 | Selection_045.png | 91.59 KB | joaomachado |
#12 | Selection_044.png | 53.55 KB | joaomachado |
#12 | Selection_043.png | 68 KB | joaomachado |
#12 | Views_Google_Chart_gauge.txt | 106.87 KB | joaomachado |
#10 | google_chart_tools_gauge-1876664-3.patch | 9.62 KB | konforti |
Comments
Comment #1
joaomachado CreditAttribution: joaomachado commentedSo, I did a little research and found that I could modify the google_chart_tools_views_plugin_style.inc file and add the missing options for the gauge from here https://developers.google.com/chart/interactive/docs/gallery/gauge , I think this needs to be added to the module and maybe others can test it.
Unfortunetaly I don't know how to submit patches or use GIT...
Joao
Comment #2
konforti CreditAttribution: konforti commentedThank you @joaomachado, this might be cool addition to the module.
But please attach a valid patch so other can review your changes.
Comment #3
joaomachado CreditAttribution: joaomachado commentedWay over my head, I was lucky to figure that out :-)
Comment #4
joaomachado CreditAttribution: joaomachado commentedOK, I tried to make a patch...someone please test..
Note: if not using the gauge graph leaving all of the fields relating to the gauge blank should not effect the other graphs, I think!
Can of worms being opened...
Comment #5
joaomachado CreditAttribution: joaomachado commentedIs there any chance of getting this patch added as a feature? IS there anything that I can help with to do so?
John
Comment #6
joaomachado CreditAttribution: joaomachado commentedChanged the title to better reflect the request.
Comment #7
bazzly CreditAttribution: bazzly commentedPatch seems to work for me, but I noticed I lost my drop-down to choose chart type, and the ability to name the Vertical and Horizontal.
Using 7.x-1.3+13-dev
Thanks!! I post back should anything go wrong.
Comment #8
konforti CreditAttribution: konforti commentedComment #9
joaomachado CreditAttribution: joaomachado commentedI am a little buried for the next week or so but I will try to work on the patch using the current dev version.
As a side note, I am usig this module to create a Sales Dashboard for the company I work for and they are slobbering all over this gauge feature, apparently Dashboards are the big sales analytics thing now. Especially with creating attached vews with combination gauges, graphs etc..
Joao
Comment #10
konforti CreditAttribution: konforti commentedHi @joaomachado, I want to suggest creating a new, different views-style plugin for the Gauge charts.
It's seems (to me) that it become a bit too messy to keep it all together.
A patch is attached, based on your patch, for new views-style plugin.
Please review.
Can you please provide here the exports of the view which you dealing or testing with?
Thanks.
Comment #11
bazzly CreditAttribution: bazzly commentedThere anyway to have the patch work with the 7.x-1.4 version so I could test it out as well?
Thanks
Comment #12
joaomachado CreditAttribution: joaomachado commentedI am buried up to my eye balls this week, but here is the data I think you are looking for.
The views export of the gauges I have done so far.
Views Export.txt
Also some screenshots of the gauges.
Comment #13
joaomachado CreditAttribution: joaomachado commented@konforti
This sounds like a much better way to go...I will test as soon as I can. I am not much of a coder so please beware.
Joao
Comment #14
bazzly CreditAttribution: bazzly commentedI got it working on the .4 version. Cool and good job guys!!
Comment #15
bazzly CreditAttribution: bazzly commentedJust an FYI, Patch seems to work, but I still lost my drop-down to choose chart type (no big deal), and the ability to name the Vertical and Horizontal are gone.
Thanks
Comment #16
joaomachado CreditAttribution: joaomachado commentedPatch from comment 10 fails for me on both 7.14 and 7.1.x-dev
"line 267 malformed"
Comment #17
IKE0088 CreditAttribution: IKE0088 commented+1 subscribe
Comment #18
IKE0088 CreditAttribution: IKE0088 commentedwhen I first started testing the patch from #4, I lost all of my grouping capabilities. I modified the following file:
sites/all/modules/google_chart_tools/google_chart_tools_views/views/google_chart_tools_views_plugin_style.inc
using the following code:
Seems to be working like a charm...