Jump to content
Software FX Community

Point Color

User (Legacy)

Recommended Posts

I would like to know if is possible to set the same color to differents

series of differents points.

When you create one graphic, default colors are set for the series. I know

is possible to change these colors, but I had some problem. My problem was

when I set the same color for differents series of differents points, the

color that was shown was with differents brightness and intensity.

Someone knows what I'm doing wrong?

My code is:

PointAttributes bluePoints = new PointAttributes(chart1);

bluePoints.Color = Color.Blue;

PointAttributes blackPoints = new PointAttributes(chart1);

blackPoints.Color = Color.Black;

PointAttributes brownPoints = new PointAttributes(chart1);

brownPoints.Color = Color.Brown;

chart1.Point[0,0] = blackPoints;

chart1.Point[0,1] = bluePoints;

chart1.Point[0,2] = blackPoints;

chart1.Point[0,3] = blackPoints;

chart1.Point[1,0] = brownPoints;

chart1.Point[1,1] = blackPoints;

chart1.Point[1,3] = brownPoints;

chart1.Point[2,0] = blackPoints;

chart1.Point[2,3] = blackPoints;

chart1.Point[3,0] = bluePoints;

Thank you

Link to comment
Share on other sites

I don't see anything wrong with this chart. The chart appears to have many

series yet you are setting the colors for only the first four (and for some

of the points only). So the other color are default, the color that are

setting to bluePoints, will be all blue.

I think you are confused about which points you are setting the colors to.

How many series/points this chart has ?



Software FX, Inc.

Link to comment
Share on other sites


Could you help me how can I set DataType's ?

I set it, but it is not right.



chart1.DataType[0] = DataType.Label;

chart1.DataType[1] = DataType.Value;

chart1.DataType[2] = DataType.Value;

chart1.DataType[3] = DataType.Value;

chart1.DataType[4] = DataType.Value;

chart1.Gallery = Gallery.Gantt;

chart1.AxisY.DataFormat.Format = SoftwareFX.ChartFX.AxisFormat.DateTime;



About CrossTab data provider, where can I have more informations about it?



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...