Hello,
I am working on creating a scatter chart for a presentation. For this I have been able to set the colors of each data points' color by using the DataFormat.MarkerForegroundColor and DataFormat.MarkerBackgroundColor. However, I can't seem to find the method to use for setting the data point's transparency. I can set it manually in the chart once the presentation has been created. But I want this to be done through the code. Am I missing something? I have tried using the ARGB color (Syncfustion.Drawing.Color.FromArgb), but that seems to be ignored. I have also tried using the DataFormat.Fill.Transparency and that too seems to be ignored.
Any help or suggestions would be appreciated.
Hi Edward,
We have fixed the reported “Scatter
chart data point marker transparency is not applied properly” issue
at our end and we have prepared the custom patch NuGet for the reported issue
in v19.2.0.55. Please find the custom patch NuGet from the below link:
https://www.syncfusion.com/downloads/support/directtrac/general/ze/syncfusion.officechart.net.core.19.2.0.551324738412
The status of this bug report can be tracked through the
below link:
https://www.syncfusion.com/feedback/33423/scatter-chart-data-point-marker-transparency-is-not-applied-properly
Note: If you require the custom NuGet in our latest version 19.4.0.56 means, we
will provide the fix in that version also.
Regards,
Lokesh B
Yes, please. I am currently using version 19.4.0.43. But I can update to 19.4.0.56.
Also, does this patch enable the use of the Alpha in the ARGB color, or will it use the Transparency element?
Hi Edward,
We have prepared the custom patch NuGet for the reported issue “Scatter chart data point marker
transparency is not applied properly” in
v19.4.0.56. Please find the custom patch NuGet from the below link:
https://www.syncfusion.com/downloads/support/directtrac/general/ze/syncfusion.officechart.net.core.19.4.0.56-1264615822
We will include the fix for the reported
issue in our upcoming weekly NuGet release once our 2022 Volume 1 is rolled out
which we excepted on the first week of April 2022 tentatively.
The status of this bug report can be tracked through the below
link:
https://www.syncfusion.com/feedback/33423/scatter-chart-data-point-marker-transparency-is-not-applied-properly
Regarding Also, does this patch enable the use of the Alpha in the ARGB
color, or will it use the Transparency element?
It works with the Transparency API value set.
Regards,
Lokesh B
Okay, maybe I'm not doing this right. I took the patch and copied it into the folder that has these NuGet packages, overwriting the original file. I did a refresh of the project and even closed out VS and reopened it.
I removed the reference to the "A" component of the RGB colors. Then, I set the IOfficeChartSerie.DataPoints.DataFormat.MarkerBackgroundColor and the IOfficeChartSerie.DataPoints.DataFormat.MarkerForegroundColor. And then for the Transparency, I set the IOfficeChartSerie.DataPoints.DataFormat.Fill.Transparency to 0.2.
I am not seeing any difference. Is there something I missed?
Hi Edward,
We have
tried to reproduce the reported problem using the shared NuGet package but, it
works properly at our end. For your reference, we have attached the sample
application which we used to reproduce the reported issue using the NuGet package and
generated output PDF document at our end from the below attachment.
Please refer to the screenshot of the output document generated at our end and
the transparency is set properly.
We suspect that the reported issue might be due
to NuGet are not referred to properly in your machine.
We suggest you try the below solutions to
resolve the reported problem on your side.
1.Kindly remove the NuGet packages
referred in your application
2.Delete the respective NuGet packages in
“.nuget” folder which is available in “C:\Users\{XXX}\.nuget\packages” folder
location.
3.Then install the NuGet packages again in
your application.
4.Clean the solution, rebuild, and run the
application.
Regards,
Lokesh B
Okay, so to be clear: Uninstall the Syncfusion NuGet packages from my Visual Studio project (this includes the Syncfusion.Presentation and the Syncfusion.Licensing). Then delete all the nuget package files from my C:\Users\..\.nuget\packages folder...all files with "syncfusion". Then, I go and reinstall the the original from the installer....??
I did remove the Synfusion.Presentation NuGet package. But when I tried to reinstall it through the NuGet Package manager, it won't find it or any other package with the "Syncfusion" name. Are these no longer available through NuGet?
Never mind, I had to change the Package source. Doh!
Hi Edward,
We need to
remove the syncfusion.officechart.net.core NuGet package only from your
application and no need to delete all NuGet packages in the .nuget folder.
1.Kindly
remove the NuGet packages(syncfusion.officechart.net.core) referred in your
application.
2.Delete
the respective NuGet packages(syncfusion.officechart.net.core) in “.nuget”
folder(“19.4.0.56” folder) which is available in
“C:\Users\{XXX}\.nuget\packages” folder location.
3.Then
install the NuGet packages(syncfusion.officechart.net.core) again which we
provided in your application.
4.Clean
the solution, rebuild, and run the application.
Regarding
when I tried to reinstall it through the NuGet
Package manager, it won't find it or any other package with the
"Syncfusion" name.
Can you please check the NuGet
package under nuget.org as shown in the below screenshot.
Regards,
Lokesh B
Hi Edward,
As promised earlier, we have included the fix for the reported issue with “Scatter
chart data point marker transparency is not applied properly" in our
latest weekly NuGet release (v20.1.0.48).
Please use the below link to download our latest weekly NuGet:
https://www.nuget.org/packages/Syncfusion.Presentation.Net.Core/20.1.0.48
The status of this bug task can be tracked through the below link:
https://www.syncfusion.com/feedback/33423/scatter-chart-data-point-marker-transparency-is-not-applied-properly
Note: We will include this fix in our 2022 Volume 1 SP release which will
be available in mid of May 2022.
Regards,
Manikandan Ravichandran