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

Message ListMessage List     Post MessagePost Message

  Problem with makeTmpFile and SVG format
Posted by Antonio Barea on Nov-16-2018 17:14
Good morning.
We are using chartdirector V6.1
In classic ASP, we are trying to obtain graphics in SVG format and we allways get them in PNG
I resume the code

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

Set c = cd.XYChart(992, 480)
Call c.enableVectorOutput()
Set plotArea = c.setPlotArea(10, 100, c.getWidth() - 160, c.getHeight() - 80, _
        , -1, cd.Transparent, c.dashLineColor(&Haa000000, cd.DotLine), -1)

.....

Call c.packPlotArea(leftMargin + 2, 10, c.getWidth() - 3, c.getHeight() - 3)

chart1URL = c.makeTmpFile(Server.MapPath("/tmpcharts"), "SVG")
%>
<img class="img-responsive" src="tmpcharts/<%=chart1URL%>" border="0">


If need mor information, pls ask.

thanks in advance
Regards

  Re: Problem with makeTmpFile and SVG format
Posted by Peter Kwan on Nov-16-2018 22:10
Hi Antonio,

Instead of "SVG", pleaes try cd.SVG, like:

chart1URL = c.makeTmpFile(Server.MapPath("/tmpcharts"), cd.SVG)

Hope this can help.

Regards
Peter Kwan

  Re: Problem with makeTmpFile and SVG format
Posted by Antonio Barea on Nov-30-2018 16:00
Thanks for your answer.

We try first with constant 5 and it works fine.