### Advanced line chart
+Advanced line charts are an enhanced version of basic line charts, designed to provide deeper insights and more detailed analysis of data trends. These charts often incorporate features such as multiple data series, interactive elements, and additional annotations to highlight key points or events. Advanced line charts can also include trend lines, moving averages, and other statistical tools to help identify patterns and correlations.
+
+
+## Dos and Don'ts
+
+- Do start the Y-axis at zero
+- Do label axes clearly
+- Do use contrasting colors for multiple lines to distinguish different data series better
+- Do use consistent intervals on axes
+- Do highlight important data points
+- Do use visual cues to show gaps in data
+- Don’t overcrowd with colors
+- Don’t clutter the chart with too many lines (max. 7 lines)
\ No newline at end of file
diff --git a/packages/documentation/docs/controls/charts/overview.md b/packages/documentation/docs/controls/charts/overview.md
index a08e39b850c..518ffbed7a2 100644
--- a/packages/documentation/docs/controls/charts/overview.md
+++ b/packages/documentation/docs/controls/charts/overview.md
@@ -6,21 +6,36 @@ import Playground from '@site/src/components/PlaygroundV3';
# Basics
Siemens Industrial Experience provides a theme for the popular chart library [ECharts](https://echarts.apache.org/handbook/en/get-started).
-This lets you harness the power of ECharts with seamless integration into the Siemens Industrial Experience styleguide.
+This lets you harness the power of ECharts with seamless integration into the Siemens Industrial Experience design system.
-
ECharts is a third party library distributed under [Apache License 2.0](https://www.apache.org/licenses).
-
+![Chart usage guide](https://www.figma.com/design/wEptRgAezDU1z80Cn3eZ0o/iX-Pattern-Illustrations?node-id=3532-4181&t=MD9MvUCkoIcmSi8H-4)
+
+## Attributes
+
+| Name | Discription |
+| -------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| **Axes** | Most charts have a horizontal (x-axis) and a vertical (y-axis) axis. These axes are labeled to indicate what data they represent. |
+| **Scale** | Each axis has a scale, often marked with periodic graduations and numerical or categorical indications. |
+| **Labels** | Axes labels describe the dimensions represented, often including units of measurement, e.g. “Distance traveled (m)”. |
+| **Grid lines** | Grid lines help in visually aligning data points within the chart. |
+| **Legend** | Legends explain the symbols, colors, or patterns used in the chart to represent different data sets. By clicking on the date in the legend, you can toggle the visibility of the data series. |
+| **Tooltip** | Provides detailed information about data while hover over the area of interest. |
+
## Installation
+To install the Siemens Industrial Experience ECharts theme, run the follow the steps below:
+
```sh
npm install --save @siemens/ix-echarts
```
-First, import the `registerTheme` function from our module. Then, invoke this function, passing in your `echarts` instance as an argument. You don't need to provide the `echarts` instance if it is provided globally in your `window` object when using vanilla Javascript. Once this is done, you’ll be able to utilize the `brand-dark`, `brand-light`, `classic-dark`, and `classic-light` themes for your chart.
+1. Import the `registerTheme` function from our module.
+2. Invoke this function, passing in your `echarts` instance as an argument. You don't need to provide the `echarts` instance if it is provided globally in your `window` object when using vanilla Javascript.
+3. Once this is done, you’ll be able to utilize the `brand-dark`, `brand-light`, `classic-dark`, and `classic-light` themes for your chart.
```typescript
import { registerTheme } from '@siemens/ix-echarts';
@@ -28,11 +43,29 @@ import { registerTheme } from '@siemens/ix-echarts';
registerTheme(echarts);
```
-### Angular
+
+For Angular make sure to correctly add `NgxEcharts` in your module file.
+
+
+### Colors
+
+The Siemens Industrial Experience ECharts theme provides a set of colors that are used to style the charts. These colors are optimized for accessibility and readability.
+
+**Categorical data**
+For easily distinguishable data series where each category is distinct but not ordered, we recommend the following color sequence.
+Example: Different product types or regions.
+
+![Colors for categorical data](https://www.figma.com/design/wEptRgAezDU1z80Cn3eZ0o/iX-Pattern-Illustrations?node-id=3223-1647&t=MD9MvUCkoIcmSi8H-4)
-Please make sure to correctly add `NgxEcharts` in your module file.
+**Sequential data**
+For ordered data, we recommend to use every second color (e.g. chart-1, chart-3, chart-5, ...). Example: monthly data.
-## Examples
+![Colors for sequential data](https://www.figma.com/design/wEptRgAezDU1z80Cn3eZ0o/iX-Pattern-Illustrations?node-id=3225-2412&t=MD9MvUCkoIcmSi8H-4)
+
+**Comparative data**
+For comparing data within a category, we recommend to use the matching -40 color with 40% opacity. Example: last year and current year.
+
+![Colors for comparative data](https://www.figma.com/design/wEptRgAezDU1z80Cn3eZ0o/iX-Pattern-Illustrations?node-id=3225-2885&t=MD9MvUCkoIcmSi8H-4)
+
+### Loading indicator
+
+A loading indicator provides users with visual feedback that the chart is being processed and will be displayed shortly. This helps manage user expectations and enhances the overall user experience by preventing confusion or frustration during data loading times.
+
+### Failure and error message
+
+A failure occurs when no data can be displayed within the chart. This can happen for various reasons, such as connection failure, missing data or other. Error messages have following three elements to move users forward:
+
+- State problem: What happened? Add a clear reason for the error, i.e. “No data available”
+- Explain cause: Why did the error appear? A clear and concise message explaining why the error happened. "Connection failure"
+- Give solution: What can the user do to proceed?
+ Add clear instructions for the user regarding what to do next to resolve the error, e.g. “Try again”
+
+### Missing data points
+
+Indicate missing data with a special visual marker (like a different color or shape) to highlight the gaps without connecting them.
diff --git a/packages/documentation/docs/controls/charts/pie-chart.md b/packages/documentation/docs/controls/charts/pie-chart.md
index a452bc2499b..c513276059a 100644
--- a/packages/documentation/docs/controls/charts/pie-chart.md
+++ b/packages/documentation/docs/controls/charts/pie-chart.md
@@ -3,22 +3,30 @@ import Playground from '@site/src/components/PlaygroundV3';
# Pie chart
-## Examples
+Pie charts are a type of chart that displays data using a circular graph. The length of each slice is proportional to the value it represents. Pie charts are commonly used to visualize the parts of a whole and are particularly useful for comparing the relative sizes of different categories.
+
+### Pie chart
+
+Pie charts are typically used to visualize the parts of a whole. Each slice represents a different category, with the size of the slice proportional to the value it represents.
-### Donut chart
-### Pie chart
+### Donut chart
+
+Donut charts are a variation of pie charts that have a hole in the center. Donut charts are often used to display the same information as a pie chart but an additional information can be displayed in the center of the chart.
+
+
+
diff --git a/packages/documentation/docs/controls/charts/special-chart.md b/packages/documentation/docs/controls/charts/special-chart.md
index ac7a40857b5..8867d2b704d 100644
--- a/packages/documentation/docs/controls/charts/special-chart.md
+++ b/packages/documentation/docs/controls/charts/special-chart.md
@@ -6,18 +6,11 @@ import Playground from '@site/src/components/PlaygroundV3';
# Functionalities
-ECharts offers a wide variety of different chart types and features. Following page deals with some more special chart types and chart features, which might become handy in some use cases.
-
-
-## Examples
-
+ECharts offers a wide variety of different chart types and features. Following page deals with some more special chart types and chart features, which might become handy in some use cases.
### Interactive toolbox
-Apache ECharts offers a versatile toolbox that enables users to interact with and manipulate charts effectively.
-By default, the toolbox appears in the top right corner of the chart.
-You can customize this toolbox using the `toolbox` option within the option object.
+Apache ECharts offers a versatile toolbox that enables users to interact with and manipulate charts effectively. By default, the toolbox appears in the top right corner of the chart. The toolbox includes various interactive tools (like download, zoom, change type), each designed to enhance the user experience. You can customize this toolbox using the `toolbox` option within the option object.
-The toolbox includes various interactive tools (like download, zoom, change type), each designed to enhance the user experience.
Below is an example demonstrating some of the most commonly used tools and how to configure them to suit your needs.
Date: Thu, 26 Sep 2024 12:20:42 +0200
Subject: [PATCH 2/3] Typo corrected
---
packages/documentation/docs/controls/charts/overview.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/documentation/docs/controls/charts/overview.md b/packages/documentation/docs/controls/charts/overview.md
index 518ffbed7a2..ba5f8e5c35e 100644
--- a/packages/documentation/docs/controls/charts/overview.md
+++ b/packages/documentation/docs/controls/charts/overview.md
@@ -16,7 +16,7 @@ ECharts is a third party library distributed under [Apache License 2.0](https://
## Attributes
-| Name | Discription |
+| Name | Description |
| -------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Axes** | Most charts have a horizontal (x-axis) and a vertical (y-axis) axis. These axes are labeled to indicate what data they represent. |
| **Scale** | Each axis has a scale, often marked with periodic graduations and numerical or categorical indications. |
From 491825429ffde6bde3b9e0cafbba1936f3f6f4ad Mon Sep 17 00:00:00 2001
From: Betti <167863867+bettiifr@users.noreply.github.com>
Date: Thu, 3 Oct 2024 12:58:00 +0200
Subject: [PATCH 3/3] Feedback integrated
---
.../docs/controls/charts/overview.md | 34 +++++++++----------
.../docs/controls/charts/special-chart.md | 8 ++++-
2 files changed, 24 insertions(+), 18 deletions(-)
diff --git a/packages/documentation/docs/controls/charts/overview.md b/packages/documentation/docs/controls/charts/overview.md
index ba5f8e5c35e..d5ea9ff2300 100644
--- a/packages/documentation/docs/controls/charts/overview.md
+++ b/packages/documentation/docs/controls/charts/overview.md
@@ -16,15 +16,15 @@ ECharts is a third party library distributed under [Apache License 2.0](https://
## Attributes
-| Name | Description |
-| -------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| **Axes** | Most charts have a horizontal (x-axis) and a vertical (y-axis) axis. These axes are labeled to indicate what data they represent. |
-| **Scale** | Each axis has a scale, often marked with periodic graduations and numerical or categorical indications. |
-| **Labels** | Axes labels describe the dimensions represented, often including units of measurement, e.g. “Distance traveled (m)”. |
-| **Grid lines** | Grid lines help in visually aligning data points within the chart. |
-| **Legend** | Legends explain the symbols, colors, or patterns used in the chart to represent different data sets. By clicking on the date in the legend, you can toggle the visibility of the data series. |
-| **Tooltip** | Provides detailed information about data while hover over the area of interest. |
-
+| Name | Description |
+| -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| **Axes** | Axes are used to display the data in a chart. They are the horizontal and vertical lines that form the chart's grid. Axes are labeled to indicate what data they represent. |
+| **Scale** | Scales are used to map data values to a visual representation. The scale type is determined by the type of data being visualized. |
+| **Labels** | Labels are used to describe the dimensions represented, often including units of measurement, e.g. “Distance traveled (m)”. |
+| **Grid lines** | Grid lines help in visually aligning data points within the chart. |
+| **Legend** | Legends explain the symbols, colors, or patterns used in the chart to represent different data sets. You can toggle the visibility of the data series by clicking on the date in the legend. |
+| **Tooltip** | Tooltips provide more details about data while hovering over the area of interest. |
+| | |
## Installation
To install the Siemens Industrial Experience ECharts theme, run the follow the steps below:
@@ -74,9 +74,13 @@ noMargin
>
-## Empty state
+### Loading indicator
+
+A loading indicator provides users with visual feedback that the chart is being processed and will be displayed shortly. The loading indicator should be displayed when the chart is loading data or rendering, to visually indicate that the chart is not yet ready.
+
+### Empty state
-An empty state occurs when a user first opens an application, and no chart was added manually. Make sure to provide a clear message and a call to action to guide users on what to do next.
+An empty state occurs when a user first opens an application, no data is available, or the user has filtered out all data. The empty state should be visually distinct from the loading state and should provide a clear message to the user. This message should explain why the empty state is being displayed and provide guidance on how to proceed.
-### Loading indicator
-
-A loading indicator provides users with visual feedback that the chart is being processed and will be displayed shortly. This helps manage user expectations and enhances the overall user experience by preventing confusion or frustration during data loading times.
-
### Failure and error message
-A failure occurs when no data can be displayed within the chart. This can happen for various reasons, such as connection failure, missing data or other. Error messages have following three elements to move users forward:
+A failure occurs when no data can be displayed within the chart. This can happen for various reasons, such as connection failure and missing data. Error messages have following three elements to help users understand and resolve the issue:
-- State problem: What happened? Add a clear reason for the error, i.e. “No data available”
+- State problem: What happened? Add a clear reason for the error, e.g. “No data available”
- Explain cause: Why did the error appear? A clear and concise message explaining why the error happened. "Connection failure"
- Give solution: What can the user do to proceed?
Add clear instructions for the user regarding what to do next to resolve the error, e.g. “Try again”
diff --git a/packages/documentation/docs/controls/charts/special-chart.md b/packages/documentation/docs/controls/charts/special-chart.md
index 8867d2b704d..97738d30299 100644
--- a/packages/documentation/docs/controls/charts/special-chart.md
+++ b/packages/documentation/docs/controls/charts/special-chart.md
@@ -9,7 +9,13 @@ import Playground from '@site/src/components/PlaygroundV3';
ECharts offers a wide variety of different chart types and features. Following page deals with some more special chart types and chart features, which might become handy in some use cases.
### Interactive toolbox
-Apache ECharts offers a versatile toolbox that enables users to interact with and manipulate charts effectively. By default, the toolbox appears in the top right corner of the chart. The toolbox includes various interactive tools (like download, zoom, change type), each designed to enhance the user experience. You can customize this toolbox using the `toolbox` option within the option object.
+Apache ECharts offers a versatile toolbox that enables users to interact with and manipulate charts effectively. By default, the toolbox appears in the top right corner of the chart. The toolbox includes various interactive tools, like
+- download,
+- zoom.
+- zoom reset,
+- restore,
+each designed to enhance the user experience.
+You can customize this toolbox using the `toolbox` option within the option object.
Below is an example demonstrating some of the most commonly used tools and how to configure them to suit your needs.