This is a migrated thread and some comments may be shown as answers.

Trackball and formating information

2 Answers 160 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Antti
Top achievements
Rank 1
Antti asked on 09 Nov 2012, 01:38 PM
Hey,

I'm currently working with implementing new chartview into our reportingsystem . Chartview with it's multiple different options looks quite good, but I ran into problem with trackball and formating information on it. Basically I would like to get multiline box which is located over the lines/boxes and also numeric values with certain format instead of how it looks atm (screenshot edits: removed ends of legend information+ start of y-axis labels due information they had). I'm populating the chartview dynamically from datatable with n-series.

Can this be achieved atm? Did I miss some setting?

(using Q3 2012, vb.net, winforms application)

thx

2 Answers, 1 is accepted

Sort by
0
Accepted
Ivan Petrov
Telerik team
answered on 14 Nov 2012, 11:54 AM
Hello Antti,

Thank you for writing.

You can use the TextNeeded event of the TrackballController to customize the text. Here is an example:
ChartTrackballController trackball = new ChartTrackballController();
trackball.TextNeeded += trackball_TextNeeded;
this.radChartView1.Controllers.Add(trackball);
 
private void trackball_TextNeeded(object sender, TextNeededEventArgs e)
{
  e.Text = "My text";
}

I hope this will be useful. Should you have further questions, I would be glad to help.
 
Regards,
Ivan Petrov
the Telerik team
Q3’12 of RadControls for WinForms is available for download (see what's new). Get it today.
0
Antti
Top achievements
Rank 1
answered on 14 Nov 2012, 12:46 PM
thx, that did it quite well.
Tags
ChartView
Asked by
Antti
Top achievements
Rank 1
Answers by
Ivan Petrov
Telerik team
Antti
Top achievements
Rank 1
Share this question
or