Profile Picture

how to add tooltip for linechart

Posted By soundara lakshmi 12 Years Ago
Author
Message
soundara lakshmi
sad Posted 12 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)

Group: Forum Members
Last Active: 11 Years Ago
Posts: 6, Visits: 1
Hi,
i am getting below exception,
i am using SurfaceChartLegendRenderer for legend ,


System.InvalidOperationException was unhandled
Message=Handle is not initialized.
Source=mscorlib
StackTrace:
at System.Runtime.InteropServices.GCHandle.Free()
at Nevron.GraphicsGL.lI1lIIII1.l1l1II11Il()
at Nevron.GraphicsGL.l1111I11l.Deactivate()
at Nevron.GraphicsGL.GLBitmapRenderSurface.Deactivate()
at Nevron.GraphicsGL.lI1lIIII1.lI1l111I(Boolean lIlI1lI1)
at Nevron.GraphicsGL.lI1lIIII1.ClearDeviceSpecificResources()
at Nevron.GraphicsGL.lI1lIIII1.Dispose()
at Nevron.Chart.NChartRenderingContext3D.Dispose(Boolean disposing)
at Nevron.Chart.NChartRenderingContext.Finalize()
InnerException:


Please help in resolve this problem...

while running the code sometimes its shows this error.


Attachments
Neron.bmp (86 views, 533.00 KB)
Nevron Support
Posted 12 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

What Is the environment you're using the control (WinForms / WebForms)? In general you need to add the tooltip tool to the control not the series - for example:

NChartControl1.Controller.Tools.Add(new NTooltipTool());



Best Regards,
Nevron Support Team



soundara lakshmi
Posted 12 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)

Group: Forum Members
Last Active: 11 Years Ago
Posts: 6, Visits: 1
Hi,
for WinForms environment i need to add tooltip for line chart,

LineChart linechart = new LineChart();
linechart .Controller.Tools.Add(new NTooltipTool());// Controller -> is not available
please help me...

Niranjan Singh
Posted 12 Years Ago
View Quick Profile
Forum Member

Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)

Group: Forum Members
Last Active: 4 Years Ago
Posts: 49, Visits: 179
Are you adding lineChart to NChartControl object, nChartControl1 is by default added when you drop Nevron Chart Control on the form.

your linechart is inherited to NChart not the NChartControl class of ChartControl, so check this code snippet as i am creating these chart control and chart in code..

private NChartControl chartControl;
chartControl = new NChartControl();


NChart chart = new NChart();

chartControl.Charts.Add(chart);/// chart is your lineChart..

so chartControl.Controller.Tools.Add(new NTooltipTool()) will work.









Similar Topics


Reading This Topic