Do you have a website or a web application that caters to an international audience? Then you would like to offer your product information and sales copy in the language of their choice. Let’s assume you already do so. But what about your charts? Wouldn’t you like your charts in reports, dashboards, surveys or any other part of the application to be multi-lingual too? Wouldn’t that further increase your credibility?
FusionCharts Suite v3.1 now allows your charts and maps to go international too. While FusionCharts Suite v3 allowed you to use multi-lingual characters horizontally, v3.1 allows you to use them vertically too. So with v3.1, you can render your charts like this:
Yes, we do agree that you would not ideally like to have a chart with such a motley assortment of languages. But then you get the point, don’t you?
Table of Contents
Before we talk about how exactly can you have multi-lingual characters in your charts, let’s briefly talk about the two ways in which FusionCharts takes its input XML data:
To use multi-lingual characters on the chart, you need to use UTF-8 encoded XML and the XML file/stream requires a BOM stamp to be present as the very first 3 Bytes of the file. BOM stands for Byte Order Mark and is an indicator that the file is containing UTF-8 encoded strings.
Adding the BOM stamp is a very simple process and can be done as follows depending on which method you are using:
In case you are using a static XML file, you can manually insert the BOM stamp to the XML data file following these 3 steps:
In Windows Notepad, the process would look like this:
But in most of the cases, you would not really be using a static XML file. You would rather be having server side scripts virtually relaying the XML data document to the chart. In that case, you could use either of the following methods:
header ( 'Content-type: text/xml' ); echo pack ( 'C3 , 0xef, 0xbb, 0xbf' );
To implement BOM stamp with other server-side technologies, please visit our online documentation on this here.
Just like adding BOM stamp to a static XML files, in this case as well you would need to save the file containing the chart SWF and XML with BOM stamp. This needs to be done when the script/HTML file is created for the first time before you start coding in it.
Modern Angular applications often rely on data visualization to help users understand trends, compare metrics,…
You can build complex web applications easily with Angular. But it’s a challenge to present…
JavaScript charts help transform raw data into clear, interactive visualizations that users can easily understand.…
Modern web applications depend on data visualization to transform complex information into clear, actionable insights.…
Data is a big part of modern software. Companies use charts to track sales, monitor…
Every day, businesses get more data than ever before. Looking at endless rows and columns…
View Comments
I'm impressed, I must say. Rarely do I come across a blog that's both educative and entertaining, and let me tell you, you've hit the nail on the head. The problem is something not enough folks are speaking intelligently about. I'm very happy that I came across this during my search for something relating to this.
Thanks Jaqueline!
Please forgive my English.Hello very nice web site!! Guy .. Beautiful .. Superb .. I will bookmark your web site and take the feeds additionally.I'm glad to seek out a lot of helpful information right here in the submit, we want work out more techniques on this regard, thanks for sharing. . . . . .