Issues When Using Null Points and Sphere Points
Posted: Thu Feb 23, 2012 7:26 pm
Stemma,
I have encountered a couple more problems when working with Steema's Line Charts. The first problem that I encountered is if a null point's color does not match the color of the series line, some of the points will still be drawn. Using TeeCharts 4.1.2012.1031 with a blank chart with one series, and executing the following code after Initializing the components:
Results in the following plot being drawn:
I would expect that since the points are null and the color is transparent that the points at x = 6, 7, 8 and 9 would not be visible on the chart. However, point 6 is hidden and the others are visible with no lines in between each point. This only occurs if the brush color of the points is specifically set. Ommitting "line1.Pointer.Brush.Color = Color.Red;" in the code sample above will cause points 6, 7, 8, and 9 not to be drawn as expected.
The next issue I am encountering is when using the point type of "Sphere", sometimes the point is not drawn in the legend or is partially clipped in the legend. This seems to only occur when the legend is at the bottom of the plot and the point type is a Sphere. The following picture shows the problem:
Here only the first line in the legend is drawn correctly. The next line is partially clipped and the remaining lines have no symbol at all. It appears to me that there is a clipping region that is being incorrectly set and is cutting off the bottom of the chart.
I am wondering if there are any viable workarounds for these issues or if they are bugs in TeeChart? Thanks for your help.
Michael Demoret
I have encountered a couple more problems when working with Steema's Line Charts. The first problem that I encountered is if a null point's color does not match the color of the series line, some of the points will still be drawn. Using TeeCharts 4.1.2012.1031 with a blank chart with one series, and executing the following code after Initializing the components:
Code: Select all
int? nullInt = null;
line1.Pointer.Brush.Color = Color.Red;
for (int i = 0; i < 25; i++)
{
if (i > 5 && i < 10)
tChart1[0].Add(i, nullInt, Color.Transparent);
else
tChart1[0].Add(i, i);
}
I would expect that since the points are null and the color is transparent that the points at x = 6, 7, 8 and 9 would not be visible on the chart. However, point 6 is hidden and the others are visible with no lines in between each point. This only occurs if the brush color of the points is specifically set. Ommitting "line1.Pointer.Brush.Color = Color.Red;" in the code sample above will cause points 6, 7, 8, and 9 not to be drawn as expected.
The next issue I am encountering is when using the point type of "Sphere", sometimes the point is not drawn in the legend or is partially clipped in the legend. This seems to only occur when the legend is at the bottom of the plot and the point type is a Sphere. The following picture shows the problem:
Here only the first line in the legend is drawn correctly. The next line is partially clipped and the remaining lines have no symbol at all. It appears to me that there is a clipping region that is being incorrectly set and is cutting off the bottom of the chart.
I am wondering if there are any viable workarounds for these issues or if they are bugs in TeeChart? Thanks for your help.
Michael Demoret