Jump to content

When using the following code I can create a triangle COMPUT...


Ben Maxwell

Recommended Posts

There are different ways to create/display circle icons; best way would depend upon your requirements.

One way using CSS:

DEFINE FILE CAR

COLOR/A24 = IF SALES EQ 0 THEN 'red' ELSE 'green';

CIRCLE/A124 = '<span class="dot ' | COLOR | '"></span>';

END

-*

TABLE FILE CAR

PRINT CAR

MODEL

SALES

CIRCLE AS ''

ON TABLE PCHOLD FORMAT HTML

ON TABLE SET STYLE *

INCLUDE=IBFS:/WFC/Repository/stylesheets/ENWarm.sty, $

ENDSTYLE

END

-RUN

-HTMLFORM BEGIN

<style>

.dot {

height: 25px;

width: 25px;

border-radius: 50%;

display: inline-block;

}

.red {

background-color: red;

}

.green {

background-color: green;

}

</style>

-HTMLFORM END

 

 

image.png374572 42.2 KB

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...