Skip to content

DOCINFRA-2341_merged_using_automation #454

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions ej2-react/accumulation-chart/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ domainurl: ##DomainURL##
---
<!-- markdownlint-disable MD036 -->

# Getting Started
# Getting Started with React Accumulation charts of Syncfusion

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


{% tabs %}
{% highlight js tabtitle="index.jsx" %}
{% highlight js tabtitle="App.jsx" %}

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

{% endhighlight %}
{% highlight ts tabtitle="index.tsx" %}
{% highlight ts tabtitle="App.tsx" %}

import { AccumulationChartComponent } from '@syncfusion/ej2-react-charts';
import * as React from 'react';
Expand All @@ -103,10 +103,10 @@ export default App;
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.

{% tabs %}
{% highlight js tabtitle="index.jsx" %}
{% highlight js tabtitle="App.jsx" %}
{% include code-snippet/chart/series/pie-cs4/app/index.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="index.tsx" %}
{% highlight ts tabtitle="App.tsx" %}
{% include code-snippet/chart/series/pie-cs4/app/index.tsx %}
{% endhighlight %}
{% endtabs %}
Expand Down
44 changes: 21 additions & 23 deletions ej2-react/chart/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ domainurl: ##DomainURL##
---
<!-- markdownlint-disable MD036 -->

# Getting Started
# Getting Started with React charts of Syncfusion

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

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

{% tabs %}
{% highlight js tabtitle="index.jsx" %}
{% highlight js tabtitle="App.jsx" %}

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

{% endhighlight %}
{% highlight ts tabtitle="index.tsx" %}
{% highlight ts tabtitle="App.tsx" %}

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

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

{% tabs %}
{% highlight js tabtitle="index.jsx" %}
{% highlight js tabtitle="App.jsx" %}

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

{% endhighlight %}
{% highlight ts tabtitle="index.tsx" %}
{% highlight ts tabtitle="App.tsx" %}

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

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

{% tabs %}
{% highlight js tabtitle="index.jsx" %}
{% highlight js tabtitle="App.jsx" %}

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

{% endhighlight %}
{% highlight ts tabtitle="index.tsx" %}
{% highlight ts tabtitle="App.tsx" %}

