Xchart and LocalizationLocalization of Xchart is restricted by localization support of SVG (Scalable Vector Graphics) viewer. The SVG viewer must support multibyte characters, and the Adobe SVG viewer supports US-ASCII, ISO-8859-1, UTF-16, and UTF-8 encodings (Adobe). To display any characters, the correct font must be installed. To display localized contents, the font-family should be specified through CSS. The following figure shows Korean characters in Xchart.
Figure 1. Localized chart example In the Figure 1, to show Korean characters, the font family is set to “Gulim”, as shown in the example code below. The style can be also set in the “group” and “segment” element level. <xchart id="bar1" type="barchart" title="Time Report" background-color="#CCCCCC" major-tick-spacing="10" minor-tick-spacing = "2" width="100%" height="100%" style="font-family:Gulim">
|
|
|
COPYRIGHT © 1997–2006
JWAY GROUP, Inc. |
|