010-68421378
sales@cogitosoft.com
Categories
AddFlow  AmCharts JavaScript Stock Chart AmCharts 4: Charts Aspose.Total for Java Altova SchemaAgent Altova DatabaseSpy Altova MobileTogether Altova UModel  Altova MapForce Altova MapForce Server Altova Authentic Aspose.Total for .NET Altova RaptorXML Server ComponentOne Ultimate Chart FX for SharePoint Chart FX CodeCharge Studio ComponentOne Enterprise combit Report Server Combit List & Label 22 Controls for Visual C++ MFC Chart Pro for Visual C ++ MFC DbVisualizer version 12.1 DemoCharge DXperience Subscription .NET DevExpress Universal Subscription Essential Studio for ASP.NET MVC FusionCharts Suite XT FusionCharts for Flex  FusionExport V2.0 GrapeCity TX Text Control .NET for WPF GrapeCity Spread Studio Highcharts Gantt Highcharts 10.0 版 HelpNDoc Infragistics Ultimate  ImageKit9 ActiveX ImageKit.NET JetBrains--Fleet JetBrains-DataSpell JetBrains--DataGrip jQuery EasyUI jChart FX Plus OPC DA .NET Server Toolkit  OSS ASN.1/C Oxygen XML Author  OSS 4G NAS/C, C++ Encoder Decoder Library OSS ASN.1 Tools for C with 4G S1/X2 OSS ASN.1/C# OSS ASN.1/JAVA OSS ASN.1/C++ OPC HDA .NET Server Toolkit OPC DA .Net Client Development Component PowerBuilder redgate NET Developer Bundle Report Control for Visual C++ MFC  Sencha Test SPC Control Chart Tools for .Net Stimulsoft Reports.PHP Stimulsoft Reports.JS Stimulsoft Reports.Java Stimulsoft Reports. Ultimate Stimulsoft Reports.Wpf Stimulsoft Reports.Silverlight SlickEdit Source Insight Software Verify .Net Coverage Validator Toolkit Pro for VisualC++MFC TeeChart .NET Telerik DevCraft Complete Altova XMLSpy Zend Server

Chart FX-Passing Data Using the API Passing Data using the Value property

Chart FX-Passing Data Using the API

Passing Data using the Value property

Sometimes the easiest or most convenient way to pass numerical data to Chart FX is to use the Value property. The Value property allows you to set the numerical value for a point in a particular series in the chart.

 

The Value property takes the index of the series and the index of the point you want to populate – both zero based indexes.

 

For example, if you want to set a value of 40 for point 3 of series 2, you must use the Value property from the chart object passing both the series index of 1 and point index of 2 to the value property, and then assign the value 40.

 

Axes Rescaling

When data is loaded to the chart, by default, Chart FX automatically adjusts the axes Min and Max to guarantee every value is inside the range. This behavior is controlled by the axes AutoScale property. However, if a new set of values is loaded on the same chart, Chart FX will adjust the Min and Max again, only increasing when necessary but never decreasing them, which can affect the chart visualization. To force the Min and Max to be recalculated based on the new set of data, call the axes ResetScale method before loading the new data.

Hidden Points

Chart FX has the ability to create hidden points in the chart. Although Chart FX forces the same amount of points per series, you may specify hidden points to create the illusion of some invisible points in the chart. Assigning the Hidden Chart constant:

 

All you need to do to create a hidden point is to assign the Chart object Hidden constant as a value to a particular point.

Changing Existing Values in the Chart

If you've already populated the chart and all you want to do is change an isolated value; you may do so without repopulating all the data again. As an example, the API calls necessary to make such a change are as follows:

 

Quick Navigation;

© Copyright 2000-2023  COGITO SOFTWARE CO.,LTD. All rights reserved