Quantcast
Channel: Open XML Format SDK forum
Viewing all articles
Browse latest Browse all 1288

Can a Script be added to a bar chart to FORCE its Axis value?

$
0
0

I use openXML to update a barchart on a word doc.  When it was just the value 0 - 100% it worked fine.  now?  it MUST show the Percent % Axis on the bottom to be scaled to the largest value

But in Excel?  its like this:

The colors are off, but the blue/orange bar chart shows up right in Excel.  In word? it insists on scaling it.  If the scaling is changed from auto? then it sets that as the maximum limit.  It may be 105 or 150 or 220 for a value and it needs to show the axis accordingly.  if a value is 112?  the bottom axis value must end at 120.

But if its 100?  then it cannot extend.  for some reason Word wants to auto scale the axis to 120% if the value is 100%

On a 0-100% barchart?  if you exceed 100 then the bar shrinks and the 100% axis mark doesnt change

So is there a way to add some custom script to a word document?  To modify the barchart after its been stuffed with values?


Bradley :)


Viewing all articles
Browse latest Browse all 1288

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>