Skip to main content
Question

Edit legend output from HTMLReportGenerator

  • September 5, 2017
  • 6 replies
  • 12 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!

6 replies

david_r
Celebrity
  • 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
  • September 5, 2017
david_r wrote:

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
Evangelist
  • 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+39
  • Influencer
  • 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
Evangelist
  • September 6, 2017
ebygomm wrote:

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
  • September 6, 2017
ebygomm wrote:

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.

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings