Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing Axis color leave initial color visible on chart #638

Closed
rteuteu55 opened this issue Sep 23, 2022 · 2 comments
Closed

Changing Axis color leave initial color visible on chart #638

rteuteu55 opened this issue Sep 23, 2022 · 2 comments

Comments

@rteuteu55
Copy link

Describe the bug
when an Axis color is changed the initial color of the Ticks and Subticks remain on the chart

To Reproduce
Steps to reproduce the behavior:

  1. create a chart
  2. Set Axis color (Ticks and Subticks for example)
  3. change color (Ticks and Subticks)
  4. See error

Expected behavior
I assume this initial color should not remain

Screenshots
ColorChangeIssue

Desktop (please complete the following information):

  • OS: [Windows]
  • Version [2.0.400 Beta]
@rteuteu55
Copy link
Author

rteuteu55 commented Sep 23, 2022

The button code in case it helps:

private void button3_Click(object sender, EventArgs e)
        {
            SolidColorPaint colorTmp = new SolidColorPaint(colorList[random.Next(0, 14)]);
            (yAxis[0] as Axis).LabelsPaint = colorTmp;
            (yAxis[0] as Axis).TicksPaint = colorTmp;
            (yAxis[0] as Axis).SubticksPaint = colorTmp;
            (yAxis[0] as Axis).SeparatorsPaint = colorTmp;
            //
            colorTmp = new SolidColorPaint(colorList[random.Next(0, 14)]);
            (yAxis[1] as Axis).LabelsPaint = colorTmp;
            (yAxis[1] as Axis).TicksPaint = colorTmp;
            (yAxis[1] as Axis).SubticksPaint = colorTmp;
            (yAxis[1] as Axis).SeparatorsPaint = colorTmp;
        }

beto-rodriguez added a commit that referenced this issue Sep 28, 2022
@beto-rodriguez
Copy link
Owner

Thanks for the report, this issue is fixed with the referenced commit and will be included in the next version of the library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants