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

Message ListMessage List     Post MessagePost Message

  ChartDirector image not display on IE 10/11/Edge for some data
Posted by Pankaj Singh on Mar-26-2019 20:20

ChartDirector image not display on IE 10/11/Edge. We are using 2D Donut chart for displaying course status.
Statuses are :-
1.Not started
2.In progress
4.Not completed

The data array formatting is like
$data = array(0,0,25,75);
In this case chart Director render image  on browser other than  IE 10/11/Edge not displaying image.But on IE 10 and above it is not showing any donut image.

The strange thing is that, if we change the data to

$data = array(25,25,25,25);

donut image is diplaying.

Please do let us know how we can solve the issue, we are stuck on this.


  Re: ChartDirector image not display on IE 10/11/Edge for some data
Posted by Peter Kwan on Mar-27-2019 17:40
Hi Pankaj,

I have just tried myself with the attached code, which is a 2D donut chart with data (0, 0, 25, 75). It works normally in my case in all browsers.

ChartDirector runs on the server side and it does not know what browser is used. So it can only output the same image for all browsers.

Are your web page accessible from the Internet? If it is accessible from the Internet, please provide me with the URL for the donut chart. I can monitor the communication between the server and the browser to determine what bytes are sent from the server to different browsers. This can help to determine the cause of the problem.

If your web page is not accessible from the Internet, is it possible to provide an example that can illustrate the problem? May be you can try my attached code to see if it works in your case. If my code works normally, you may try to modify it to make it not work in IE only, then send the resulting code to me.

Peter Kwan

# The percentage to display
$data = array(0, 0, 25, 75);
$labels = array("AAA", "BBB", "CCC", "DDD");

# The chart size
$size = 400;

$c = new PieChart($size + 100, $size);

# Set the donut (x, y) center and the outer and inner radius
$c->setDonutSize($size / 2, $size / 2, $size / 2.5, $size / 5);
$c->addLegend($size, $size / 2)->setAlignment(Left);

# Set the data to plot
$c->setData($data, $labels);
$c->setLabelStyle("normal", 8, Transparent);

# Output the chart
header("Content-type: image/png");