Skip to content

Commit a8d1c5e

Browse files
Merge pull request #447 from Syncfusion-Content/hotfix/hotfix-v26.1.35
DOCINFRA-2341_merged_using_automation
2 parents 47da40b + 52e2969 commit a8d1c5e

File tree

234 files changed

+8879
-46044
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

234 files changed

+8879
-46044
lines changed

ej2-react-toc.html

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,9 @@
412412
<li><a href="/ej2-react/chart/preact">Preact</a></li>
413413
</ul>
414414
</li>
415+
<li><a href="/ej2-react/chart/feature-modules">Feature Modules</a></li>
415416
<li><a href="/ej2-react/chart/working-with-data">Working with Data</a></li>
417+
<li><a href="/ej2-react/chart/dynamic-data-update">Dynamic Data Update</a></li>
416418
<li><a href="/ej2-react/chart/chart-dimensions">Chart Dimensions</a></li>
417419
<li><a href="/ej2-react/chart/category-axis">Category Axis</a></li>
418420
<li><a href="/ej2-react/chart/numeric-axis">Numeric Axis</a></li>
@@ -1208,6 +1210,7 @@
12081210
<ul>
12091211
<li><a href="/ej2-react/grid/getting-started">React</a></li>
12101212
<li><a href="/ej2-react/grid/nextjs-getting-started">NextJS</a></li>
1213+
<li><a href="/ej2-react/grid/sharepoint">SharePoint</a></li>
12111214
<li><a href="/ej2-react/grid/preact">Preact</a></li>
12121215
</ul>
12131216
</li>
@@ -1415,6 +1418,7 @@
14151418
<li><a href="/ej2-react/image-editor/finetune">Finetune</a></li>
14161419
<li><a href="/ej2-react/image-editor/resize">Resize</a></li>
14171420
<li><a href="/ej2-react/image-editor/frame">Frame</a></li>
1421+
<li><a href="/ej2-react/image-editor/z-order">Z-Order</a></li>
14181422
<li><a href="/ej2-react/image-editor/localization">Localization</a></li>
14191423
<li><a href="https://ej2.syncfusion.com/react/documentation/api/image-editor/">API Reference</a></li>
14201424
<li><a href="/ej2-react/image-editor/accessibility">Accessibility</a></li>
@@ -1672,6 +1676,11 @@
16721676
<li><a href="https://ej2.syncfusion.com/react/documentation/api/message/">API Reference</a></li>
16731677
</ul>
16741678
</li><li>
1679+
MultiColumn ComboBox
1680+
<ul>
1681+
<li><a href="/ej2-react/multicolumn-combobox/getting-started">Getting Started</a></li>
1682+
</ul>
1683+
</li><li>
16751684
MultiSelect
16761685
<ul>
16771686
<li><a href="/ej2-react/multi-select/getting-started">Getting Started</a></li>
@@ -1716,6 +1725,11 @@
17161725
</li>
17171726
<li><a href="/ej2-react/numerictextbox/ej1-api-migration">Migration from Essential JS 1</a></li>
17181727
</ul>
1728+
</li><li>
1729+
OTP Input
1730+
<ul>
1731+
<li><a href="/ej2-react/otp-input/getting-started">Getting Started</a></li>
1732+
</ul>
17191733
</li><li>
17201734
Pager
17211735
<ul>
@@ -1783,6 +1797,7 @@
17831797
<li><a href="/ej2-react/pdfviewer/form-designer/create-with-user-interface-interaction">Create form fields with UI interaction</a></li>
17841798
</ul>
17851799
</li>
1800+
<li><a href="/ej2-react/pdfviewer/organize-pdf">Organize Pages</a></li>
17861801
<li><a href="/ej2-react/pdfviewer/print">Print</a></li>
17871802
<li><a href="/ej2-react/pdfviewer/download">Download</a></li>
17881803
<li><a href="/ej2-react/pdfviewer/globalization">Globalization</a></li>
@@ -1809,10 +1824,12 @@
18091824
<li><a href="/ej2-react/pdfviewer/how-to/load-n-number-page">Load N number of pages on initial loading</a></li>
18101825
<li><a href="/ej2-react/pdfviewer/how-to/toolbar-icon-customization">Customize toolbar</a></li>
18111826
<li><a href="/ej2-react/pdfviewer/how-to/conformance">Supported conformance documents</a></li>
1812-
<li><a href="/ej2-react/pdfviewer/how-to/organize-pdf">Organize Pages Feature</a></li>
18131827
<li><a href="/ej2-react/pdfviewer/how-to/custom-context-menu">Customize context menu</a></li>
18141828
<li><a href="/ej2-react/pdfviewer/how-to/pagerenderstarted-pagerendercompleted-event">PageRenderInitiate and PageRenderComplete event</a></li>
1815-
<li><a href="/ej2-react/pdfviewer/how-to/open-bookmark">Open and Close Bookmark pane programmatically </a></li>
1829+
<li><a href="/ej2-react/pdfviewer/how-to/open-bookmark">Open and Close Bookmark pane programmatically</a></li>
1830+
<li><a href="/ej2-react/pdfviewer/how-to/signatureselect-signatureunselect">SignatureSelect and SignatureUnselect event</a></li>
1831+
<li><a href="/ej2-react/pdfviewer/how-to/download-start-event">Controlling File Downloads</a></li>
1832+
<li><a href="/ej2-react/pdfviewer/how-to/min-max-zoom">Minimum and Maximum Zoom Properties</a></li>
18161833
</ul>
18171834
</li>
18181835
<li>Troubleshooting
@@ -1974,6 +1991,8 @@
19741991
<li><a href="/ej2-react/query-builder/import-export">Importing and Exporting</a></li>
19751992
<li><a href="/ej2-react/query-builder/lock-group-rule">Lock Group/Rule</a></li>
19761993
<li><a href="/ej2-react/query-builder/clone-group-rule">Clone Group/Rule</a></li>
1994+
<li><a href="/ej2-react/query-builder/drag-and-drop">Drag and Drop</a></li>
1995+
<li><a href="/ej2-react/query-builder/separate-connector">Separate Connector</a></li>
19771996
<li><a href="/ej2-react/query-builder/global-local">Localization</a></li>
19781997
<li><a href="/ej2-react/query-builder/style-and-appearance">Styles and Appearances</a></li>
19791998
<li><a href="/ej2-react/query-builder/accessibility">Accessibility</a></li>
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
---
2+
layout: post
3+
title: Dynamic data update in React Chart component | Syncfusion
4+
description: Learn here all about dynamic data update in Syncfusion React Chart component of Syncfusion Essential JS 2 and more.
5+
control: Dynamic Data Update
6+
platform: ej2-react
7+
documentation: ug
8+
domainurl: ##DomainURL##
9+
---
10+
11+
# Dynamic data update in React Chart component
12+
13+
## Adding a new data point
14+
15+
The `addPoint` method is used to dynamically add a new data point to the chart series. This method is particularly useful when you want to update the chart with a new data point without having to refresh the entire chart. This method takes two parameters:
16+
17+
* The first parameter is the new data point to add to your existing data source.
18+
* The optional second parameter specifies the animation duration for adding the new data point.
19+
20+
{% tabs %}
21+
{% highlight js tabtitle="index.jsx" %}
22+
{% include code-snippet/chart/dynamic-update/add-point/app/index.jsx %}
23+
{% endhighlight %}
24+
{% highlight ts tabtitle="index.tsx" %}
25+
{% include code-snippet/chart/dynamic-update/add-point/app/index.tsx %}
26+
{% endhighlight %}
27+
{% endtabs %}
28+
29+
{% previewsample "page.domainurl/code-snippet/chart/dynamic-update/add-point" %}
30+
31+
## Removing an existing data point
32+
33+
The `removePoint` method is used to dynamically remove a data point from the chart series. This method is particularly useful when you want to update the chart by removing an existing data point without having to refresh the entire chart. This method takes two parameters:
34+
35+
* The first parameter is the index of the data point that needs to be removed from the existing data source.
36+
* The optional second parameter specifies the animation duration for removing the data point.
37+
38+
{% tabs %}
39+
{% highlight js tabtitle="index.jsx" %}
40+
{% include code-snippet/chart/dynamic-update/remove-point/app/index.jsx %}
41+
{% endhighlight %}
42+
{% highlight ts tabtitle="index.tsx" %}
43+
{% include code-snippet/chart/dynamic-update/remove-point/app/index.tsx %}
44+
{% endhighlight %}
45+
{% endtabs %}
46+
47+
{% previewsample "page.domainurl/code-snippet/chart/dynamic-update/remove-point" %}
48+
49+
## Replacing entire data points
50+
51+
To replace the existing data source in the chart with a new data source, you can simply use the `setData` method. This method allows you to replace the existing data points in the chart series with a new set of data points, enabling you to easily update the chart with new information. This method takes two parameters:
52+
53+
* The first parameter is the new set of data points to be updated.
54+
* The optional second parameter specifies the animation duration for updating the new data source.
55+
56+
{% tabs %}
57+
{% highlight js tabtitle="index.jsx" %}
58+
{% include code-snippet/chart/dynamic-update/set-data/app/index.jsx %}
59+
{% endhighlight %}
60+
{% highlight ts tabtitle="index.tsx" %}
61+
{% include code-snippet/chart/dynamic-update/set-data/app/index.tsx %}
62+
{% endhighlight %}
63+
{% endtabs %}
64+
65+
{% previewsample "page.domainurl/code-snippet/chart/dynamic-update/set-data" %}
66+
67+
## Click to add or remove a data point
68+
69+
You can use mouse or touch events to dynamically add or remove data points from an existing data source by clicking on the appropriate position within the chart area. To add a new data point to the existing data source, click anywhere in the chart area, retrieve the x-axis and y-axis information of the clicked location from the `chartMouseClick` event arguments. Then, utilize the `addPoint` method to add a new data point to the existing data source.
70+
71+
To remove a data point from the existing data source, simply click on the desired data point. To achieve this, first, verify whether the clicked data point obtained from `chartMouseClick` already exists in the data source. If it does, remove it by utilizing the `removePoint` method based on its index.
72+
73+
{% tabs %}
74+
{% highlight js tabtitle="index.jsx" %}
75+
{% include code-snippet/chart/dynamic-update/click-add-point/app/index.jsx %}
76+
{% endhighlight %}
77+
{% highlight ts tabtitle="index.tsx" %}
78+
{% include code-snippet/chart/dynamic-update/click-add-point/app/index.tsx %}
79+
{% endhighlight %}
80+
{% endtabs %}
81+
82+
{% previewsample "page.domainurl/code-snippet/chart/dynamic-update/click-add-point" %}

ej2-react/chart/feature-modules.md

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
---
2+
layout: post
3+
title: Module in React Chart component | Syncfusion
4+
description: Learn here all about Module in Syncfusion React Chart component of Syncfusion Essential JS 2 and more.
5+
control: Module
6+
platform: ej2-react
7+
documentation: ug
8+
domainurl: ##DomainURL##
9+
---
10+
11+
# Module in React Chart component
12+
13+
The following modules should be injected to extend chart's functionality.
14+
15+
The available chart modules are
16+
17+
| Module | Description |
18+
|------|-------------|
19+
| **Axis Type Feature Modules** |
20+
| [`Category`](https://ej2.syncfusion.com/react/documentation/api/chart/category)| Inject this module to use category axis type to visualize category (string type) values.|
21+
| [`DateTime`](https://ej2.syncfusion.com/react/documentation/api/chart/dateTime)| Inject this module to use date time axis type to visualize datetime values.|
22+
| [`Logarithmic`](https://ej2.syncfusion.com/react/documentation/api/chart/logarithmic)| Inject this module to use log axis type to visualize logarithmic values.|
23+
| [`DateTimeCategory`](https://ej2.syncfusion.com/react/documentation/api/chart/dateTimeCategory)| Inject this module to use date time category axis type to visualize datetime category values.|
24+
| **Series Type Feature Modules** |
25+
| [`LineSeries`](https://ej2.syncfusion.com/react/documentation/api/chart/lineSeries)| Inject this module to use the line type series in the chart.|
26+
| [`StepLineSeries`](https://ej2.syncfusion.com/react/documentation/api/chart/stepLineSeries)| Inject this module to use the step line type series in the chart.|
27+
| [`StackingLineSeries`](https://ej2.syncfusion.com/react/documentation/api/chart/stackingLineSeries)| Inject this module to use the stacking line type series in the chart.|
28+
| [`MultiColoredLineSeries`](https://ej2.syncfusion.com/react/documentation/api/chart/multiColoredLineSeries)| Inject this module to use the multi colored line type series in the chart.|
29+
| [`SplineSeries`](https://ej2.syncfusion.com/react/documentation/api/chart/splineSeries)| Inject this module to use the spline type series in the chart.|
30+
| [`AreaSeries`](https://ej2.syncfusion.com/react/documentation/api/chart/areaSeries)| Inject this module to use the area type series in the chart.|
31+
| [`RangeAreaSeries`](https://ej2.syncfusion.com/react/documentation/api/chart/rangeAreaSeries)| Inject this module to use the range area type series in the chart.|
32+
| [`RangeStepAreaSeries`](https://ej2.syncfusion.com/react/documentation/api/chart/rangeStepAreaSeries)| Inject this module to use the range step area type series in the chart.|
33+
| [`SplineRangeAreaSeries`](https://ej2.syncfusion.com/react/documentation/api/chart/splineRangeAreaSeries)| Inject this module to use the spline range area type series in the chart.|
34+
| [`StackingAreaSeries`](https://ej2.syncfusion.com/react/documentation/api/chart/stackingAreaSeries)| Inject this module to use the stacking area type series in the chart.|
35+
| [`StackingStepAreaSeries`](https://ej2.syncfusion.com/react/documentation/api/chart/stackingStepAreaSeries)| Inject this module to use the stacking step area type series in the chart.|
36+
| [`StepAreaSeries`](https://ej2.syncfusion.com/react/documentation/api/chart/stepAreaSeries)| Inject this module to use the step area type series in the chart.|
37+
| [`SplineAreaSeries`](https://ej2.syncfusion.com/react/documentation/api/chart/splineAreaSeries)| Inject this module to use the spline area type series in the chart.|
38+
| [`MultiColoredAreaSeries`](https://ej2.syncfusion.com/react/documentation/api/chart/multiColoredAreaSeries)| Inject this module to use the multi colored area type series in the chart.|
39+
| [`ColumnSeries`](https://ej2.syncfusion.com/react/documentation/api/chart/column)| Inject this module to use the column type series in the chart.||
40+
| [`RangeColumnSeries`](https://ej2.syncfusion.com/react/documentation/api/chart/rangeColumnSeries)| Inject this module to use the range column type series in the chart.|
41+
| [`StackingColumnSeries`](https://ej2.syncfusion.com/react/documentation/api/chart/stackingColumnSeries)| Inject this module to use the stacking column type series in the chart.|
42+
| [`BarSeries`](https://ej2.syncfusion.com/react/documentation/api/chart/barSeries)| Inject this module to use the bar type series in the chart.|
43+
| [`StackingBarSeries`](https://ej2.syncfusion.com/react/documentation/api/chart/stackingBarSeries)| Inject this module to use the stacking bar type series in the chart.|
44+
| [`ScatterSeries`](https://ej2.syncfusion.com/react/documentation/api/chart/scatterSeries)| Inject this module to use the scatter type series in the chart.|
45+
| [`BubbleSeries`](https://ej2.syncfusion.com/react/documentation/api/chart/bubbleSeries)| Inject this module to use the bubble type series in the chart.|
46+
| [`PolarSeries`](https://ej2.syncfusion.com/react/documentation/api/chart/polarSeries)| Inject this module to use the polar type series in the chart.|
47+
| [`RadarSeries`](https://ej2.syncfusion.com/react/documentation/api/chart/radarSeries)| Inject this module to use the radar type series in the chart.|
48+
| [`HiloSeries`](https://ej2.syncfusion.com/react/documentation/api/chart/hiloSeries)| Inject this module to use the hilo type series in the chart.|
49+
| [`HiloOpenCloseSeries`](https://ej2.syncfusion.com/react/documentation/api/chart/hiloOpenCloseSeries)| Inject this module to use the hilo open close type series in the chart.|
50+
| [`CandleSeries`](https://ej2.syncfusion.com/react/documentation/api/chart/candleSeries)| Inject this module to use the candle type series in the chart.|
51+
| [`BoxAndWhiskerSeries`](https://ej2.syncfusion.com/react/documentation/api/chart/boxAndWhiskerSeries)| Inject this module to use the box and whisker type series in the chart.|
52+
| [`WaterfallSeries`](https://ej2.syncfusion.com/react/documentation/api/chart/waterfallSeries)| Inject this module to use the waterfall type series in the chart.|
53+
| [`HistogramSeries`](https://ej2.syncfusion.com/react/documentation/api/chart/histogramSeries)| Inject this module to use the histogram type series in the chart.|
54+
| [`ParetoSeries`](https://ej2.syncfusion.com/react/documentation/api/chart/paretoSeries)| Inject this module to use the pareto type series in the chart.|
55+
| [`ErrorBar`](https://ej2.syncfusion.com/react/documentation/api/chart/errorBar)| Inject this module to use the error bar feature in series.|
56+
| **Indicator Type Feature Modules** |
57+
| [`AccumulationDistributionIndicator`](https://ej2.syncfusion.com/react/documentation/api/chart/accumulationDistributionIndicator)| Inject this module to use the accumulation distribution indicator.|
58+
| [`AtrIndicator`](https://ej2.syncfusion.com/react/documentation/api/chart/atrIndicator)| Inject this module to use the average true range (ATR) indicator.|
59+
| [`BollingerBands`](https://ej2.syncfusion.com/react/documentation/api/chart/bollingerBands)| Inject this module to use the bollinger band indicator.|
60+
| [`EMAIndicator`](https://ej2.syncfusion.com/react/documentation/api/chart/emaIndicator)| Inject this module to use the exponential moving average (EMA) indicator.|
61+
| [`MomentumIndicator`](https://ej2.syncfusion.com/react/documentation/api/chart/momentumIndicator)| Inject this module to use the momentum indicator.|
62+
| [`MACDIndicator`](https://ej2.syncfusion.com/react/documentation/api/chart/macdType)| Inject this module to use the moving average convergence divergence (MACD) indicator.|
63+
| [`RsiIndicator`](https://ej2.syncfusion.com/react/documentation/api/chart/rsiIndicator)| Inject this module to use the relative Strength index (Rsi) indicator.|
64+
| [`SmaIndicator`](https://ej2.syncfusion.com/react/documentation/api/chart/smaIndicator)| Inject this module to use the simple moving average (SMA) indicator.|
65+
| [`StochasticIndicator`](https://ej2.syncfusion.com/react/documentation/api/chart/stochasticIndicator)| Inject this module to use the stochastic indicator.|
66+
| [`TmaIndicator`](https://ej2.syncfusion.com/react/documentation/api/chart/tmaIndicator)| Inject this module to use the trireact moving average indicator.|
67+
| **Other Feature Modules** |
68+
| [`StripLine`](https://ej2.syncfusion.com/react/documentation/api/chart/stripLineSettings)| Inject this module to use strip line feature.|
69+
| [`Trendlines`](https://ej2.syncfusion.com/react/documentation/api/chart/trendlines)| Inject this module to use the trendline feature.|
70+
| [`DataLabel`](https://ej2.syncfusion.com/react/documentation/api/chart/dataLabel)| Inject this module to use the data label feature.|
71+
| [`ChartAnnotation`](https://helpej2.syncfusion.com/react/documentation/api/chart/chartAnnotation)| Inject this module to use the annotation feature.|
72+
| [`Legend`](https://ej2.syncfusion.com/react/documentation/api/chart/legend)| Inject this module to use the legend feature.|
73+
| [`Tooltip`](https://ej2.syncfusion.com/react/documentation/api/chart/tooltip)| Inject this module to use the tooltip feature.|
74+
| [`Zoom`](https://ej2.syncfusion.com/react/documentation/api/chart/zoom)| Inject this module to use the zooming and panning feature.|
75+
| [`DataEditing`](https://ej2.syncfusion.com/react/documentation/api/chart/dataEditing)| Inject this module to use the data editing feature.|
76+
| [`Crosshair`](https://ej2.syncfusion.com/react/documentation/api/chart/crosshair)| Inject this module to use the crosshair feature.|
77+
| [`Selection`](https://ej2.syncfusion.com/react/documentation/api/chart/selectionMode)| Inject this module to use the selection feature.|
78+
| [`Highlight`](https://helpej2.syncfusion.com/react/documentation/api/chart/highlightMode)| Inject this module to use the highlight feature.|
79+
| [`Export`](https://ej2.syncfusion.com/react/documentation/api/chart/export)| Inject this module to use the export feature.|
80+
| [`MultiLevelLabel`](https://helpej2.syncfusion.com/react/documentation/api/chart/multiLevelLabels)| Inject this module to use the multi level label feature.|
81+
82+
These modules should be injected into the chart using the `Inject` directive.

ej2-react/code-snippet/3d-chart/working-with-data/working-with-data-cs2/app/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import * as ReactDOM from "react-dom";
55

66
function App() {
77
const dataManager = new DataManager({
8-
url: 'https://services.syncfusion.com/js/production/api/orders',
8+
url: 'https://services.syncfusion.com/react/production/api/orders',
99
});
1010
const query = new Query().take(5).where('Estimate', 'lessThan', 3, false);
1111
return <Chart3DComponent id='charts' style={{ textAlign: "center" }} primaryXAxis={{

ej2-react/code-snippet/3d-chart/working-with-data/working-with-data-cs2/app/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import * as ReactDOM from "react-dom";
55

66
function App() {
77
const dataManager = new DataManager({
8-
url: 'https://services.syncfusion.com/js/production/api/orders',
8+
url: 'https://services.syncfusion.com/react/production/api/orders',
99
});
1010
const query = new Query().take(5).where('Estimate', 'lessThan', 3, false);
1111
return <Chart3DComponent id='charts' style={{ textAlign: "center" }} primaryXAxis={{

ej2-react/code-snippet/3d-chart/working-with-data/working-with-data-cs3/app/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import * as ReactDOM from "react-dom";
55

66
function App() {
77
const dataManager = new DataManager({
8-
url: 'https://services.syncfusion.com/js/production/api/orders',
8+
url: 'https://services.syncfusion.com/react/production/api/orders',
99
adaptor: new ODataAdaptor()
1010
});
1111
const query = new Query();

ej2-react/code-snippet/3d-chart/working-with-data/working-with-data-cs3/app/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import * as ReactDOM from "react-dom";
55

66
function App() {
77
const dataManager = new DataManager({
8-
url: 'https://services.syncfusion.com/js/production/api/orders',
8+
url: 'https://services.syncfusion.com/react/production/api/orders',
99
adaptor: new ODataAdaptor()
1010
});
1111
const query = new Query();

0 commit comments

Comments
 (0)