It works out of the box.

I tried all drupal 6 charting modules but only this one is working and I do not need to code anything myself. All I have done is to create a new content type with cck and a views type. Of course views_charts still need alot of works at this alpha stage, such as allow multiple fields in views to show in the chart, more chart types (only pie, bar and 3D bar charts available right now), and more controls over the final output.

I'm writing this because I want to let the designers and maintainers know I appreciate this module Alot. Since few months has lapsed from the last release, I want to bring more attentions to this module and hopefully to get more peoples to work with it. (I wish I can get my hands into the project but I'm new to drupal and still learning PHP and SQL)

Comments

Sinan Erdem’s picture

I am also interested with this module. It would be really nice if I could plot a graph of a field versus another field.

Cheers,

Sinan

irakli’s picture

etcetera9,

and you can not?

Sinan Erdem’s picture

I tried but I couldnt. Maybe it is because I am using a relationship to get some values to the fields. But I couldnt manage to put one field's values to X axis and the others to the Y axis. When I make a table view, every value is appeared correctly. But when I select chart, data is not shown correctly.

I cannot find detailed documentation about preparing a chart view. If I manage to make it work, I can happily write a tutorial or something..

irakli’s picture

What exactly happens?

Chart display will not show you chart in the preview. You have to create a block or a page display and view it in the final destination (at a page or as a block embedded somewhere).

Sinan Erdem’s picture

Google and Fusion charts were appearing on preview. But they were only working for some fields but not for others. Also the free version of Fusioncharts was displaying "no data to display". But i didnt try to see the results on a page or block. Tomorrow I shall try it.

Maybe Views Cals is the cause. I tried several examples with Views Calc type view and it is not working with some fields. But actually I dont need any aggregation on data. I just need to plot a field versus another field graph.

Cheers,

Sinan

Sinan Erdem’s picture

Hi,

I was in a real big confusion before. I was using Charts module and I related it with Views Charts module but I was wrong.

Now I am using Charts and Graphs module with Views Charts. But I cannot see the swf on the page. Neither with views or with a custom php block which is an example on the module's page. (I installed SWFObject API.)

Anonymous’s picture

I have the same trouble as indicated in comment #6. All the modules are installed, but the chart is not showing up when I save the view. Since there's really no documentation that I can find any guidance would be appreciated. Thanks.

irakli’s picture

Can you please provide SWFObject API version, version of the browser and the version of SWFObject javascript you downloaded?

Are you seeing any errors at all?

My first guess it that the versions of the dependencies have changed and something broke. I will try to debug, if you tell me more about your environment.

Thank you!

Sinan Erdem’s picture

Ohh... Sometimes I miss such essential things!! Now I just downloaded javascript files for SWF object API. And graphs shows as desired. I also added some relationships, and the module was successful showing different values from different tables... My specs:

Charts Core API: 6.x-1.0-alpha4
SWF Object API: 6.x-1.0-beta1
SWF Object javascript: 2.2

Here is an example of the charts on my site: http://www.sahandafutbol.com/charts This graph show the users' points in descending order...

I have some questions though:

1. I cannot set the minimum value of Y axis. It just starts from the lowest value of the data even if I set "Min value of Y Axis:" as 1 or 0 or something (You can see in the example).

2. Is it possible to theme the appearance of swf? Change colors, fonts or anything else? I see some theming options on the project site: http://teethgrinder.co.uk/open-flash-chart-2/background.php Are they applicable? If so, where am I writing the code?

3. Will there be more options to charts (line, scatter etc) ? Is it a hard job? If there is any brute labor needed I am willing to help. I am good at Actionscript but beginner at PHP and Javascript.

This way, the module looks very promising. After doing some more tests with other values, maybe I can write a tutorial page for the module.

Thanks,

Sinan

Sinan Erdem’s picture

For my 1. question:

I made it work by just adding a line to the charts_openflash.inc file which can be found in the Charts and Graphs module folder (charts_graphs/apis/charts_openflash):

$min_value = $canvas->y_min;

just after the lines:

$obj->values = $val;
$max_value_arr = max($val);
$max_value = ($max_value < $max_value_arr) ? $max_value_arr : $max_value;
$min_value_arr = min($val);
$min_value = ($min_value > $min_value_arr) ? $min_value_arr : $min_value;

Now I can just write the min value of the Y axis in the Views options window :)

Anonymous’s picture

That was my bad. I was missing the swfobject js file. I'm adding that to the mix and trying again.

Anonymous’s picture

With respect to comment #10 I believe that you made the change mentioned in the charts_openflash.class.inc file contained in the same folder. The .info file doesn't have that information. I tried the change and it did work for me.

A couple of things I've noticed now that I have it working.

1) The resulting chart takes the name of the display as the title. It would be nice to be able to set a specific title or have no title at all.
2) If Ajax is set to "yes" in the view then pagers don't work. The second page of the pager shows up blank.
3) Would be nice to be able to set the color of the lines and bars on those types of graphs.

Thanks.

Rob
Awakened Voice

Sinan Erdem’s picture

Correct.. I edited it in my comment... Thanks.

Sinan Erdem’s picture

For using the line chart option with OpenFlash see this issue: http://drupal.org/node/563682

truyenle’s picture

to etcetera9 and awakenedvoice: it works for me too. Thank a lot!

recidive’s picture

Status: Active » Closed (fixed)

Closing this issue. No activity here since 2 months ago.