Skip to main content
Question

Edit legend output from HTMLReportGenerator

  • September 5, 2017
  • 6 replies
  • 21 views

barrett_h
Contributor
Forum|alt.badge.img+1

Hi all,

Does anyone know if it is possible to hack the code used to generate the legend of a chart created by HTMLReportGenerator?

The attached image shows how cramped the legend becomes when there is more than a couple of words used in the description. I have tried to edit the bootstrap classes used by the appropriate div but without success. I don't know bootstrap well so I'm not sure if this is even possible. Any pointers would be appreciated!

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

6 replies

david_r
Celebrity
  • 8394 replies
  • September 5, 2017

Could using the ChartGenerator to generate the chart as a raster first then inserting it into the HTMLReportGenerator be a solution?

That way you could also use direct rather than indirect legends:

Source: https://www.goodly.co.in/8-best-chart-formatting-practices/


barrett_h
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • 16 replies
  • September 5, 2017

Could using the ChartGenerator to generate the chart as a raster first then inserting it into the HTMLReportGenerator be a solution?

That way you could also use direct rather than indirect legends:

Source: https://www.goodly.co.in/8-best-chart-formatting-practices/

Thanks for the suggestion David, that really worked well. Hopefully in the future the HTMLReportGenerator will be further customisable as it is an awesome transformer and I do miss the animation of the pie chart :). Thanks again.

 


takashi
Celebrity
  • 7843 replies
  • September 6, 2017

This seems to be a known issue on the HTMLReportGenerator, which I reported with C119382 last year and has been filed as PR#72076. The issue is more serious in Japanese characters. Every character is arranged vertically one-by-one, like this...

I want to use the HTMLReportGenerator in various scenarios, but cannot do it yet because of this issue. Hope this will be fixed as soon as possible.


ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3434 replies
  • September 6, 2017

You could try a string replacer with the following (I've not tested across all browsers but works for me in Chrome and IE)


takashi
Celebrity
  • 7843 replies
  • September 6, 2017

You could try a string replacer with the following (I've not tested across all browsers but works for me in Chrome and IE)

Thanks for the workaround @egomm. Looks very good on Chrome,

 

but still is not ideal on IE for Japanese characters.

 


barrett_h
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • 16 replies
  • September 6, 2017

You could try a string replacer with the following (I've not tested across all browsers but works for me in Chrome and IE)

That's the kind of hack I thought might exist! That's a handy bit of code @egomm. The project is already out the door with the work around suggested by @david_r but I'll keep that for next time. Cheers.