ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  HTML characters in titles
Posted by jmr on Mar-09-2015 18:51
Hi,

I would like to insert html character in graphs titles or legend.

If I do:
c.yAxis().setTitle("R?sultat en ?")

This is not displaying the corresponding title: R?sultat en ?

Is there a way to make chart director display the HTML characters ?

Thanks,
Jean-Michel

  Re: HTML characters in titles
Posted by Peter Kwan on Mar-09-2015 23:37
Attachments:
Hi jmr,

ChartDirector can display any character supported by your programming language. For your
case, the programming language is not HTML. It looks like Visual Basic or Python.

If you are using Visual Basic in ASP.NET, you just need to specify the text in the encoding
you are using. For example, if you are using UTF8 file encoding, simply enter the text in
UTF8. (You may refer to the "web.config" in your ASP.NET web site to see which file
encoding your site is using.)

If you are using Python, please use UTF8 encoding.

HTML is for the browser only, and is not used on the server (the server simply passed the
HTML to the browser). For charting, the chart is created on the server side, so HTML
encoding should not be used in charting code. Instead, the the encoding of the server side
programming language should be used.

I have attached a VB example for your reference, The example is using UTF8 encoding,
because my server is using UTF8 for file encoding. You may need to modify the file to fit the
encoding your server is using.

Hope this can help.

Regards
Peter Kwan
simplebar.png
simplebar.aspx
simplebar.aspx

758 bytes