Hi,
I would like to configure a chart (to be precise, it is a bubble chart, where data are plot as a line) in such a way to have:
* y-axis numbers in scientifc notation, being very large numbers;
* having space (or nothing) as thousands-separator (I would avoid comma);
* adding a second y-axis on the chart right.
Can somebody help me in some of these needs?
Thank you everybody in advance,
Anna
Chart axis
- hpuchegger
- Posts:86
- Joined: Fri Oct 08, 2021 10:38 am
Re: Chart axis
This could be a request where you could use our new “WinCC OA AI Assistant” (ChatGPT) in our online documentation. It gives me following reply:
To configure a bubble chart in WinCC OA with your specified requirements, you can follow these guidelines:
1. Y-axis Numbers in Scientific Notation: You can set the format of the y-axis to display numbers in scientific notation. This can typically be done by configuring the axis properties, but specific functions for scientific notation are not detailed in the documentation. You may need to explore the axis formatting options further.
2. Thousands Separator: Unfortunately, the documentation does not specify a direct method to change the thousands separator to a space instead of a comma. You may need to handle this formatting in your data processing before it is displayed on the chart.
3. Adding a Second Y-axis: You can add a second y-axis on the right side of the chart using the addAxis function. Here’s an example of how to do this:
main()
{
// Assuming you have already set up your bubble chart
this.addAxis(0, 1000, "Primary Y-Axis"); // Add primary Y-axis
this.addAxis(0, 1000, "Secondary Y-Axis"); // Add secondary Y-axis
}
This function allows you to specify the minimum and maximum values for the axis, as well as an optional label.
Br, Herbert
To configure a bubble chart in WinCC OA with your specified requirements, you can follow these guidelines:
1. Y-axis Numbers in Scientific Notation: You can set the format of the y-axis to display numbers in scientific notation. This can typically be done by configuring the axis properties, but specific functions for scientific notation are not detailed in the documentation. You may need to explore the axis formatting options further.
2. Thousands Separator: Unfortunately, the documentation does not specify a direct method to change the thousands separator to a space instead of a comma. You may need to handle this formatting in your data processing before it is displayed on the chart.
3. Adding a Second Y-axis: You can add a second y-axis on the right side of the chart using the addAxis function. Here’s an example of how to do this:
main()
{
// Assuming you have already set up your bubble chart
this.addAxis(0, 1000, "Primary Y-Axis"); // Add primary Y-axis
this.addAxis(0, 1000, "Secondary Y-Axis"); // Add secondary Y-axis
}
This function allows you to specify the minimum and maximum values for the axis, as well as an optional label.
Br, Herbert
- anna78
- Posts:3
- Joined: Fri Jan 10, 2025 8:10 am
Re: Chart axis
thanks for the suggestions (I didn't know about the AI Assistance!)
Anyway, I cannot succeed.
If I use
"this.addAxis(0, 1000, "Secondary Y-Axis");"
nothinkg happnes (nor an Error, neither the second axis appear..)
Anyway, I cannot succeed.
If I use
"this.addAxis(0, 1000, "Secondary Y-Axis");"
nothinkg happnes (nor an Error, neither the second axis appear..)