Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
65
WebChart control the icons by series
posted
HiIs there a way I can control the Icon, the color and the fact that a series is going to have connection with lines?

This is the code that I have:

this.UltraChart1.ScatterChart.Icon = SymbolIcon.Random;

this.UltraChart1.ScatterChart.IconSize = SymbolIconSize.Small;

this.UltraChart1.ScatterChart.ConnectWithLines = true;

The code above makes these changes across the board. I have 5 series. 1 of them, I would like to have a SymbolIcon.Plus for my 1st series. The others, I would prefer that there is no icon. The others, I would like them to be connected be with lines but no icon.

 

Parents
No Data
Reply
  • 26458
    Offline posted

    I think the best way would be to create a composite chart. Each time you create a new scatter layer, you can specify whether or not the points in that layer's series will be connected with lines and what the style of the icons would be. Both Icon and ConnectWithLines apply to chart layers rather than series. 

     Another option is to use FillSceneGraph event (in version 7.3 or later) or a custom layer. This will allow you to manipulate the chart primitives on a lower level and determine which attributes any given PointSet (a group of scatter points) should have.

Children
No Data