By Alexander Sorich - Thursday, July 14, 2011
Hello, i'm using a chart for .NET I have a serie and fill this from DataView.
DataView myView = new DataView(DataTable xyz);
((NLineSeries)serie).XValues.FillFromDataView(myView, XXX); ((NLineSeries)serie).Values.FillFromDataView(myView, YYY);
It is possible to make a tooltip for the Datapoints in serie in the chart?
Best Regards, Alexander
|
By Nevron Support - Friday, July 15, 2011
Hello Alexander,
You have to add a tooltip interactivity tool:
nChartControl1.Controller.Tools.Add(new NTooltipTool());
You also have to specify the tooltip format, for example:
series.InteractivityStyle.Tooltip.Text = "<value>";
|
By Alexander Sorich - Sunday, July 17, 2011
Hello Nevron Support Team. Thank You for the answer. it works!
How can i set the xvalue if i have DateTime on the X-Axis? I have serie.InteractivityStyle.Tooltip.Text = " X = ; Y = ; Z = "; At the moment if i have a DateTime on the X-Axis i have a tooltip for example: X = 40746,102 ; Y = 123 ; Z = 345
What is the right format of xvalue?
Best Regards, Alexander
|
By Nevron Support - Monday, July 18, 2011
Hello Alexander,
You can set the format the format of the X values like this:
series.XValues.ValueFormatter = new NDateTimeValueFormatter(DateTimeValueFormat.ShortDateLongTimeAMPM);
There are many format options and you can set a custom format string if necessary.
|
|