Skip to Content
author's profile photo Former Member
Former Member

Y Axis label color inherits Pen color and not the default Label color.

Hi,

How do I enforce my Y Axis Label to taken the default color specified in the iChart Y-Axis Label Color property instead of picking it from the Pen color selected from the legend? I have a Y-Axis Label called "Total Stock", I can very well change the Label text using method

document.TestChart.getChartObject().setYAxisLabel("Label from code");

But when I use a similar

document.TestChart.getChartObject().setYAxisLabelColor(Color);

property, I dont see the color change on the screen. But when I get the color using a getYAxisLabelColor() method , the specified input Color is set. My Label in the Y-Axis, always inherits the Pen color of the selected Legend Item, by default the first Item color on Page Load.

Settings done in the iChart:

Use Selected Pen for label : Unchecked

Y Axis Label Color: #000000

Y Axis Label : Total Stock

Show Y Axis Label: Checked.

I appreciate your help,

Ajitha

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Dec 05, 2011 at 02:51 PM

    Make sure you are passing a color object into the method, and not an HTML color code string. The applets have a createColor method that will take a #XXXXXX code and create the color object necessary for methods expecting a color. There are some methods for assigning color that end with ...AsString(XXXXX) which do not require a color object, but direct assigments to display template color properties will need the object, not the color string.

    Add a comment
    10|10000 characters needed characters exceeded

    • The settings you are using appear to be working correctly, but it looks like the new Y-Axis label text does not follow the same behavior as the Y-Axis scale. So the Y-Axis numbers will follow the selected pen color, or stay fixed on a common color, but the Y-Axis label text does not mirror this behavior.

      My suggestion would be to raise a support ticket.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.