Jump to content
Software FX Community

Multiple Graphs in one Chart Object


jaw36

Recommended Posts

Is it possible to show 2 different graphs (not sharing the same X axis) on one chart object.  The reason I ask, is that our users would like certain graphs to be standard graphs, and 2 specific graphs will always be printed together.  They would like one print button to print both charts on one page.

Link to comment
Share on other sites

No. A chart object contains only one chart.

You can write JavaScript to print both charts. For example:

var chartImage1 = MM_findObj("Chart1");var chartImage2 = MM_findObj("Chart2");

var imgSrc1 = chartImage1.src;

var imgSrc2 = chartImage2.src;

var w = window.open ('', '_blank', 'menubar=0,location=0,status=0,resizable=0,scrollbars=0,titlebar=0,status=0,toolbar=0,linkbar=0,width=1,height=1');

var html = '<HEAD><TITLE>Chart</TITLE></HEAD><HTML><BODY ONLOAD="if (window.print) { setTimeout(\'window.close()\', 1); window.print(); }">'; html += '<IMG SRC="' + imgSrc1 + '">';

html += '<IMG SRC="' + imgSrc2 + '">';

html +=
'<\/BODY><\/HTML>';

w.document.open();

w.document.write(html);

w.document.close();

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...