Skip to content

Commit c1d127e

Browse files
committed
use prefix and suffix to render dynamic ticks with mathjax
1 parent 988cde1 commit c1d127e

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed
936 Bytes
Loading
975 Bytes
Loading

test/image/mocks/ternary-mathjax.json

+4-6
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
"title": {
3232
"text": "$B^2$"
3333
},
34+
"tickprefix": "$\\sqrt",
35+
"ticksuffix": "^2$",
3436
"showline": true,
3537
"showgrid": true
3638
},
@@ -41,12 +43,8 @@
4143
"showline": true,
4244
"showgrid": true,
4345
"labelalias": {
44-
"0": "$0^2$",
45-
"20": "$20^2$",
46-
"40": "$40^2$",
47-
"60": "$60^2$",
48-
"80": "$80^2$",
49-
"100": "$100^2$"
46+
"20": "$(\\sqrt20)^2$",
47+
"60": "<i><b>Sixty<b><i>"
5048
}
5149
}
5250
},

0 commit comments

Comments
 (0)