• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Dynamic Chart

thong

Member
Hello All,

I have a workbook that have a dynamic chart using offset function, my problem is if I will used the scatter type of graph my horizontal axis is not dynamic like the line type. Is there any work around so that I can used it in scatter type?

Please find attached file for your reference.

Thank you so much in advance.
 

Attachments

I'm not sure what you're asking to do...the point of a line vs. XY is whether you want to plot everything equally, or at their exact point. CHeck out your x-axis on line vs. scatter:
Line
upload_2016-7-20_10-9-58.png
Scatter
upload_2016-7-20_10-10-6.png

The line chart placed all your items equidsitant, so 1 and 2 are same distance apart as 6 and 8. The Scatter does the (correctly) where all numbers are correct distance apart. This is why the charts look different.


As to why it's not actually dynamic, you didn't put the named ranges into the Scatter chart. It still has static ranges.
upload_2016-7-20_10-12-12.png
 
Hi Luke,

I changed my name ranges for my scatter, but my problem now is my horizontal axis, if I will add values to column A (21) column B(99) column C (97) my horizontal axis showing 23. Is it possible to show exactly the same value that I put to column A?

Thank you.
 
Hi p45cal,

Sorry I need more guidance... I was trying to rename my scatter worksheet, and when I put values Im getting this error "Microsoft Visual Basic Runtime Error '13', Type Mismatch"

Please help me.

Thank you
 
Last edited:
I was trying to rename my scatter worksheet, and when I put values its saying debugger problem. Please help me.
Really?! On the file I attached?

It might be getting confused with Names; in Name Manager, delete any names with #REF errrors perhaps?
 
You've not only deleted a sheet but also changed the name of a sheet too!
Change:
ChartObjects("Chart 1").Chart.Axes(xlCategory).MaximumScale = [max(Scatter!Timelabels)]

to:
ChartObjects("Chart 1").Chart.Axes(xlCategory).MaximumScale = [max(Comparative!Timelabels)]
 
Back
Top