Last MARK not showing in a line series
Posted: Fri Jan 13, 2012 4:22 pm
After upgrading to ActiveX 2011 we do not see the lst MARK in a line series. The datapoint is active, so we can view tooltips even for that point, but the mark is missing. Here is some client-side code we have dealing with marks and the image below it.
function changeMark(theSIndex,SeriesIndex) {
var theX
var theY
var adjustedIndex
// Adjust from index to value
adjustedIndex = parseInt(theSIndex) + 1;
// Add Annotation tool to chart
if (dpToolFlag == false) {
Chart1.Tools.Add(10);
dpToolFlag = true;
}
//dpToolItemNumber = numTools + 1;
dpToolItemNumber = Chart1.Tools.Count - 1;
if(dpToolItemNumber < 0)
dpToolItemNumber = 0;
numTools = dpToolItemNumber - 1;
Chart1.Tools.Items(dpToolItemNumber).asAnnotation.Shape.CustomPosition = 1;
// Calulate X pos and Y pos from index
theX = Chart1.Series(SeriesIndex).CalcXPos(theSIndex);
theY = Chart1.Series(SeriesIndex).CalcYPos(theSIndex);
// Set position of annotation based on X and Y values
Chart1.Tools.Items(dpToolItemNumber).asAnnotation.Shape.Left = theX;
Chart1.Tools.Items(dpToolItemNumber).asAnnotation.Shape.Top = theY;
// Set the string that will appear in annotation
Chart1.Tools.Items(dpToolItemNumber).asAnnotation.Text = "Point: " + adjustedIndex;
}
function changeMark(theSIndex,SeriesIndex) {
var theX
var theY
var adjustedIndex
// Adjust from index to value
adjustedIndex = parseInt(theSIndex) + 1;
// Add Annotation tool to chart
if (dpToolFlag == false) {
Chart1.Tools.Add(10);
dpToolFlag = true;
}
//dpToolItemNumber = numTools + 1;
dpToolItemNumber = Chart1.Tools.Count - 1;
if(dpToolItemNumber < 0)
dpToolItemNumber = 0;
numTools = dpToolItemNumber - 1;
Chart1.Tools.Items(dpToolItemNumber).asAnnotation.Shape.CustomPosition = 1;
// Calulate X pos and Y pos from index
theX = Chart1.Series(SeriesIndex).CalcXPos(theSIndex);
theY = Chart1.Series(SeriesIndex).CalcYPos(theSIndex);
// Set position of annotation based on X and Y values
Chart1.Tools.Items(dpToolItemNumber).asAnnotation.Shape.Left = theX;
Chart1.Tools.Items(dpToolItemNumber).asAnnotation.Shape.Top = theY;
// Set the string that will appear in annotation
Chart1.Tools.Items(dpToolItemNumber).asAnnotation.Text = "Point: " + adjustedIndex;
}