The graph data structure is rendered server side.

Why not let another module renders this server side into a image / IMAP ?

This relates to #1129758: Render with physics once

Comments

clemens.tolboom’s picture

clemens.tolboom’s picture

Darn .... it's not 7.x ready #762262: Plans for drupal 7 port?

clemens.tolboom’s picture

clemens.tolboom’s picture

By providing a views display mode to export only the dot file we can call the graphviz render function.

clemens.tolboom’s picture

clemens.tolboom’s picture

Status: Active » Fixed

As graphviz module has no D7 version we now just dump the dot formatted graphviz as a digraph.

The themer can override views-graphapi-style-graphviz-filter.tpl.php by calling the appropriate graphviz command.

I put this on fixed and hope graphviz_filter will #1389454: Integrate with graphapi module (D7)

clemens.tolboom’s picture

Title: Add support for graphviz module » Add support for graphviz_filter module

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

s.daniel’s picture

Status: Closed (fixed) » Needs work
StatusFileSize
new250 KB
new1020 bytes

Since there is a D7 version of graphviz_filter out now I'm reopening this issue with a small patch that brings very basic integration of graphviz_filters to graphapi > graphviz.module. I'll dig further into this and maybe provide a better integration with more options later.

clemens.tolboom’s picture

@s.Daniel: thanks for you effort :)

I wish it was that simple. What we need to have is more of

function graphviz_graphapi_node_properties() {
  return array(
    'background-color' => 'Background Color',
    'shape' => 'Shape',
    'rank' => 'Rank',
  );
}

function graphviz_graphapi_link_properties() {
  return array(
    'title' => 'Title',
    'color' => 'Color',
  );
}

Next

function graphviz_to_dot($graph) {

must understand all those properties.

We want color right?

What do you think?

s.daniel’s picture

You're right, while we get some output with just graphviz_filter_filterproc it's nowhere a convincing solution. I plan to dig further into graphviz and graphapi in the comming days. However I'm far from beeing an expert Drupal module coder so your feedback like the one above will be most welcome.

clemens.tolboom’s picture

Project: Graph API » Graphviz

This now belongs to Graphviz module