Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8731829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:19:42+00:00 2026-06-13T09:19:42+00:00

I am using multiple differently colored rectangles to build a SVG data visualization. This

  • 0

I am using multiple differently colored rectangles to build a SVG data visualization. This works great but sometimes background color bleeds through between the rectangles. I am browsing with Chrome but other browsers seem similarly affected.

http://jsfiddle.net/dVEPk/

<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
  <rect x="10.5" y="10" height="100" width="100"
          style="stroke:none; fill: #00cc00"/>
  <rect x="110.5" y="10" height="100" width="100"
          style="stroke:none; fill: #00cc00"/>
</svg>

In Chrome, if the x offset is an integer, the line is not visible.

I’m sure I can avoid lines by making rectangles a little larger than the space they have to occupy. But this seems like a hack: is there an SVG idiom or best practice to achieve perfectly tiled shapes without “grout”?

I’m also concerned by rendering performance because my visualizations can be very large (say 100MB XML .svg). I’d like to be able to give the renderer hints like “none of the shapes in this <g> are overlapping”?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T09:19:43+00:00Added an answer on June 13, 2026 at 9:19 am

    This is antialiasing at work between the shape and the background. If you want to turn it off set shape-rendering=”crispEdges” on the shapes. You can either set that on the rect elements or on the <svg> in which case the rect elements will inherit it.

    You may be able to adjust the line’s positions by adding 0.5 to the co-ordinates. See the cairo FAQ for more details on this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is my first major application using multiple classes. It is written in vb
Does using Multiple .NET Languages (Delphi, VB.NET, C#) into the same application (but in
I am using django multiple DB router concepts, having multiple sites with different db's.
I plan on using multiple popups on my website. Every popup will be rendered
I am using multiple instances of AVAudioPlayer to play multiple sound files in a
I am using multiple instances of AVAudioPlayer to play multiple audio files simultaneously. I
I am using multiple threads in my application using while(true) loop and now i
I'm using multiple threads in my application. Basically I have a combo box and
I am using multiple choice ListView items. The user can select multiple items. So
Are there any advantages or disadvantages to using multiple assignment in a statement? In

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.