I tried almost every property i saw\recognized
None of this options sets a color for a marker:
(here i’m trying to set almost red\burgundy color)
But doesn’t work on ur lastest stable version 24.5
I tried almost every property i saw\recognized
None of this options sets a color for a marker:
But doesn’t work on ur lastest stable version 24.5
this tried too
series.Marker.Format.Fill.Color = (Color)WidgetSettingsExtractor.ExtractColorBasedOnThemeVS(additionalSettings.Themes, markerSettings.MarkerColor);
@bloodboilAaromatic Unfortunately, I cannot reproduce the problem on my side. I used the following simple code for testing:
Document doc = new Document(@"C:\Temp\in.docx");
Chart chart = ((Shape)doc.GetChild(NodeType.Shape, 0, true)).Chart;
foreach (ChartSeries s in chart.Series)
{
s.Marker.Symbol = MarkerSymbol.Square;
s.Marker.Size = 10;
s.Marker.Format.Fill.Color = Color.Red;
}
doc.Save(@"C:\Temp\out.docx");
in.docx (27.5 KB)
out.docx (24.7 KB)
As you can see marker color is properly set in the output document.
Could you please attach your problematic input and output documents here for testing? Or provide a console application that will allow us to reproduce the problem. We will test your scenario and provide you more information.
Oh, yeah i get it, i should only use this urs property…
Tried before almost every property in stack but not one by one
So, yeah, now it works
@bloodboilAaromatic It is perfect that you managed to achieve what you need. Please feel free to ask in case of any issues. We are always glad to help you.
Is any reason why u named border (Aspose.Words.Drawing.Charts.ChartFormat) as a “stroke” in your property models?
I can guess only cause u share this model between something else
And again, i already saw a thread where another guy asked why you have “fore color” and “back color” and color
Can u provide a link to ur help page, i want to save it cause this practice of naming is everywhere in ur models and its struggles me by default
@bloodboilAaromatic Such naming was selected to make it match OOXML drawing specification. You can find description of the properties in our documentation:
https://reference.aspose.com/words/net/aspose.words.drawing/stroke/