Chart advence features.

View: New views
4 Messages — Rating Filter:   Alert me  

Chart advence features.

by noam.elyashiv :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi everybody,

I am trying to create a chart the the y-axis grid lines change their
color as it advanced. For example 0-20 green, 20-50 yellow and 50-100 red.

Please help me with that.


Re: Chart advence features.

by tripp.bridges :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

With charts, you can specify different colors for major and minor
gridlines but you cannot specify different colors for each gridline.
You will not be able to style the gridlines as you describe below.

Thanks,
Tripp

--- In ydn-javascript@..., "noam.elyashiv"
<noam.elyashiv@...> wrote:
>
> Hi everybody,
>
> I am trying to create a chart the the y-axis grid lines change their
> color as it advanced. For example 0-20 green, 20-50 yellow and
50-100 red.
>
> Please help me with that.
>



Re: Chart advence features.

by noam.elyashiv :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

OK

Lets say that Y-Axis is static.
Do i have an option to set background image that have color changing as
i mentioned in my previus comments?

I tried to do it but with no success, do you have any idea how to make
it happend??

Thanks,
Noam Elyashiv


Re: Chart advence features.

by tripp.bridges :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
There is a style property called background that allows you to set an
image for the background of the entire SWF. If your chart was static
as you describe, you could conceivably craft an image to create your
effect as a background image.

You would also need to set you majorGridLines and minorGridLines size
style to 0 so that they would not cover the lines on your image.

style:{
        background:{image:"[BACKGROUND_IMAGE_URL]"},
        yAxis:{
                majorGridLines:{size:0},
                minorGridLines:{size:0}
        }
}

Thanks,
Tripp
 
--- In ydn-javascript@..., "noam.elyashiv"
<noam.elyashiv@...> wrote:

>
> OK
>
> Lets say that Y-Axis is static.
> Do i have an option to set background image that have color changing as
> i mentioned in my previus comments?
>
> I tried to do it but with no success, do you have any idea how to make
> it happend??
>
> Thanks,
> Noam Elyashiv
>


LightInTheBox - Buy quality products at wholesale price