Skip to content

Commit e3d3676

Browse files
Merge pull request #454 from Syncfusion-Content/hotfix/hotfix-v26.1.35
DOCINFRA-2341_merged_using_automation
2 parents da80f46 + 97e2a2d commit e3d3676

File tree

21 files changed

+30
-46
lines changed

21 files changed

+30
-46
lines changed

ej2-react/accumulation-chart/getting-started.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ domainurl: ##DomainURL##
99
---
1010
<!-- markdownlint-disable MD036 -->
1111

12-
# Getting Started
12+
# Getting Started with React Accumulation charts of Syncfusion
1313

1414
In EJ2, accumulation chart is implemented as a separate control to avoid the axis related logics.
1515
The dependencies for accumulation chart is same as chart control.
@@ -72,7 +72,7 @@ For getting started, add the Accumulation Chart component in `src/App.tsx` file
7272

7373

7474
{% tabs %}
75-
{% highlight js tabtitle="index.jsx" %}
75+
{% highlight js tabtitle="App.jsx" %}
7676

7777
import {AccumulationChartComponent} from '@syncfusion/ej2-react-charts';
7878
import * as React from 'react';
@@ -85,7 +85,7 @@ function App() {
8585
export default App;
8686

8787
{% endhighlight %}
88-
{% highlight ts tabtitle="index.tsx" %}
88+
{% highlight ts tabtitle="App.tsx" %}
8989

9090
import { AccumulationChartComponent } from '@syncfusion/ej2-react-charts';
9191
import * as React from 'react';
@@ -103,10 +103,10 @@ export default App;
103103
By default, the pie series will be rendered when assigning the JSON data to the series using the [`dataSource`](https://ej2.syncfusion.com/react/documentation/api/accumulation-chart/accumulationSeriesModel/#datasource) property. Map the field names in the JSON data to the [`xName`](https://ej2.syncfusion.com/react/documentation/api/accumulation-chart/accumulationSeriesModel/#xname) and [`yName`](https://ej2.syncfusion.com/react/documentation/api/accumulation-chart/accumulationSeriesModel/#yname) properties of the series.
104104

105105
{% tabs %}
106-
{% highlight js tabtitle="index.jsx" %}
106+
{% highlight js tabtitle="App.jsx" %}
107107
{% include code-snippet/chart/series/pie-cs4/app/index.jsx %}
108108
{% endhighlight %}
109-
{% highlight ts tabtitle="index.tsx" %}
109+
{% highlight ts tabtitle="App.tsx" %}
110110
{% include code-snippet/chart/series/pie-cs4/app/index.tsx %}
111111
{% endhighlight %}
112112
{% endtabs %}

ej2-react/chart/getting-started.md

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ domainurl: ##DomainURL##
99
---
1010
<!-- markdownlint-disable MD036 -->
1111

12-
# Getting Started
12+
# Getting Started with React charts of Syncfusion
1313

1414
This section explains you the steps required to create a simple chart and demonstrate the basic usage of the chart control.
1515

@@ -69,7 +69,7 @@ Now, you can start adding Chart component in the application.
6969
For getting started, add the Chart component in `src/App.tsx` file using following code.
7070

7171
{% tabs %}
72-
{% highlight js tabtitle="index.jsx" %}
72+
{% highlight js tabtitle="App.jsx" %}
7373

7474
import { ChartComponent } from '@syncfusion/ej2-react-charts';
7575
import * as React from 'react';
@@ -80,7 +80,7 @@ function App() {
8080
export default App;
8181

8282
{% endhighlight %}
83-
{% highlight ts tabtitle="index.tsx" %}
83+
{% highlight ts tabtitle="App.tsx" %}
8484

8585
import { ChartComponent } from '@syncfusion/ej2-react-charts';
8686
import * as React from 'react';
@@ -101,10 +101,10 @@ npm start
101101
The below example shows a basic Chart.
102102

103103
{% tabs %}
104-
{% highlight js tabtitle="index.jsx" %}
104+
{% highlight js tabtitle="App.jsx" %}
105105
{% include code-snippet/chart/getting-started/initialize-cs1/app/index.jsx %}
106106
{% endhighlight %}
107-
{% highlight ts tabtitle="index.tsx" %}
107+
{% highlight ts tabtitle="App.tsx" %}
108108
{% include code-snippet/chart/getting-started/initialize-cs1/app/index.tsx %}
109109
{% endhighlight %}
110110
{% endtabs %}
@@ -124,7 +124,7 @@ Chart component are segregated into individual feature-wise modules. In order to
124124
These modules should be injected to the `services` section as follows,
125125

126126
{% tabs %}
127-
{% highlight js tabtitle="index.jsx" %}
127+
{% highlight js tabtitle="App.jsx" %}
128128

129129
import { Category, ChartComponent, DataLabel, LineSeries, Legend, Tooltip, Inject } from '@syncfusion/ej2-react-charts';
130130
import * as React from "react";
@@ -136,10 +136,9 @@ function App() {
136136
</ChartComponent>;
137137
}
138138
export default App;
139-
ReactDOM.render(<App />, document.getElementById("charts"));
140139

141140
{% endhighlight %}
142-
{% highlight ts tabtitle="index.tsx" %}
141+
{% highlight ts tabtitle="App.tsx" %}
143142

144143
import { Category, ChartComponent, DataLabel, LineSeries, Legend, Tooltip, Inject } from '@syncfusion/ej2-react-charts';
145144
import * as React from "react";
@@ -150,7 +149,6 @@ function App() {
150149
</ChartComponent>;
151150
}
152151
export default App;
153-
ReactDOM.render(<App />, document.getElementById("charts"));
154152

155153
{% endhighlight %}
156154
{% endtabs %}
@@ -160,7 +158,7 @@ ReactDOM.render(<App />, document.getElementById("charts"));
160158
This section explains how to plot below JSON data to the chart.
161159

162160
{% tabs %}
163-
{% highlight js tabtitle="index.jsx" %}
161+
{% highlight js tabtitle="App.jsx" %}
164162

165163
export let data = [
166164
{ month: 'Jan', sales: 35 }, { month: 'Feb', sales: 28 },
@@ -172,7 +170,7 @@ export let data = [
172170
];
173171

174172
{% endhighlight %}
175-
{% highlight ts tabtitle="index.tsx" %}
173+
{% highlight ts tabtitle="App.tsx" %}
176174

177175
export let data: any[] = [
178176
{ month: 'Jan', sales: 35 }, { month: 'Feb', sales: 28 },
@@ -191,10 +189,10 @@ export let data: any[] = [
191189
Since the JSON contains category data, set the [`valueType`](https://ej2.syncfusion.com/react/documentation/api/chart/axisModel/#valuetype)for horizontal axis to `Category`. By default, the axis valueType is `Numeric`.
192190

193191
{% tabs %}
194-
{% highlight js tabtitle="index.jsx" %}
192+
{% highlight js tabtitle="App.jsx" %}
195193
{% include code-snippet/chart/getting-started/datasource-cs3/app/index.jsx %}
196194
{% endhighlight %}
197-
{% highlight ts tabtitle="index.tsx" %}
195+
{% highlight ts tabtitle="App.tsx" %}
198196
{% include code-snippet/chart/getting-started/datasource-cs3/app/index.tsx %}
199197
{% endhighlight %}
200198
{% endtabs %}
@@ -204,10 +202,10 @@ Since the JSON contains category data, set the [`valueType`](https://ej2.syncfus
204202
The sales data are in thousands, so format the vertical axis label by adding `$` as a prefix and `K` as a suffix to each label. This can be achieved by setting the `${value}K` to the [`labelFormat`](https://ej2.syncfusion.com/react/documentation/api/chart/axisModel/#labelformat) property of axis. Here, `{value}` act as a placeholder for each axis label.
205203

206204
{% tabs %}
207-
{% highlight js tabtitle="index.jsx" %}
205+
{% highlight js tabtitle="App.jsx" %}
208206
{% include code-snippet/chart/getting-started/datasource-cs4/app/index.jsx %}
209207
{% endhighlight %}
210-
{% highlight ts tabtitle="index.tsx" %}
208+
{% highlight ts tabtitle="App.tsx" %}
211209
{% include code-snippet/chart/getting-started/datasource-cs4/app/index.tsx %}
212210
{% endhighlight %}
213211
{% endtabs %}
@@ -219,10 +217,10 @@ The sales data are in thousands, so format the vertical axis label by adding `$`
219217
You can add a title using [`title`](https://ej2.syncfusion.com/react/documentation/api/chart/chartModel/#title) property to the chart to provide quick information to the user about the data plotted in the chart.
220218

221219
{% tabs %}
222-
{% highlight js tabtitle="index.jsx" %}
220+
{% highlight js tabtitle="App.jsx" %}
223221
{% include code-snippet/chart/getting-started/tooltip-cs1/app/index.jsx %}
224222
{% endhighlight %}
225-
{% highlight ts tabtitle="index.tsx" %}
223+
{% highlight ts tabtitle="App.tsx" %}
226224
{% include code-snippet/chart/getting-started/tooltip-cs1/app/index.tsx %}
227225
{% endhighlight %}
228226
{% endtabs %}
@@ -234,10 +232,10 @@ You can add a title using [`title`](https://ej2.syncfusion.com/react/documentati
234232
You can use legend for the chart by setting the `visible` property to true in [`legendSettings`](https://ej2.syncfusion.com/react/documentation/api/chart/legendSettingsModel/#visible) object and by injecting the `Legend` module into the `services`.
235233

236234
{% tabs %}
237-
{% highlight js tabtitle="index.jsx" %}
235+
{% highlight js tabtitle="App.jsx" %}
238236
{% include code-snippet/chart/getting-started/legend-cs1/app/index.jsx %}
239237
{% endhighlight %}
240-
{% highlight ts tabtitle="index.tsx" %}
238+
{% highlight ts tabtitle="App.tsx" %}
241239
{% include code-snippet/chart/getting-started/legend-cs1/app/index.tsx %}
242240
{% endhighlight %}
243241
{% endtabs %}
@@ -249,10 +247,10 @@ You can use legend for the chart by setting the `visible` property to true in [`
249247
You can add data labels to improve the readability of the chart. This can be achieved by setting the visible property to true in the `dataLabel` object and by injecting `DataLabel` module into the `services`.
250248

251249
{% tabs %}
252-
{% highlight js tabtitle="index.jsx" %}
250+
{% highlight js tabtitle="App.jsx" %}
253251
{% include code-snippet/chart/getting-started/datalabel-cs1/app/index.jsx %}
254252
{% endhighlight %}
255-
{% highlight ts tabtitle="index.tsx" %}
253+
{% highlight ts tabtitle="App.tsx" %}
256254
{% include code-snippet/chart/getting-started/datalabel-cs1/app/index.tsx %}
257255
{% endhighlight %}
258256
{% endtabs %}
@@ -264,10 +262,10 @@ You can add data labels to improve the readability of the chart. This can be ach
264262
The tooltip is useful when you cannot display information by using the data labels due to space constraints. You can enable tooltip by setting the enable property as true in [`tooltip`](https://ej2.syncfusion.com/react/documentation/api/chart/tooltipSettingsModel/#enable) object and by injecting `Tooltip` module into the `services`.
265263

266264
{% tabs %}
267-
{% highlight js tabtitle="index.jsx" %}
265+
{% highlight js tabtitle="App.jsx" %}
268266
{% include code-snippet/chart/getting-started/tooltip-cs2/app/index.jsx %}
269267
{% endhighlight %}
270-
{% highlight ts tabtitle="index.tsx" %}
268+
{% highlight ts tabtitle="App.tsx" %}
271269
{% include code-snippet/chart/getting-started/tooltip-cs2/app/index.tsx %}
272270
{% endhighlight %}
273271
{% endtabs %}

ej2-react/code-snippet/chart/getting-started/datalabel-cs1/app/index.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,3 @@ function App() {
2323
}
2424
;
2525
export default App;
26-
ReactDOM.render(<App />, document.getElementById("charts"));

ej2-react/code-snippet/chart/getting-started/datalabel-cs1/app/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ function App() {
3131
</ChartComponent>
3232
};
3333
export default App;
34-
ReactDOM.render(<App />, document.getElementById("charts"));
3534

3635

3736

ej2-react/code-snippet/chart/getting-started/datasource-cs3/app/index.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,3 @@ function App() {
2020
}
2121
;
2222
export default App;
23-
ReactDOM.render(<App />, document.getElementById("charts"));

ej2-react/code-snippet/chart/getting-started/datasource-cs3/app/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ function App() {
2626

2727
};
2828
export default App;
29-
ReactDOM.render(<App />, document.getElementById("charts"));
3029

3130

3231

ej2-react/code-snippet/chart/getting-started/datasource-cs4/app/index.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,3 @@ function App() {
2121
}
2222
;
2323
export default App;
24-
ReactDOM.render(<App />, document.getElementById("charts"));

ej2-react/code-snippet/chart/getting-started/datasource-cs4/app/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ function App() {
2727
</ChartComponent>
2828
};
2929
export default App;
30-
ReactDOM.render(<App />, document.getElementById("charts"));
3130

3231

3332

ej2-react/code-snippet/chart/getting-started/initialize-cs1/app/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ function App() {
66
}
77
;
88
export default App;
9-
ReactDOM.render(<App />, document.getElementById("charts"));
9+

ej2-react/code-snippet/chart/getting-started/initialize-cs1/app/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function App() {
88
return <ChartComponent id='charts' />
99
};
1010
export default App;
11-
ReactDOM.render(<App />, document.getElementById("charts"));
11+
1212

1313

1414

ej2-react/code-snippet/chart/getting-started/legend-cs1/app/index.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,3 @@ function App() {
2121
}
2222
;
2323
export default App;
24-
ReactDOM.render(<App />, document.getElementById("charts"));

ej2-react/code-snippet/chart/getting-started/legend-cs1/app/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ function App() {
2727
</ChartComponent>
2828
};
2929
export default App;
30-
ReactDOM.render(<App />, document.getElementById("charts"));
3130

3231

3332

ej2-react/code-snippet/chart/getting-started/tooltip-cs1/app/index.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,3 @@ function App() {
2020
}
2121
;
2222
export default App;
23-
ReactDOM.render(<App />, document.getElementById("charts"));

ej2-react/code-snippet/chart/getting-started/tooltip-cs1/app/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ function App() {
2626
</ChartComponent>
2727
};
2828
export default App;
29-
ReactDOM.render(<App />, document.getElementById("charts"));
3029

3130

3231

ej2-react/code-snippet/chart/getting-started/tooltip-cs2/app/index.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,3 @@ function App() {
2424
}
2525
;
2626
export default App;
27-
ReactDOM.render(<App />, document.getElementById("charts"));

ej2-react/code-snippet/chart/getting-started/tooltip-cs2/app/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ function App() {
3232
</ChartComponent>
3333
};
3434
export default App;
35-
ReactDOM.render(<App />, document.getElementById("charts"));
3635

3736

3837

ej2-react/code-snippet/chart/series/pie-cs4/app/index.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,3 @@ function App() {
1717
}
1818
;
1919
export default App;
20-
ReactDOM.render(<App />, document.getElementById("charts"));

ej2-react/code-snippet/chart/series/pie-cs4/app/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,5 @@ function App() {
2121

2222
};
2323
export default App;
24-
ReactDOM.render(<App />, document.getElementById("charts"));
2524

2625

ej2-react/code-snippet/gantt/tooltip-cs8/app/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function App() {
3232
};
3333
const imagedate = () => {
3434
const getImage = Math.floor(Math.random() * 5) + 1;
35-
return "./image/" + getImage + ".svg";
35+
return getImage + ".svg";
3636

3737
}
3838
const holidayValue = (value: string, date: string): string => {

ej2-react/gantt/time-line/time-line.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ function App() {
373373
};
374374
const imagedate = () => {
375375
const getImage = Math.floor(Math.random() * 5) + 1;
376-
return "./image/" + getImage + ".svg";
376+
return getImage + ".svg";
377377

378378
}
379379
const holidayValue = (value: string, date: string): string => {

0 commit comments

Comments
 (0)