ASE Home Page Products Download Purchase Support About ASE
ChartDirector General
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Suggestion: New chart type - Venn Diagram
Posted by J Kay on May-15-2010 00:38
Hi,

The subject says it all really. Venn Diagrams would be a great addition to a fantastic charting tool.

Kind regards,
Jon.

  Re: Suggestion: New chart type - Venn Diagram
Posted by Peter Kwan on May-15-2010 03:22
Hi J Kay,

You may be able to draw simple Venn diagrams by simply drawing circles and text (using DrawArea.circle and DrawArea.text or BaseChart.text).

It is like:

$c = new XYChart(....);
$d = $c->getDrawArea();

$d->circle(....);
$d->circle(....);
$c->addText(.....);
$c->addText(.....);

....

Hope this can help.

Regards
Peter Kwan

  Re: Suggestion: New chart type - Venn Diagram
Posted by J Kay on May-17-2010 17:05
Hi Peter,

Yes that's true but they would be *very* simple - without color since there seems to be no way to change the circle fill color where the sets intersect. I think it could soon become a lot of work using the CD 'primatives', especially for 4+ sets (although 5 is a reasonable limit) - hence my suggestion.

Jon.

  Re: Suggestion: New chart type - Venn Diagram
Posted by Peter Kwan on May-17-2010 21:59
Hi J Kay,

The only easy way to have the intersection being a different color is to use semi-transparent colors for the circles. In this case, the overlapping region will be a mixture of the filling colors.

Regards
Peter Kwan

  Re: Suggestion: New chart type - Venn Diagram
Posted by J Kay on May-18-2010 18:40
That's interesting, I will experiment with that. I still think the suggestion is valid (I suspect dealing with increasing numbers of sets could become quite complicated) - just give CD the data & text and let it make a nice diagram!

Jon.