I have two dynamic lined charts whose chart areas are aligned; however,
because the y-axis values change dramatically when graphing different
ranges, the chart plot areas misalign (Y-axis shift to the right to
accomodate larger y-values displayed next to vertical axis). This
annoying behavior essentially puts the the two charted lines in the two
charts out of alignment. Locking the chart areas by code does not help,
since the plot area is the culprit!
Any help on how to align the actual plot areas by VBA code? (to be
clear, the aligned areas must not include the y-axis values which can
alternate between 1-100 range to 1-1000,000 range)
Thank you in advanice for your valuable assistance.
Alseikhan--
Alseikhan
------------------------------------------------------------------------
Alseikhan's Profile: www.excelforum.com/member.php...oamp;userid=32364
View this thread: www.excelforum.com/showthread...hreadid=524606You have to dig into the object model to get the plot inside area. I have
posted a workbook with some fairly simple code that does this:
peltiertech.com/Excel/Charts/AlignCharts.html
Whenever possible, I avoid this technique and use a combination chart
designed for the specific application.
- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services - Tutorials and Custom Solutions -
PeltierTech.com/
2006 Excel User Conference, 19-21 April, Atlantic City, NJ
peltiertech.com/Excel/ExcelUserConf06.html
_______
quot;Alseikhanquot; gt; wrote
in message ...
gt;
gt; I have two dynamic lined charts whose chart areas are aligned; however,
gt; because the y-axis values change dramatically when graphing different
gt; ranges, the chart plot areas misalign (Y-axis shift to the right to
gt; accomodate larger y-values displayed next to vertical axis). This
gt; annoying behavior essentially puts the the two charted lines in the two
gt; charts out of alignment. Locking the chart areas by code does not help,
gt; since the plot area is the culprit!
gt; Any help on how to align the actual plot areas by VBA code? (to be
gt; clear, the aligned areas must not include the y-axis values which can
gt; alternate between 1-100 range to 1-1000,000 range)
gt; Thank you in advanice for your valuable assistance.
gt;
gt; Alseikhan
gt;
gt;
gt; --
gt; Alseikhan
gt; ------------------------------------------------------------------------
gt; Alseikhan's Profile:
gt; www.excelforum.com/member.php...oamp;userid=32364
gt; View this thread: www.excelforum.com/showthread...hreadid=524606
gt;
- Mar 13 Thu 2008 20:43
Aligning two chart plot areas
close
全站熱搜
留言列表
發表留言
留言列表

