Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jkriDK opened this issue Jul 1, 2015 · 9 comments
Open

Comments

@jkriDK
Copy link

jkriDK commented Jul 1, 2015

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?

@imclem
Copy link
Owner

imclem commented Jul 1, 2015

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

@jkriDK
Copy link
Author

jkriDK commented Jul 1, 2015

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

@Tek4
Copy link
Collaborator

Tek4 commented Jul 1, 2015

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.

@larssb
Copy link

larssb commented Aug 12, 2015

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.

@me-abhi
Copy link

me-abhi commented Sep 8, 2016

Hi,

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

@markzolotoy
Copy link

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

@imclem
Copy link
Owner

imclem commented Jan 5, 2021

@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

@markzolotoy
Copy link

markzolotoy commented Jan 5, 2021

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants