Jump to content
Software FX Community

AxisSection on Scatter chart background color as block instead of strip


Recommended Posts

This doesn't appear possible in chartfx 2005 winforms or webforms but figured

I'd ask.  Is it possible to create four blocks each with very different colors

in a scatter chart as a quadrant?

Black   Blue

Read Green

I've looked at the samples that "appear" to support this.

However, if you change the sample colors, you don't

get the expected result.  I don't see anything but a from and to

as designators for each axis.  So, you can't designate top, left,

bottom, right.

Anybody got any suggestions?

Link to comment
Share on other sites

There is no fautre that does exactly that but you can simulate something similar using axis sections:

1) Create 2 Axis Sections in the X-Axis going from Min to (Min + Max)/2 and (Min + Max)/2 to Max respectivley.

2) Do the same for the Y-Axis

3) Set the colors of those sections in the X-Axis semi-transparent so that they will not completely obscure the sections in the Y-Axis.


 chart1.AxisX.Sections.Add(new AxisSection(chart1.AxisX.Min,(chart1.AxisX.Min + chart1.AxisX.Max) / 2,Color.FromArgb(128,Color.Red)));  chart1.AxisX.Sections.Add(new AxisSection((chart1.AxisX.Min + chart1.AxisX.Max) / 2,chart1.AxisX.Max,Color.FromArgb(128,Color.Blue)));

 chart1.AxisY.Sections.Add(new AxisSection(chart1.AxisY.Min,(chart1.AxisY.Min + chart1.AxisY.Max) / 2,Color.Yellow));  chart1.AxisY.Sections.Add(new AxisSection((chart1.AxisY.Min + chart1.AxisY.Max) / 2,chart1.AxisY.Max,Color.Orange));

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...