export let data: any[] = [
{ month: 'Jan', sales: 35 }, { month: 'Feb', sales: 28 },
Expand All @@ -191,10 +189,10 @@ export let data: any[] = [
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`.

{% tabs %}
{% highlight js tabtitle="index.jsx" %}
{% highlight js tabtitle="App.jsx" %}
{% include code-snippet/chart/getting-started/datasource-cs3/app/index.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="index.tsx" %}
{% highlight ts tabtitle="App.tsx" %}
{% include code-snippet/chart/getting-started/datasource-cs3/app/index.tsx %}
{% endhighlight %}
{% endtabs %}
Expand All @@ -204,10 +202,10 @@ Since the JSON contains category data, set the [`valueType`](https://ej2.syncfus
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.

{% tabs %}
{% highlight js tabtitle="index.jsx" %}
{% highlight js tabtitle="App.jsx" %}
{% include code-snippet/chart/getting-started/datasource-cs4/app/index.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="index.tsx" %}
{% highlight ts tabtitle="App.tsx" %}
{% include code-snippet/chart/getting-started/datasource-cs4/app/index.tsx %}
{% endhighlight %}
{% endtabs %}
Expand All @@ -219,10 +217,10 @@ The sales data are in thousands, so format the vertical axis label by adding `$`
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.

{% tabs %}
{% highlight js tabtitle="index.jsx" %}
{% highlight js tabtitle="App.jsx" %}
{% include code-snippet/chart/getting-started/tooltip-cs1/app/index.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="index.tsx" %}
{% highlight ts tabtitle="App.tsx" %}
{% include code-snippet/chart/getting-started/tooltip-cs1/app/index.tsx %}
{% endhighlight %}
{% endtabs %}
Expand All @@ -234,10 +232,10 @@ You can add a title using [`title`](https://ej2.syncfusion.com/react/documentati
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`.

{% tabs %}
{% highlight js tabtitle="index.jsx" %}
{% highlight js tabtitle="App.jsx" %}
{% include code-snippet/chart/getting-started/legend-cs1/app/index.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="index.tsx" %}
{% highlight ts tabtitle="App.tsx" %}
{% include code-snippet/chart/getting-started/legend-cs1/app/index.tsx %}
{% endhighlight %}
{% endtabs %}
Expand All @@ -249,10 +247,10 @@ You can use legend for the chart by setting the `visible` property to true in [`
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`.

{% tabs %}
{% highlight js tabtitle="index.jsx" %}
{% highlight js tabtitle="App.jsx" %}
{% include code-snippet/chart/getting-started/datalabel-cs1/app/index.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="index.tsx" %}
{% highlight ts tabtitle="App.tsx" %}
{% include code-snippet/chart/getting-started/datalabel-cs1/app/index.tsx %}
{% endhighlight %}
{% endtabs %}
Expand All @@ -264,10 +262,10 @@ You can add data labels to improve the readability of the chart. This can be ach
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`.

{% tabs %}
{% highlight js tabtitle="index.jsx" %}
{% highlight js tabtitle="App.jsx" %}
{% include code-snippet/chart/getting-started/tooltip-cs2/app/index.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="index.tsx" %}
{% highlight ts tabtitle="App.tsx" %}
{% include code-snippet/chart/getting-started/tooltip-cs2/app/index.tsx %}
{% endhighlight %}
{% endtabs %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,3 @@ function App() {
}
;
export default App;
ReactDOM.render(<App />, document.getElementById("charts"));
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ function App() {
</ChartComponent>
};
export default App;
ReactDOM.render(<App />, document.getElementById("charts"));



Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@ function App() {
}
;
export default App;
ReactDOM.render(<App />, document.getElementById("charts"));
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ function App() {

};
export default App;
ReactDOM.render(<App />, document.getElementById("charts"));



Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,3 @@ function App() {
}
;
export default App;
ReactDOM.render(<App />, document.getElementById("charts"));
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ function App() {
</ChartComponent>
};
export default App;
ReactDOM.render(<App />, document.getElementById("charts"));



Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ function App() {
}
;
export default App;
ReactDOM.render(<App />, document.getElementById("charts"));

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function App() {
return <ChartComponent id='charts' />
};
export default App;
ReactDOM.render(<App />, document.getElementById("charts"));




Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,3 @@ function App() {
}
;
export default App;
ReactDOM.render(<App />, document.getElementById("charts"));
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ function App() {
</ChartComponent>
};
export default App;
ReactDOM.render(<App />, document.getElementById("charts"));



Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@ function App() {
}
;
export default App;
ReactDOM.render(<App />, document.getElementById("charts"));
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ function App() {
</ChartComponent>
};
export default App;
ReactDOM.render(<App />, document.getElementById("charts"));



Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ function App() {
}
;
export default App;
ReactDOM.render(<App />, document.getElementById("charts"));
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ function App() {
</ChartComponent>
};
export default App;
ReactDOM.render(<App />, document.getElementById("charts"));



1 change: 0 additions & 1 deletion ej2-react/code-snippet/chart/series/pie-cs4/app/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@ function App() {
}
;
export default App;
ReactDOM.render(<App />, document.getElementById("charts"));
1 change: 0 additions & 1 deletion ej2-react/code-snippet/chart/series/pie-cs4/app/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,5 @@ function App() {

};
export default App;
ReactDOM.render(<App />, document.getElementById("charts"));


2 changes: 1 addition & 1 deletion ej2-react/code-snippet/gantt/tooltip-cs8/app/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function App() {
};
const imagedate = () => {
const getImage = Math.floor(Math.random() * 5) + 1;
return "./image/" + getImage + ".svg";
return getImage + ".svg";

}
const holidayValue = (value: string, date: string): string => {
Expand Down
2 changes: 1 addition & 1 deletion ej2-react/gantt/time-line/time-line.md
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ function App() {
};
const imagedate = () => {
const getImage = Math.floor(Math.random() * 5) + 1;
return "./image/" + getImage + ".svg";
return getImage + ".svg";

}
const holidayValue = (value: string, date: string): string => {
Expand Down