You can use your favorite social network to register or link an existing account:
Or use your email address to register without a social network:
Sign in with these social networks:
Or enter your username and password
Forgot your password?
Yes, please link my existing account with for quick, secure access.
No, I would like to create a new account with my profile information.
In Excel 2007, the ability to directly resize or reposition points on the chart was deprecated. This feature was sometimes referred to as "Graphical Goal Seek." For example, in Excel 2003 a user could click on a data point in a column chart twice which would surface handles that could be used to resize the columns. Over the last couple of years we have received a lot of feedback from customers indicating that this was a valuable feature for some scenarios. However, we were not able to react in time to roll this feature back into Excel 2010 but we are evaluating how to bring this back as a native feature in a future release. In an effort to restore this lost functionality, we have developed a sample Add-In that can be used in both Excel 2007 and Excel 2010.
In this blog post, I will provide the Sample Add-In for download and illustrate how to use this Add-In for manipulating points on your chart.
The sample add-in with RibbonX and VBA code is here.
Before trying out the following scenario, please install the Add-In as described in the provided documentation (attached at the bottom of this post).
In this section we will run through a fictional scenario about how you can use the Add-In to manipulate points on your chart. Tailspin Toys is in the process of developing a new toy airplane and are conducting various experiments before they settle on the final design. We will be looking at one such experiment where the company is studying the impact of different materials and wingspans on the maximum altitude that can be attained by this toy air plane.
The experiment has been largely successful and it has been observed that for all materials there is a general trend:
The scientists are elated at their find but these are some erroneous values in the data (show with red circles on the chart). The field scientist tells us that the erroneous readings were caused by some loose wiring to the altimeter used in the experiment. Since the trends are pretty obvious, the research department wants to clean up the charts before presenting their findings to the management.
In the next steps, we will see how MPOC Add-In can be used for this purpose:
IMPORTANT: Please back-up your file before using the MPOC Add-In. The undo functionality in Excel will NOT work since this Add-In is written entirely using VBA. Also, this is a sample Add-In, so please exercise caution before using it on important data.
In this case, we have selected the 8th point in the “Aluminum” series. Since this is an X-Y scatter chart, we can change both the X and Y value associated with this point. Next, we will see how we can change the Y- value associated with this point to smoothen our curve.
NOTE: Value controls are used to directly manipulate the value of the cell corresponding to the selected point on the chart. We dynamically add additional value controls depending on the type of the chart. For example: column or bar charts have one value controls, x-y scatter charts have two value controls and bubble charts have three value controls.
NOTE: The MPOC Add-In provides 3 different ways to change the value of the point with varying level of precision: Scroll Bar – When you are far away from the value you want, use scroll bars quickly change values. Spin Button – When you are close to the value you want, use spin button for greater precision to zone in on the value you want. Text Box – if you know the value you want, why waste time zoning in on the value. Use the textbox to directly input it in the text box
MPOC provides a truly modeless experience - you can even click on a different chart or a different worksheet and the dialog will automatically update itself.
Thus using the MPOC Add-In, we can easily manipulate points of the chart to smoothen out the erroneous values.
The section above covers the basics of using the Add-In. There are many more features that are beyond the scope of this blog article but these are covered in great detail in the provided documentation (attached at the bottom of this post). Please read the documentation before using this Add-In. Some of the topics covered in the documentation are:
The Manipulate Points on Charts (MPOC) Add-In is a sample solution that will help you manipulate points on charts. This Add-In can be used to visually smooth curves in Excel. If this Add-In is useful to you or if there are any chart interactivity features you would like to see, we would like to hear from you.
Comments: (14) Collapse
I find it interesting that you do not use VSTO but use VBA!
A couple of things would be welcome:
.add XY labels (there are at least 3 well known addins adressing this but MS sanctioned code would be great).
.allow to mark datapoints based on criteria (local and/or global maxima).
.a tool to copy all charts and chartobjects in a workbook to word or powerpoint as images.
.a tool to create a copy of an existing linechart and "replace" all the series with its corresponding trendline (my vba solution copies the chart, sets each series colour to null or transparent and adds a trendline of the specified kind, usually moving averages, using the same colour and overall line style of the original series).
.a tool to create dynamic named ranges as a source for a chart series (=offset(;;;counta();) formulas)
.a replacement for the Select Data dialog box. Ideally it should be based on a table having each row one of the chart's series and with these columns: axis, chart type, x values (click to see the corresponding range, similar to what you'd do with =hyperlink(), evaluated in case of a named range or a =offset(;;;counta();) kind of range), y values, labels, name.
.a tool to insert horizontal or vertical lines at specified values, in order to avoid the XY series with a single point+error bars hack.
I am the writer of this blog article. I will be monitoring this blogpost and I will do my best to answer your questions. Please keep your feedback coming. Also, this would be a great forum if there are other charting features you would like to see in future versions of Excel.
SB- Thanks for your question. We decided to use VBA because VBA is the most commonly used programming environment for Excel. Also, we wanted to release the sample add-in with the source code.
Menem - Thanks for the suggestions. I will definitely run these by the Excel charting team.
Hi there,
I did some play around with the tool am not clear how the max value for the scrolls and spins are set.
Can someone please throw some light on that?
Thanks.
"I find it interesting that you do not use VSTO but use VBA!"
Possibly because it is a better tool for prototyping a new Excel application! :)
Anyway, thanks for publishing the source code, it should be a valuable resource.
I'd also like to second all of Menem's suggestions, and also hope we will see a return of VBA recording of actions on charts and shapes.
Presumably just going back to the spreadsheet and changing the data points would be far too simple
1. The choice of VBA over VSTO is a no-brainer.
2. Mike: changing the cells (type, click Enter, retype, reclick Enter, ad nauseum) is painful compared to dragging a slider that interactively changes values. Dragging a point was even better, because you could directly move the point to its proper location.
Thanks for all your comments.
Sachin –
The Min/Max are set based on the minimum / maximum value for the axis of the chart. As you use the spin button / text box, we update the minimum /maximum values (if the axis changes). We don’t do this while using the scrollbar as this would not be an optimal user experience.
Each click of the spin button increases the value by approximately 10% of the minor unit for the axis. This is the same for scrollbars (we use approximately 20% for large change).
Mike –
Actually that is exactly what the Add-In does for you. If you know the exact value that you are going to type in the cell and the exact cell that affects the value, I would recommend just typing it in.
This add-in is meant for users who want to visual control on their charts. They are seeking a precision that would be hard to achieve by typing the values multiple times and checking the result of that change on your chart.
I made some mockups... something like this...
img262.imageshack.us/.../excelchartmockup1.jpg
img194.imageshack.us/.../excelchartmockup2.jpg
img39.imageshack.us/.../excelchartmockup3.jpg
I really appreciate the well-developed explanation and visuals. I will heed your warnings regarding use. Thank you.
Billy Gee
I added the Manipulate_Points_on_Charts.xlam to the setup customization file I created for O2K7, but it doesn't get created when I install O2K7. I've added another file to our O2K7 install, and it gets copied down to the user's "C" drive on install, no prob. Any idea why this file doesn't get copied down? I'm trying to have it copied down to: [installocation]\office12\addins. The other file that gets copied down, is in [installocation\office12\library. It's not a file/folder permissions issue. All users are local admin on their PC. We're running XP SP3.
Thanks,
JT
JT,
Can you share the MST so we can test? From reading your post, it sounds like this should work.
Joe
JoseK@Microsoft.com
Joseph,
Thanks for the Add-In.
This is the last reason why I've been stuck in Excel 2000/2003 (I've had Excel 2007 for years, I and many others around me, haven't used it for "real" work). I use point dragging many times daily on very complex XY charts and I can make this add-in work well enough that I can now switch.
Please put the original "point drag" back in a future Excel release.
Keep in mind that it is likely that many more people need this add-in, they've just given up looking for a solution. I have been Googling "Excel 2007 chart point drag" about every six months since Excel 2007 came out. This is the first solution I've found.
Thanks again,
Bill
I'm trying to use your add-in on an XY chart with a primary and secondary axis. The ability to move both the X & Y are available when the data is on a primary axis. As soon as I move one series to the secondary axis, I can no longer change the X value of any series. Is there a way to fix this?
Comments: (loading) Collapse