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

Message ListMessage List     Post MessagePost Message

  FinanceChart could not output as svg ?
Posted by simbabest on Apr-04-2014 08:48
Like other ChartType, I used  enableVectorOutput() method as I created the FinanceChart object  . However I tried, I could not get the output as svg format. By default the png format is certainly supported.
Who can help me ?

  Re: FinanceChart could not output as svg ?
Posted by Peter Kwan on Apr-05-2014 00:52
Hi simbabest,

The FinanceChart is just a container for multiple XYChart objects (the main price charts,
the indicator charts, etc). In the current version of ChartDirector, the enableVectorOutput
must be applied to all BaseChart objects (XYChart and FinanceChart are both BaseChart
objects). So for FinanceChart, it needs to be applied like (in C#/Java):


FinanceChart c = new FinanceChart(.........);
c.enableVectorOutput();

......

XYChart mainPriceChart = c.addMainChart(....);
mainPriceChart.enableVectorOutput();

......

XYChart myIndicatorChart = c.addRSI(.....);
myIndicatorChart.enableVectorOutput();

......


In short, if an API returns a new XYChart, the enableVectorOutput needs to be called for
that XYChart as well.

Regards
Peter Kwan