Highcharts-export-module-asp.net icon indicating copy to clipboard operation
Highcharts-export-module-asp.net copied to clipboard

Renderer text is not shown when downloading "pdf", "jpeg" and "pdf" files

Open jkriDK opened this issue 10 years ago • 9 comments

Hi! I have an issue related to "Highcharts-export-module-asp.net". As you maybe know it is possible to add your own text (renderer feature) to a chart like shown in the following jsfiddle:

http://jsfiddle.net/8y3d9rua/2/

and described here:

Docs: •http://api.highcharts.com/highcharts#Renderer.text •http://api.highcharts.com/highcharts#chart.events.load

Unfortunately the renderer text is not shown when downloading "pdf", "jpeg" and PDF file? The renderer text is included when printing or when downloading in svg format. So those two options are working. Any ideas for how to get the renderer text included also in pdf, jpeg or PDF files?

jkriDK avatar Jul 01 '15 05:07 jkriDK

Hi!

This is what the module does:

  • It gets a SVG file from an AJAX query made by Highcharts itselfs
  • It uses SVG.dll to convert this SVG to bitmap
  • It converts Bitmap to every possible format

You can try to download the "SVG" version and see if the text is shown ? (I assume that it is because you said it wasn't for PDF and jpeg and you haven't specified SVG).

If it is, then it's probably a problem with SVG.dll, in this case consider waiting a little bit @Tek4 is preparing a new release with a new version of SVG.dll.

If even SVG does not contain this text it's probalby Highcharts who does not render it to the SVG.

Hope this helps

imclem avatar Jul 01 '15 06:07 imclem

Hi!

Thank you for your comment.:_) And "yes" when downloading a chart in SVG format the text is shown.

The problem with the missing text are related to PNG, JPEG and PDF file formats

jkriDK avatar Jul 01 '15 06:07 jkriDK

jkriDK,

The graphic on your screen or printer is rendered by your browser. The graphic exported by this project is rendered by SVG.dll, which is a SEPARATE component not under the control of this project. Most likely, SVG.dll is rendering the SVG code incorrectly. In some cases, Highcharts is/was the problem. In either case, your issue cannot be solved here.

On the other hand, within a few days or less, I will be updating SVG.dll to a new v.2.0.0 version which recently became available. I will post here when I push the update. Hopefully, the new SVG.dll will solve your issue; otherwise, you need to direct your issue to the author of the SVG.dll component.

Tek4 avatar Jul 01 '15 06:07 Tek4

Hi Tek4,

I'm also anxious for testing if v.2.0.0 helps resolve this issue. Are you getting near to updating the SVG.dll to v2 for this project :-) ?

Looking forward to hear from you....thank you very much.

larssb avatar Aug 12 '15 08:08 larssb

Hi,

I am getting Overflow Error on this line CreateSvgDocument().Draw().Save( seekableStream, ImageFormat.Png);

me-abhi avatar Sep 08 '16 13:09 me-abhi

I am bit confused by the product. Is it for a client side exporting? Or can convert the provided chart definition and data into an image? If later how can I do it? I am running: http://localhost:8001/default.aspx and getting an actual chart. What I want is an image of this chart without client exporting.

Thanks

markzolotoy avatar Jan 02 '21 20:01 markzolotoy

@markzolotoy no it is for server side exporting. It can convert the provided chart to different format, but the rendering is done on the server

imclem avatar Jan 05 '21 07:01 imclem

So, how do I convert a chart? Can you please show available commands? URL example? I am on a hot project, please help. I am reading your reply again. So, when I select "download ...." from the dropdown menu the actual conversion is taking a place on the server, right? The UI is sending chart's SVG as a parameter. Is that how it works?

markzolotoy avatar Jan 05 '21 12:01 markzolotoy

Yeah... seems like it is working that way. What I need is to generate an image on the server from provided chart definition and the data. No SVG is available. Any idea about that? Also the generated image does not match the original chart. Original image Generated image

markzolotoy avatar Jan 05 '21 15:01 markzolotoy