Bonjour,

Je voudrais savoir ce qui fait que ce code ne marche pas. Au fait je voudrais afficher un grphique(2 dimmensions) en utilisant la composante suivante, qui est déjà installée sur le PC. Mais quqnd je j'appelle cette page il ya tout un code de caracters bizzares qui saffichent.

Y aurait il une erreur dand les methodes que j'appelle ou autre chose?
Avaez une idée d'une autre chart que je pourrais utiliser sans probleme ?

<%@ language="vbscript" %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
</HEAD>
<BODY>
<img src="ChartGen.asp"/>
<P>&nbsp;</P>

<%
Set cd = Server.CreateObject("ChartDirector.API")

' The data for the bar chart
data = Array(5, 20, 25, 19, 15)

' The labels for the bar chart
labels = Array("Mon", "Tue", "Wed", "Thu", "Fri")

' Create a XYChart object of size 250 x 250 pixels
Set c = cd.XYChart(250, 250)

' Set the plotarea at (30, 20) and of size 200 x 200 pixels
Call c.setPlotArea(30, 20, 200, 200)

' Add a bar chart layer using the given data
Call c.addBarLayer(data)

' Set the labels on the x axis.
Call c.xAxis().setLabels(labels)

' output the chart

Response.ContentType = "image/png"
Response.BinaryWrite c.makeChart2(cd.PNG)
Response.End
%>

</BODY>
</HTML>
Merci d'avance