Dear Sir
How do create custom mark? because I want the TChart mark display
Percentage and Value.
Thank
Eric
create custom mark?
Hi Eric,
you can customize the Mark text by using the GetSeriesMark event of the Series.
Please see the help for details.
you can customize the Mark text by using the GetSeriesMark event of the Series.
Please see the help for details.
Pep Jorge
http://support.steema.com
http://support.steema.com
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
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
Hi.
The following example uses series GetSeriesMarj event to customize individual mark text:
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 %");
}
Marjan Slatinek,
http://www.steema.com
http://www.steema.com