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',
  );
}
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Pasqualle’s picture

FileSize
19.05 KB

Chart created from a view

DerTobi75’s picture

Hi,

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

Pasqualle’s picture

FileSize
944 bytes

example 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..

Pasqualle’s picture

FileSize
2.41 KB
941 bytes

Updated package. it is now possible to show user roles in chart.
example view of user roles attached..

Pasqualle’s picture

note:
in chart.help.ini
under [advanced help settings] add

hide = TRUE

this removes charts module from the help index

brmassa’s picture

Status: Needs review » Fixed

Csuthy,

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

mitchell’s picture

Terrific!
This ought to be front page news.

lunas’s picture

I'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.

Pasqualle’s picture

@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)

lunas’s picture

Pasqualle - 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.

mitchell’s picture

Status: Fixed » Closed (fixed)

Avoiding further possibilities of people posting new issues inside this one.

Please open a new issue.