Home Forums WinForms controls Xceed Chart for WinForms DepthPercent confusion

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #19221 |

    I’m making a scatter-XY line chart, and want to use gradients for the lines. As best as I can tell, this requires using LineStyle = LineSeriesStyle.Tube and using DepthPercent to control the line width (I was using StandardLine2DUC as a guide for this). The DepthPercent in this example is just 10, but for me to achieve a similar line width in my charts, I need to set the DepthPercent to around 10,000. For lines that are around 5 pixels wide, I need to set this to 2,000. At a setting of 10 or 50, the line is so thin that it’s not even a complete line. Additionally, this thickness varies by a factor of around 3 on various of my charts; DepthPercent of 2,000 will give me a line around 5 pixels wide for most, but up to 15 pixels wide for others.

    Is there some critical setting I’m missing? Is the DepthPercent width calculation somehow using X and Y dimensions to figure out how wide to make the lines? This seems strange, since it’s supposedly in model units, and Points don’t suffer this size inconsistency.

    Imported from legacy forums. Posted by Paul (had 883 views)

    User (Old forums)
    Member
    Post count: 23064

    With some more experimentation, it looks like part of the factor is the number of Line series that I’m using this way in a chart. If it’s a single series with a bunch of points, the gradient line is generally fairly visible (though it still changes width in different scenarios, and I’m not sure why), but if I increase the number of series that I’m using, even if all the points and connections are the same (i.e., using a separate line series for each line connection between successive points), the width of the line drops significantly.

    Perhaps there’s another way to do what I’m trying to do. Right now I’m graphing a scatter-XY plot of data for historical data, but time is not one of the axes. I want to have the oldest point be a particular color and the newest point be a particular color and all the points in between should grade between those colors; this is the simple part, though it does involve making ~200 different point series. Additionally, I want the same sort of color-grading line connecting the points in chronological order. The simple way to do this is to also use ~200 line series, because a single series will repeat the exact same gradient along each segment, so I need to have only one segment per series. The problem is, apparently the more of these series I create, the thinner my lines get.

    Imported from legacy forums. Posted by Paul (had 1129 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.