anystock 中的轴行程?
Axis stroke in anystock?
我正在尝试更改 anystock 图表中的轴笔划和轴字体颜色。我尝试对任何图表使用常规方法,但没有用。
有没有办法改变这些值?
您可能正在寻找这些方法:
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");
我正在尝试更改 anystock 图表中的轴笔划和轴字体颜色。我尝试对任何图表使用常规方法,但没有用。 有没有办法改变这些值?
您可能正在寻找这些方法:
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");