Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Line thickness and scatter type in linechart (Read 2160 times)
abhi dhotre
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 28
Joined: Jul 12th, 2017
Line thickness and scatter type in linechart
Jul 18th, 2017 at 7:45pm
Print Post  
Hi,
I want to set thickness of the line in line chart. I tried UniformSeriesThickness and SeriesStrokeThickness but it doesn't seem to work. I also want to set the scatter type for the chart and size of the scatter.
Thanks,
Abhi D  Smiley
  
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: Line thickness and scatter type in linechart
Reply #1 - Jul 19th, 2017 at 3:01pm
Print Post  
Hi,

You can see a larger thickness set in LineChart sample project like this -

Code
Select All
lineChart.Plot.SeriesStyle = new MixedSeriesStyle()
{
    ....
    UniformStrokeThickness = 5
}; 



Note that if you have assigned a SeriesStyle to either separate series or the Plot, this will have higher priority than values you assign to the chart.Theme.

It seems we don't have direct properties to customize the scatter shape and size in line charts. You can specify them like this instead -

Code
Select All
lineChart.ShowScatter = true;
var scatterRenderer = lineChart.Plot.
    SeriesRenderers.OfType<ScatterRenderer>().FirstOrDefault();
if (scatterRenderer != null)
{
    scatterRenderer.Shape = ScatterType.Diamond;
    scatterRenderer.ShapeSize = 20;
} 



Regards,
Slavcho
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint