Generates HTML code that represents an inline color box.
Inline color boxes are useful as legend icons in creating legends dynamically. However, it is not easy to create inline color boxes (boxes that can flow with text similar to a character) that behaves consistently in all browsers.
This method returns an HTML inline color box that is designed to work consistently in all browsers supported by
JsChartViewer. Note that to support IE 7 or below, this method requires the file "spacer.gif" to be in the same directory as the Javascript. (The "spacer.gif" is a file included in the ChartDirector distribution. It is a transparent GIF image 1 x 1 pixel in size.) Without this file, the box will always have a grey border in IE 7 or below.
© 2023 Advanced Software Engineering Limited. All rights reserved.