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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...