Add warning that setting ClassName will drop all other inline styles

This commit is contained in:
hashworks 2018-09-24 22:55:21 +02:00
parent 0739404bd6
commit 9529f9cfe2
No known key found for this signature in database
GPG key ID: 402E6341CF634B3B

View file

@ -15,6 +15,7 @@ func inlineSVGWithClasses(res http.ResponseWriter, req *http.Request) {
"<body>"))
pie := chart.PieChart{
// Note that setting ClassName will cause all other inline styles to be dropped!
Background: chart.Style{ClassName: "background"},
Canvas: chart.Style{
ClassName: "canvas",