Jump to content
Software FX Community

ChartFX98, Radar chart type and Stripes


User (Legacy)

Recommended Posts

:-(

My client is looking for the functionality that will allow me to fill the

radar chart background with Y-Axis from 0 to 100 with 3 colors : 0-33: red;

33-66:yellow; 66-99:green. Since stripes are not supported, is there another

way of doing it? Q1313290 mentions a new CT_RADARAREA flag available. Would

i be able to use this to achieve the needed functionality? If so, what

version is it available in?

Thanks again,

Igor

"SoftwareFX Support" <noreply@softwarefx.com> wrote in message

news:IvSdxEPwEHA.1120@webserver3.softwarefx.com...

> Sorry. Stripes are not supported in Radar charts.

>

> You can change the color of the drawing area by doing:

>

> chart.Rgb3DBk := <color>;

>

> --

> FP

> Software FX

>

post-2830-13922398178466_thumb.jpg

Link to comment
Share on other sites

CT_RADARAREA may work for you.

This flag can be set in the TypeMask property either globally

(chart.TypeMask) or per-series (series.TypeMask). What it does is instead of

drawing a line it fill the whole area.

The following VB sample show how to do what you need:

ChartFX1.Series(0).TypeMask = ChartFX1.Series(0).TypeMask Or CT_RADARAREA

ChartFX1.Series(1).TypeMask = ChartFX1.Series(1).TypeMask Or CT_RADARAREA

ChartFX1.Series(2).TypeMask = ChartFX1.Series(2).TypeMask Or CT_RADARAREA

ChartFX1.OpenDataEx COD_COLORS, 4, 0

ChartFX1.Series(0).Color = RGB(0, 255, 0)

ChartFX1.Series(1).Color = RGB(255, 255, 0)

ChartFX1.Series(2).Color = RGB(255, 0, 0)

ChartFX1.Series(3).Color = RGB(0, 0, 0)

ChartFX1.CloseData COD_COLORS

ChartFX1.OpenDataEx COD_VALUES, 4, 0

For i = 0 To ChartFX1.NValues

ChartFX1.ValueEx(0, i) = 100

ChartFX1.ValueEx(1, i) = 66

ChartFX1.ValueEx(2, i) = 33

ChartFX1.ValueEx(3, i) = Rnd() * 100 ' Actual value to be plotted

Next i

ChartFX1.CloseData COD_VALUES

--

FP

Software FX

post-2830-13922398182412_thumb.jpg

Link to comment
Share on other sites

Great! What version of CFX is CT_RADARAREA available in? I have CFX98 

4.0.19.0 and I do not see it in ChartfxLib_TLB..

Thanks again!

Igor

"SoftwareFX Support" <noreply@softwarefx.com> wrote in message

news:qby3PWTwEHA.1120@webserver3.softwarefx.com...

> CT_RADARAREA may work for you.

>

> This flag can be set in the TypeMask property either globally

> (chart.TypeMask) or per-series (series.TypeMask). What it does is instead

> of drawing a line it fill the whole area.

>

> The following VB sample show how to do what you need:

>

> ChartFX1.Series(0).TypeMask = ChartFX1.Series(0).TypeMask Or CT_RADARAREA

> ChartFX1.Series(1).TypeMask = ChartFX1.Series(1).TypeMask Or CT_RADARAREA

> ChartFX1.Series(2).TypeMask = ChartFX1.Series(2).TypeMask Or CT_RADARAREA

>

> ChartFX1.OpenDataEx COD_COLORS, 4, 0

> ChartFX1.Series(0).Color = RGB(0, 255, 0)

> ChartFX1.Series(1).Color = RGB(255, 255, 0)

> ChartFX1.Series(2).Color = RGB(255, 0, 0)

> ChartFX1.Series(3).Color = RGB(0, 0, 0)

> ChartFX1.CloseData COD_COLORS

>

>

> ChartFX1.OpenDataEx COD_VALUES, 4, 0

> For i = 0 To ChartFX1.NValues

> ChartFX1.ValueEx(0, i) = 100

> ChartFX1.ValueEx(1, i) = 66

> ChartFX1.ValueEx(2, i) = 33

> ChartFX1.ValueEx(3, i) = Rnd() * 100 ' Actual value to be plotted

> Next i

> ChartFX1.CloseData COD_VALUES

>

>

> --

> FP

> Software FX

>

Link to comment
Share on other sites

Outstanding! Works very well, just what the customer wanted. Thanks!!!!!!!

i

"SoftwareFX Support" <noreply@softwarefx.com> wrote in message

news:cTkLsQbwEHA.3492@webserver3.softwarefx.com...

> You need the latest SP and the latest Wrapper.

>

> Both can be obtained at http://support.softwarefx.com/chartfx/

>

> Under Service Pack.

>

> --

> FP

> Software FX

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...