NYCBabak . Posted January 12, 2021 Share Posted January 12, 2021 Try #x25cf instead of #x25B2 Link to comment Share on other sites More sharing options...
David Briars Posted January 12, 2021 Share Posted January 12, 2021 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 More sharing options...
Ben Maxwell Posted January 12, 2021 Author Share Posted January 12, 2021 When using the following code I can create a triangle COMPUTE LEN/A100 = IF CAR.SPECS.LENGTH GT 1000 THEN '<span style=color : orange;> &|#x25B2; ELSE 0; How can I change this code so I can create a circle instead Link to comment Share on other sites More sharing options...
Warren Hinchliffe Posted January 13, 2021 Share Posted January 13, 2021 The answer here very much relies on the output format. PDF would be different to HTML for example Link to comment Share on other sites More sharing options...
Ben Maxwell Posted January 13, 2021 Author Share Posted January 13, 2021 When I run this in IE I the icons come come across as squares. When I run this in Chrome they now come across as circles. My company is currently using IE - any thoughts if there is a way to tweak the code in IE so the circles appear and not the squares Link to comment Share on other sites More sharing options...
NYCBabak . Posted January 13, 2021 Share Posted January 13, 2021 One solution may be to use an image instead of the code. Link to comment Share on other sites More sharing options...
David Beagan Posted January 13, 2021 Share Posted January 13, 2021 Good example. The style sheet reference appears to be specific to your environment. I believe the following would work for most environments: INCLUDE=IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Warm.sty,$ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now