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

Message ListMessage List     Post MessagePost Message

Posted by sean laks on Jun-16-2022 07:04
Hi ,

I see 3 different methods for makeChart

makeChart (write to a file based on ext)
makeChart2 (write to memory)

Are these methods available in Java version too? I came across these under Python docs.

  Re: makeChart
Posted by Peter Kwan on Jun-16-2022 14:43
Hi Sean Laks,

Yes, they are available in the Java version too. See:

Best Regards
Peter Kwan

  Re: makeChart
Posted by sean laks on Jun-16-2022 20:00
Got it Thanks

  Re: makeChart
Posted by Sean Laks on Jun-26-2022 02:52
Hi Peter

   I was able to use makeChart2 method and generate a SVG output. I realized that the output in this case is a byte array that then converted to string to embed in my HTML.

   Similarly what is the output format for the other types [makeChart2(1,2,3,4,6,7)] and associated transformation - if needed to embed in HTML file?

   If the o/p format for each parameter is mentioned in the documentation, please let me know and I can refer to that.


  Re: makeChart
Posted by Peter Kwan on Jun-27-2022 22:49
Hi Sean,

The chart output in the PNG/JPG formats are just standard PNG/JPG images. They can be included in HTML just like normal PNG/JPG images.

The most common method to include an image in a web page is to use the <IMG> tag in HTML. There are two common methods.

(1) Include an IMG tag with a URL to the image, like <IMG SRC="/path/to/aaa.png">. The image is in a separate PNG/JPG file. The BaseChart.makeChart method can create the chart image file.

(2) Include the image bytes in HTML by including an <IMG> tag with data URL. The BaseChart.makeChart2 can provide you with the image bytes.

Best Regards
Peter Kwan