This content is not available in your preferred language.

The content is shown in another available language. Your browser may include features that can help translate the text.

Changing the Divisions Format in a Measurement Studio Graph

Updated Jul 14, 2022

Environment

Software

  • Measurement Studio
  • Microsoft Visual Studio

Other

Visual Studio

This article goes through the steps to modify the major divisions' format of a graph in Measurement Studio using WinForms and WPF in C#. You can apply these steps to modify other properties of the graph related to the axes format. This article assumes that you have already created a graph and are familiarized with editing the general properties of a Measurement Studio graph. This specific example shows the steps on how to modify the format of the major divisions of a graph by specifying the desired interval.

Using WinForms
1. Open the graph that you want to modify in the Design Mode.
2. Go to the Properties panel (If you do not see this panel right-click on the graph and select Properties).
3. In the Properties panel click on Edit X or Y Axes or go to the Graph category and next to the XAxes or YAxes click on the three dots (...) next to the (Collection) option.
4. Once you have opened the Axis Collection Editor click on the one you want to edit or create a new one.
5. Go to Divisions >> MajorDivisions >> Interval and set the desired interval for these divisions.
6. Please note that in order to make this setting work correctly with intervals you have to set the Divisions >> AutoSpacing property to False.
7. Since you are modifying the interval of the divisions it is recommended that you check the Behavior >> Range property to see the preview as expected.

Using WPF
1. Open the graph that you want to modify in the Design Mode.
2. Go to the Properties panel (If you do not see this panel right-click on the graph and select Properties).
3. Go to the Common category and click on the three points (...) next to Axes.
4. If the axis that you want to modify is not in the Items list, then add one by selecting the horizontal or vertical axis and clicking on Add.
5. Once you have added the axis or selected the one you want to modify, you will see the properties in the right panel of the window.
6. Search for the MajorDivisions property under Miscellaneous and click on New and select the desired type of division if there is none configured.
7. Click on Mode and select the desired configuration. For example, if you want to use an interval for major divisions you can click on Interval and then specify the interval base and the desired interval.

Next Steps

In order to modify other properties of the graph, check the help documentation by going to Extensions >> Measurement Studio >> Measurement Studio Help. You can also find examples of using graphs by going to Extensions >> Measurement Studio >> Measurement Studio Examples.