Add warning that setting ClassName
will drop all other inline styles
This commit is contained in:
parent
0739404bd6
commit
9529f9cfe2
1 changed files with 1 additions and 0 deletions
|
@ -15,6 +15,7 @@ func inlineSVGWithClasses(res http.ResponseWriter, req *http.Request) {
|
||||||
"<body>"))
|
"<body>"))
|
||||||
|
|
||||||
pie := chart.PieChart{
|
pie := chart.PieChart{
|
||||||
|
// Note that setting ClassName will cause all other inline styles to be dropped!
|
||||||
Background: chart.Style{ClassName: "background"},
|
Background: chart.Style{ClassName: "background"},
|
||||||
Canvas: chart.Style{
|
Canvas: chart.Style{
|
||||||
ClassName: "canvas",
|
ClassName: "canvas",
|
||||||
|
|
Loading…
Reference in a new issue