Skip to main content

Is it possible to use the ChartGenerator output chart without writing it to a PNG file first?

In my workspace I'm generating a few charts and I need to use them along with other data in the same workspace to output an html, an excel and a pdf ​files.

For example, you need to do something like this to generate an html file with images. I would have to save charts as temp PNG files to read them again in the same workspace and use some extra transformers to get the PNG as an attribute. Isn't there an easier approach?

Hi @dms2​ 

Did you use the transformer MapnikRasterizer?

 

Thanks in Advance,

 

Danilo


@dms2​ 

For formats that support writing rasters such as Excel and PDF, you can send the ChartGenerator output directly to the writer--there is no need to write them to file first.

For HTML/text formats that do not support raster geometry, you can use the RasterExtractor transformer to extract the raster geometry into an attribute. This process does not require writing the raster to files.

I hope this helps.


@dms2​ 

For formats that support writing rasters such as Excel and PDF, you can send the ChartGenerator output directly to the writer--there is no need to write them to file first.

For HTML/text formats that do not support raster geometry, you can use the RasterExtractor transformer to extract the raster geometry into an attribute. This process does not require writing the raster to files.

I hope this helps.

The RasterExtractor transfomer is what I needed.

Thanks!


Reply