NChart Methods |
The NChart type exposes the following members.
Name | Description | |
---|---|---|
AddScaleLegend |
Add scale legend.
| |
AddSeries |
Add series to chart.
| |
AddSeriesSettings |
Add global settings for the series. If you previously set some settings, they will be overwritten by new ones.
| |
AlignCenter |
Change position so that the chart is aligned to the center of the screen. This method takes effect in 3D mode only.
| |
BeginTransaction |
Begin data chnaging transaction. You should call this method before any changes of chart settings/data in separate
thread. After the changes are made, you should call EndTransaction. The typical use-case of
multithreading in NChart3D is the streaming - the realtime data updating.
There is no sense to call this method in main thread.
| |
Close | ||
EndTransaction |
End data changing transaction.
See also BeginTransaction.
| |
Equals | (Inherited from Object.) | |
ExtendData |
Force chart to extend the points arrays of series. Only newly added data are processed by this call.
Minimums and maximums may change.
Call this method always you want to extend the data array without changing old data.This method causes
series to query new portion of data through ExtraPoints(NChartSeries^ series)
call of their data sources.But you cannot extend the array of points forever, so there is a property
PointsHistoryLength that determines the length of history.
The difference with UpdateData() is that only newly added points are processed and the array of these points is
queried through ExtraPoints(NChartSeries^ series) call of
NChartSeriesDataSource.This can save you time by updating large data sets.
| |
FitToScreen |
Change zoom and position so that the chart fits the screen (with current rotation, if in 3D).
| |
FlushChanges |
Synchronize all the changes with visual appearance. You may call this method after all your data is updated (it means
after you called updateData and PlayTransition because PlayTransition
only says that transition should start playing and does not wait till it plays completely) to ensure that the visual
appearance will be updated as soon as possible.
You may call this method on the big dataset to reduce lag between your updateData call and actual updating.
| |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
PlayTransition |
Play animated transition from old state to new one. The old state is cached automatically, so the only thing you need
to do for animation is to change the series (by calling AddSeries / RemoveSeries / RemoveAllSeries) or data in
the series (by updating data source and calling UpdateData) and than call PlayTransition.
State is cached when UpdateData is called.
| |
RebuildSeries |
Force series to rebuild by reloading data from data source. Call this method when you know that the chart layout
(including layout of axes, so min and max values) has not changed, but the data in series has. This method invokes
UpdateSeries automatically. Data is not processed by this call, so values on axes remain unchanged. Use this method
if you are absolutely sure minimums and maximums have not changed!
| |
Relayout |
Force chart to relayout. Call this method if you made some changes but do not want to update data. A call of
UpdateData invokes relayout automatically.
| |
RemoveAllScaleLegends |
Remove all scale legends.
| |
RemoveAllSeries |
Remove all series from chart.
| |
RemoveAllSeriesSettings |
Remove all the global settings for the series.
| |
RemoveScaleLegend |
Remove scale legend.
| |
RemoveSeries |
Remove series from chart.
| |
RemoveSeriesSettings |
Remove all the global settings for the series by given type.
| |
ResetTransformations |
Reset all transformations to initial values.
| |
ResetTransition |
Reset transition by cleaning up the cache made from the previous UpdateData call. Call this method if you want to
see animation from the default start positions as if you just started the app.
| |
RotateAroundXToAngle(Single, Single, Single) |
Rotate chart around the X-Axis (horizontal axis) with animation (has effect in 3D mode only).
| |
RotateAroundXToAngle(Single, Single, Single, INChartInterpolator) |
Rotate chart around the X-Axis (horizontal axis) with animation (has effect in 3D mode only).
See NChartInterpolator for details.
| |
RotateAroundYToAngle(Single, Single, Single) |
Rotate chart around the Y-Axis (vertical axis) with animation (has effect in 3D mode only).
| |
RotateAroundYToAngle(Single, Single, Single, INChartInterpolator) |
Rotate chart around the Y-Axis (vertical axis) with animation (has effect in 3D mode only).
See NChartInterpolator for details.
| |
RotatePolarToAngle(Single, Single, Single) |
Rotate polar coordinate system with animation (has effect in 2D mode only).
| |
RotatePolarToAngle(Single, Single, Single, INChartInterpolator) |
Rotate polar coordinate system with animation (has effect in 2D mode only).
See NChartInterpolator for details.
| |
SeriesSettings |
Get settings of given settings class. If there were no settings set, default settings container for the given
type is returned.
| |
StopTransition |
Stop transition. This will stop all the transition animations, even if they are not played till the end or if they
where delayed and did not even start animating.
| |
StreamData |
Stream the data. This causes the updating of chart to display new states of points. The data are going to be
processed, so minimum and maximum on the axes may change. Use this method in the following use-case: if your set
of points was not changed, but the values in the states of points do, you can update the chart thrugh this method
much faster than through regular UpdateData.
The difference with RebuildSeries is that StreamData _does not_ reload data from data source,
but _does_ the optimized data processing (it's faster than regular data processing). Series will use the points they
already have (the points are mutable, so you can change their data anywhere you want).
The difference with UpdateSeries is that StreamData is even faster and _does_ the optimized data
processing. So use it to reflect some realtime "streaming" changes of data.
This method requires StreamingMode to be on, use StreamingMode = true for this.
The first appearance of series should be initialized by the UpdateData call. StreamData is to
change the already displayed series only.
| |
ToString | (Inherited from Object.) | |
UpdateData |
Force chart to be updated. Call this method when you want to reload data from the data source and rebuild the chart.
Data are processed by this call and minimums / maximums on axes are calculated.
| |
UpdateSeries |
Force series to be updated without reloading data from data source. Call this method when you want to reflect
some changes you made in the visual appearance of a series (brush, etc.). A call of RebuildSeries invokes
UpdateSeries automatically.
| |
ZoomTo |
Zoom of the chart. The default zoom is 1 which corresponds to the fitting the chart to screen (both in 2D and 3D).
The zooming is proportional. If you want non-proportional zoom in 2D mode, you should use ZoomToRegionFrom method of NChartValueAxis.
If you want to alter the initial zoom, you should change the value of this property after UpdateData call.
|