+ Reply to Thread
Results 1 to 2 of 2

Adding shapes to a chart (flush with the edges)

  1. #1
    Registered User
    Join Date
    03-09-2017
    Location
    Paris, France
    MS-Off Ver
    Windows 10 Home
    Posts
    1

    Adding shapes to a chart (flush with the edges)

    I used Excel to create an editor that looks like this:

    editor.jpg

    When users click "Save" I create a worksheet chart, place colored rectangles in the chart, resize the chart using a points-to-pixels conversion, and export it to a .png image with transparency.

    Everything is working perfectly, except I can't get my rectangles to appear flush with the chart edges. I position the upper left rectangle at 0,0,32,32, but it's always 5 pixels from the top and 5 pixels from the left. (And there's a 1 pixel gap on the right and bottom.)

    Here's what my resulting image looks like:

    saved_image.jpg

    Any suggestions on how to fix this? I've tried everything and I'm going nuts!

  2. #2
    Valued Forum Contributor
    Join Date
    11-26-2012
    Location
    Sydney
    MS-Off Ver
    2010
    Posts
    419

    Re: Adding shapes to a chart (flush with the edges)

    Is there a 'margin' that is set somewhere? Can you upload the workbook?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to flush an output stream buffer?
    By XmisterIS in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-24-2014, 08:45 AM
  2. [SOLVED] Adding shapes in Userforms - Dice
    By Alex H in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-29-2014, 03:21 AM
  3. Adding shapes to an excel graph
    By 7qtips in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 04-27-2014, 08:27 AM
  4. In excel how do I automatically flush data to disk
    By Geoff Lambert in forum Excel General
    Replies: 0
    Last Post: 05-18-2006, 11:15 AM
  5. Pie Chart - Smooth Edges
    By Rachel in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 01-11-2006, 06:15 PM
  6. Adding shapes to xy scatter charts
    By Richw in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-14-2005, 11:15 AM
  7. excel flush right
    By [email protected] in forum Excel General
    Replies: 0
    Last Post: 03-03-2005, 06:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1