You are not logged in.
I've had an extremely fun time customizing and integrating AmCharts in my project, but now I'm having a very hard time changing the color of the horizontal (category) axis guide.
To clarify further, I am speaking about the red guide appearing on the horizontal axis guide for a Line chart.
Since there is no example here http://www.amcharts.com/docs/v.2/javasc … ence/guide
and I can't see how can I get the instance of the automatically added to Guide to my CategoryAxis...
I'm running out of ideas and decided to ask this question here.
Thanks in advance,
You can change the color of the guide's line using "lineColor" property. I.e.:
guide.lineColor = "#00ff00";
Thanks for your reply, but it still remains enclear to me how the get the instance of the guide in order to alter its properties.
I dunno how it ended up in this section.
Do you mean you want to alter guide when the chart is already drawn?
You can manipulate properties to the original guide object or you can access them all in valueAxis.guides array. I.e.:
chart.categoryAxis.guides.lineColor = "#00ff00"; chart.validateNow();
Thanks for your reply. It seemed that it answered what I was looking for, but then it turned out chart.categoryAxis.guides is an Empty array !
Ok I'm starting to wander whether I've got the whole thing wrong. Do we, by the term guide refer to the following:
OK, this is not guide it's ChartCursor :)
chart.chartCursor.cursorColor = "#00ff00"; chart.chartCursor.categoryBalloonColor = "#00ff00";
Great. Thanks gemm!!!