Skip to main content

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!

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/


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.

 


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.


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


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.

 


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.

Reply