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.
unpack the attached file into charts module directory and
insert this code into the charts.module file
/**
* Implementation of hook_views_api().
*/
function charts_views_api() {
return array(
'api' => 2,
'path' => drupal_get_path('module', 'charts') .'/includes/views',
);
}
Comment | File | Size | Author |
---|---|---|---|
#4 | chart_view_example2.txt | 941 bytes | Pasqualle |
#4 | charts_2.tar_.gz | 2.41 KB | Pasqualle |
#3 | chart_view_example.txt | 944 bytes | Pasqualle |
#1 | chart_in_views.png | 19.05 KB | Pasqualle |
charts.tar_.gz | 2.4 KB | Pasqualle |
Comments
Comment #1
PasqualleChart created from a view
Comment #2
DerTobi75 CreditAttribution: DerTobi75 commentedHi,
I can choose "Basic Settings" -> "Style" -> Charts, but when I want to preview my chart, I have no display called "make_chart" like in your screenshot! Can you please provide a little more help text, how to set this up?!
Regards,
Tobi
Comment #3
Pasqualleexample view attached. just simply import it. It will show nodes per type in pie chart..
I just realized, that the code is not perfect, it does not work with user roles for example. This will need much more testing..
Comment #4
PasqualleUpdated package. it is now possible to show user roles in chart.
example view of user roles attached..
Comment #5
Pasquallenote:
in chart.help.ini
under [advanced help settings] add
this removes charts module from the help index
Comment #6
brmassa CreditAttribution: brmassa commentedCsuthy,
thanks a lot for all your effort with Charts module. I really appreciate it. please fill free to report any other bug or new feature.
this patch was commited!
regards,
massa
Comment #7
mitchell CreditAttribution: mitchell commentedTerrific!
This ought to be front page news.
Comment #8
lunas CreditAttribution: lunas commentedI'm having the same issue at the moment (as DerTobi)- can't actually get a chart to output, even if I use the example code provided. Using latest releases of both charts and views.
Comment #9
Pasqualle@lunas: can you attach a screenshot about what you see when you change the view style to table style? So I can have a guess what could be the problem.
and most importantly another screenshot from the admin/settings/charts page (there should be an example chart displayed on that page, when you set up charts module correctly)
Comment #10
lunas CreditAttribution: lunas commentedPasqualle - thankyou very much -- kinda feeling a little dumb at the moment. Didn't realize charts had an admin setting to setup. Now that I've done that, charts are showing up. Go figure. Thanks again.
Comment #11
mitchell CreditAttribution: mitchell commentedAvoiding further possibilities of people posting new issues inside this one.
Please open a new issue.