Profile Picture

serie. load from DataView make a tooltip for the Datapoints

Posted By Alexander Sorich 13 Years Ago

serie. load from DataView make a tooltip for the Datapoints

Author
Message
Alexander Sorich
Posted 13 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)

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

Nevron Support
Posted 13 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

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



Alexander Sorich
Posted 13 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)

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

Nevron Support
Posted 13 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

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





Similar Topics


Reading This Topic