views support

Pasqualle - October 20, 2008 - 20:53
Project:Charts
Version:6.x-1.0-alpha4
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

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',
  );
}

AttachmentSize
charts.tar_.gz2.4 KB

#1

Pasqualle - October 21, 2008 - 14:36

Chart created from a view

AttachmentSize
chart_in_views.png 19.05 KB

#2

DerTobi75 - October 23, 2008 - 19:53

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

#3

Pasqualle - October 24, 2008 - 00:01

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

AttachmentSize
chart_view_example.txt 944 bytes

#4

Pasqualle - October 25, 2008 - 15:56

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

AttachmentSize
chart_view_example2.txt 941 bytes
charts_2.tar_.gz 2.41 KB

#5

Pasqualle - October 30, 2008 - 01:17

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

hide = TRUE

this removes charts module from the help index

#6

brmassa - November 13, 2008 - 01:59
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

#7

opensanta - November 13, 2008 - 17:10

Terrific!
This ought to be front page news.

#8

lunas - November 24, 2008 - 22:33

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.

#9

Pasqualle - November 24, 2008 - 23:39

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

#10

lunas - November 25, 2008 - 00:23

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.

#11

opensanta - November 25, 2008 - 05:33
Status:fixed» closed

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

Please open a new issue.

 
 

Drupal is a registered trademark of Dries Buytaert.