我试图在任何一张图表中更改轴行程和轴字体颜色。我尝试使用任何图表的常规方法,但它没有工作。 有没有办法改变这些价值观?
答案 0 :(得分:0)
您可能正在寻找这些方法:
https://api.anychart.com/7.14.3/anychart.core.stock.Plot#yAxis https://api.anychart.com/7.14.3/anychart.core.stock.Plot#xAxis
以下是一个示例:https://jsfiddle.net/vmgwemws/
chart.plot(0).yAxis().stroke("Red");
chart.plot(0).yAxis().ticks().stroke("Red");
chart.plot(0).yAxis().labels().fontColor("Red");
chart.plot(0).yAxis().labels().fontFamily("Courier");
chart.plot(0).xAxis().labels().fontColor("Red");
chart.plot(0).xAxis().labels().fontFamily("Courier");
chart.plot(0).xAxis().minorLabels().fontColor("Red");
chart.plot(0).xAxis().minorLabels().fontFamily("Courier");
chart.plot(0).xAxis().background("Gray 0.5");