Page 1 of 1
create custom mark?
Posted: Fri Dec 08, 2006 6:15 am
by 9638303
Dear Sir
How do create custom mark? because I want the TChart mark display
Percentage and Value.
Thank
Eric
Posted: Fri Dec 08, 2006 3:18 pm
by Pep
Hi Eric,
you can customize the Mark text by using the GetSeriesMark event of the Series.
Please see the help for details.
Posted: Mon Dec 18, 2006 2:16 am
by 9638303
Can you please give me some sample code?
Your think that is enought information from TChart Help.chm
Triggered on placing Mark for each Series Point. Use this method to modify the Mark Text content.public GetSeriesMarkEventHandler GetSeriesMark
Remarks
Triggered on placing Mark for each Series Point. Use this method to modify the Mark Text content.
Eric
Posted: Mon Dec 18, 2006 7:22 am
by Marjan
Hi.
The following example uses series GetSeriesMarj event to customize individual mark text:
Code: Select all
public Form1()
{
InitializeComponent();
line1.Marks.Visible = true;
line1.FillSampleValues();
}
private void line1_GetSeriesMark(Steema.TeeChart.Styles.Series series, Steema.TeeChart.Styles.GetSeriesMarkEventArgs e)
{
// mark displays point pct and value
double value = series.YValues[e.ValueIndex];
double pct = value/series.YValues.TotalABS;
e.MarkText = value.ToString()+" " +pct.ToString("0.00 %");
}
Posted: Mon Dec 18, 2006 7:46 am
by 9638303
Dear Sir
Thank...