Sign in to follow this  
shiri

Cant display hebrew in pie labels/tool tips

Recommended Posts

Hi,I am trying to display pie with hebrew labels.

my js file looks like :

document.write(

' <div id="PieDiv" align="center"></div>');

var chart = new FusionCharts("../FusionCharts/Pie2D.swf", "embPie", "400", "300", "0", "0");

chart.setDataURL("generatePieData.jsf");

chart.render("embPieDiv");

 

while the generatePieData.jsp file looks like :

<%@

page contentType="text/xml; charset=UTF-8"%><%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%><%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%><f:view><h:outputText value="#{bean.pieXML}" escape="false" /></f:view>

bean.pieXML retrieves:

<chart bgColor="00FFFF" bgAlpha="0" showBorder="0" baseFontSize="11" baseFontColor="001b54" showPercentValues="1" labelSepChar="=" chartLeftMargin="20" animation="1">chartRightMargin="20"><set label="??" value="8452.0" /><set label="???" value="8034.0" /><set label="????" value="7940.0" /><set label="42" value="7926.0" /><set label="45" value="7648.0" /></chart>

and the pie is diaplyed with bed labels.

note that if the generatePieData.jsp  looks like:

<%@ page contentType="text/xml; characterset=UTF-8"%><chart bgColor="00FFFF" bgAlpha="0" showBorder="0" baseFontSize="11" baseFontColor="001b54" showPercentValues="1" labelSepChar="=" chartLeftMargin="20" animation="1">chartRightMargin="20"><set label="??" value="8452.0" /><set label="???" value="8034.0" /><set label="????" value="7940.0" /><set label="42" value="7926.0" /><set label="45" value="7648.0" /></chart>

meaning without dynamic data ,I see the labels well.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this