Group: Forum Members
Last Active: 13 Years Ago
Posts: 9,
Visits: 1
|
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
|
Group: Forum Members
Last Active: Last Week
Posts: 3,054,
Visits: 4,009
|
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>";
Best Regards, Nevron Support Team
|
Group: Forum Members
Last Active: 13 Years Ago
Posts: 9,
Visits: 1
|
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
|
Group: Forum Members
Last Active: Last Week
Posts: 3,054,
Visits: 4,009
|
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.
Best Regards, Nevron Support Team
|