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

  • Home
  • SEARCH
  • 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 8521177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:44:47+00:00 2026-06-11T06:44:47+00:00

Drawing very simple tables with little rectangles as icons for a simple bar chart:

  • 0

Drawing very simple tables with little rectangles as icons for a simple bar chart:

http://jsfiddle.net/AbTX9/1/

Would like to allow user to copy the table to clipboard (e.g. to a doc, spreadsheet) with both the numbers and if possible, the rectangles.

I like how the natural select-copy-paste works well for the numbers in the table, copying them intelligently to Excel, PPT, Word etc. as HTML and Notepad/TextEdit as plain text.

But might there be a way to copy the bars as well? I’m mentally imagining it pasting as an HTML table that looks kind of like this, or to Excel with a shape in the corresponding cells. I tried three ways:

  • Div: <div style="width: 100px; height: 10px; background-color:#AAA;"></div>
  • Img: <img src="http://www.moneteam.com/images/BlueRectangle.jpg" height="12px" width="100px"/>
  • SVG: <rect x=80 y=10 width=100 height=12 fill="#A44"/>

With Div and Img, the numbers copy great as tables, but not the bars. With SVG again just the numbers copy, but just as a line of numbers.

Mainly looking for a hint for a likely workable approach, not expecting someone to program it for me. If its not possible to do that, that would be good to know as well.

Unlike most of the threads I can find, ctrl+C/cmd+C is fine, it needn’t be programmatically placed on clipboard. And if it didn’t work on every last browser that could be okay too.

  • 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-11T06:44:48+00:00Added an answer on June 11, 2026 at 6:44 am

    you can try this….

        <h1>Table with bars</h1>
    <table style="width:250px; background-color: #EEE;">
    <tr><td width="49">apples</td>
        <td colspan="4" bgcolor="#FF0000"></td>
        <td width="21"></td>
        <td width="41">100</td>
        </tr>
    <tr><td>bananas</td>
        <td colspan="3" bgcolor="#FF0000"></td>
        <td width="31"></td>
        <td></td>
        <td>60</td></tr>
    <tr><td>cherries</td>
        <td width="27" bgcolor="#FF0000">&nbsp;</td>
        <td width="24">&nbsp;</td>
        <td width="25">&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>36</td>
      </tr>
    <tr><td>dates</td>
        <td colspan="3" bgcolor="#FF0000">&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>20</td>
      </tr>
    </table>
    

    u can try to apply some css property to make it beautiful 🙂

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

Sidebar

Related Questions

I need to make a very simple drawing of a graph (NOT a chart
A very simple base class: class Figure { public virtual void Draw() { Console.WriteLine(Drawing
Currently, i'm experimenting with a very simple GUI drawing ... engine (i guess you
I have a very simple AS3 app that draws few circles using drawing api
I've a very simple / minimal code Android application. I'm drawing some lines on
I just developed a very simple ActiveX control(using the VS.NET wizard, not even change
Here is my very simple xaml: <Window x:Class=Test.Window1 xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml Title=Window1 Height=300 Width=300 Background=Black
I planned to arrange simple progress bar for my media player, drawing a colored
I wanted to very quickly to make a simple drawing app for iOS, but
I'm trying to implement a very simple drawing view in my app. This is

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.