I’m working with Highcharts on a React view. For accessibility and SEO reasons, I want to customize the desc
tag, but I couldn’t figure out how to do it looking in the documentation. Highcharts automatically inserts a desc
tag like this:
<desc>Created with Highcharts 6.2.0</desc>
Is there any way to change this or is this hard-coded?
2
Answers
You can use this solution:
(1) Create a fork from https://github.com/highcharts/highcharts
(2) Change the content what hard-coded from
to
(3) Install npm package from GitHub directly
like this https://stackoverflow.com/a/13302095/3728901
You can modify the
<desc>
tag by wrappingH.SVGRenderer.init
method:Live demo: http://jsfiddle.net/BlackLabel/42rqezns/
Docs: https://www.highcharts.com/docs/extending-highcharts/extending-highcharts