Simple Horizontal Bar Graph using php

后端 未结 3 1976
鱼传尺愫
鱼传尺愫 2021-01-01 08:11

I have seen a facebook application in which clicking on a radio button renders a graph.

As you can see below:

I wanted to know whether t

3条回答
  •  无人及你
    2021-01-01 09:00

    actually, generating this kind of graph is pretty easy - just use two DIVs - one is a 100% width bar, another DIV is in that first DIV making background colored % you require. you can even include text in that. easy, just plain HTML/CSS.

    UPDATE:

    HTML:

    This is 66% wide div

    CSS:

    .bar { width: 99%; border: 1px solid #000; }
    .percentage { background: #000; }
    

提交回复
热议问题