Guest Skyler Swanson Posted March 3, 2021 Report Share Posted March 3, 2021 I am having trouble with the boxplot graphic colors. The monochrome flag doesn't seem to do anything and there is no way to change the colors outside of selecting a different palette. The plots are way too colorful for my audience. Any help would be appreciated. Quote Link to comment Share on other sites More sharing options...
JuanC Posted March 4, 2021 Report Share Posted March 4, 2021 You can change the colors used by the boxplot, provided that you execute this code after the data has been passed to the chart and the chart has been set to use boxplot int index = stats.Gallery.BoxPlot.ShowOutliers ? 2 : 1; chart1.Series[index + 1].Color = Color.LightGray; chart1.Series[index + 1].Border.Color = Color.Black; chart1.Series[index + 2].Color = Color.LightGray; chart1.Series[index + 2].Border.Color = Color.Black; chart1.Series[index].Color = Color.Black; chart1.Series[index+3].Color = Color.Black; Please note that indices are different depending on whether you are showing Outliers or not. We will be uploading a hotfix for the ignored BoxPlot.Monochrome property in a couple of days, please note that even after installing the hotfix, you will need code to set the colors you want to use, as Monochrome will mean we share the attributes between the upper and lower whiskers and the upper and lower box, so with the hotfix you would need something like stats.Gallery.BoxPlot.Monochrome = true; chart1.Series[0].Color = Color.LightGray; chart1.Series[0].Border.Color = Color.Black; chart1.Series[3].Color = Color.Black; To download a hotfix you will need to have a valid StudioFX subscription and visit https://www.mysoftwarefx.com/hotfix, you can also post your questions/issues at https://www.mysoftwarefx.com/support. The hotfixes also include new functionality, e.g. we recently added a boolean ShowMedian property to BoxPlot. Regards, JuanC Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.